Closed (fixed)
Project:
Composite Layout
Version:
6.x-1.0-beta8
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Feb 2010 at 13:48 UTC
Updated:
8 Apr 2010 at 04:20 UTC
In the Zones tab there is a column for Additional settings, and here you can specify how you would like the node to be displayed. The current options are:
-Title
-Title(link)
-Teaser
-Full Node
I'd like to propose that another option called 'Body only' is introduced, so that nodes can be included without the node heading.
Comments
Comment #1
bengtan commentedAccording to my understanding of what you're saying ...
I think you've got the right answer to the wrong question. Can you please elaborate a bit more on how you would use your 'Body only' feature? I think I may be able to suggest a more suitable solution.
Comment #2
JonoB commentedMy user case is that I want to include a page in a composite zone, but I dont want the page title from the node to be included
Comment #3
AntiNSA commented+1
Comment #4
AntiNSA commentedI am maybe ditching panels as it just destroyed my site... but I cant get the content type to stop diplaying the picture of the user and tietle .. how to disable this?
Comment #5
dddave commentedHow about some composure?
Composite layout allows for the very differenciate display of various parts of node (-> fields) and can even reference other nodes. So controlling the display can be done in very fine steps. Perhaps you have to check you theme settings? Do you have the opion to display the user picture enabled for your content type?
...and per#2 I am correcting the status.
Comment #6
bengtan commented@2: The clean solution would be that: For a node C which is displayed by Composite Layout as a 'subnode' of another node P, Composite Layout is to to inject an extra variable (ie. 'composite_child_node' or something more meaningful) into the node C during node loading/creation. Then themeing code can inspect the existence of the variable composite_child_node and if composite_child_node is present, then don't display the title or only display the body (or some other permutation). However, this would, by default, affect all nodes.
My question now is:
> My user case is that I want to include a page in a composite zone,
> but I dont want the page title from the node to be included
Does this apply to all page/nodes 'included' in this way? Or just some of them (and hence you'll need some way to determine which)?
@5: Thanks for helping out.
Comment #7
jeff veit commentedI've just bumped into this problem too.
I think the idea of a composite_child_node is sensible; IMO it covers the most important use case - hiding all node titles on a composite page.
An alternative would be to add a field into the the node type 'Hide node title' and to not render the title if this contains a value. It's not a clean way of doing things, and means you'd have to have a specialised node render template in Composite. Actually, it doesn't need the field at all if a node template in composite takes precedence over the normal node template.
Comment #8
bengtan commentedOkay, I'm going to go with the idea from comment #6 and add a node variable so custom themeing can then decide whether to hide or show certain things as it wishes. Gimme some time to do it.
Comment #9
bengtan commentedI have committed a prospective fix for this (see http://drupal.org/cvs?commit=345998).
Any nodes rendered as a 'sub-node' of a parent node's composite layout will have two extra node variables: composite_zone and composite_parent_nid.
Downstream themeing functions can interrogate these values and decide whether to hide the title or show just the body, or whatever you want.
I think this fix resolves this issue although you have to modify your themeing overrides to make it work fully on your site.
Thank you.