Hi,

if I'm not doing something wrong, the "Node Relativity" module isn't honoring the teaser tag (< !--break-- >): All related nodes are displayed inside the teaser.

Modifying the weights doesn't help, with "-10" the links move on top of the node's body, with other values they move down - but never "below" the < !--break-- >. Since this is considered an unwanted behaviour, im posting this as an issue.

Besides of this, I like "Node Relativity" very, very much and would love to see functionality like this in core.

Thanks & greetings, -asbdpl

Comments

mlncn’s picture

Title: Displaying of related nodes in teaser » Allow different display settings of related nodes in full nodes versus teasers
Assigned: Unassigned » mlncn
Category: bug » feature

The issue here is that "Rendering option for children nodes of type [example]" should allow administrators to set different display settings for full nodes and for teasers.

For instance, full nodes could show node teasers of all children and teasers (as used on the front page and taxonomy lists for instance) could display nothing or just the titles of children.

This is a feature request for the Radical Reference site. We're helping them out (with OpenFlows) at DrupalCamp NYC 5 right now.

benjamin, Agaric Design Collective

wilco’s picture

Hi asbdpl,

This issue stems from the following functions:

function theme_relativity_show_children($parent, $fieldset=1) in conjunction with relativity_nodeapi(). At line #1097 you'll note:

$node->content['relativity_children'] = array(
          '#value' => theme('relativity_show_children', $node),
          '#weight' => $w,
        );

This is adding the relativity_children information after the node_view() function has been rendered. This is interrupting the "<!--break-->" tag functionality. To correct this, you could attempt to add the information before the fact (using the 'load' $op) but then you will end up having the node_relativity output passed through the filter_format() functions. This output might be undesirable.

A better solution might be to put a conditional statement in the 'view' $op case. For instance, testing to see if the $node->teaser is set and any other conditions [i.e.: drupal_is_front_page()] and then decide whether to pass the relativity output to $node->content.

Just a thought... :-p

jjalocha’s picture

Hi, I think this feature request is quite confusing, but I really think, that it should be possible to configure different display settings for full nodes and teasers separately. This distinction is made in most Drupal modules.

I am actually using the D6 version. Should I post a new feature request for D6, or change the version of this thread, or just leave it?