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

bengtan’s picture

According 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.

JonoB’s picture

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

AntiNSA’s picture

+1

AntiNSA’s picture

Title: Display as 'Body only' » Display as 'Body only' REally Needed!!!!!!!!!!
Priority: Normal » Critical

I 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?

dddave’s picture

Title: Display as 'Body only' REally Needed!!!!!!!!!! » Display as 'Body only'
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

How 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.

bengtan’s picture

@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.

jeff veit’s picture

I'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.

bengtan’s picture

Assigned: Unassigned » bengtan
Status: Postponed (maintainer needs more info) » Active

Okay, 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.

bengtan’s picture

Status: Active » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.