hi,

i am using drupal 4.7 with flexinode and node relativity modules. i need to create a specific look for my flexinode type wich can be relative to some other nodetypes. if i do this in the regular way for example like this:

<?php print $node->flexinode_2 ?> 

i loose the node relativity info. it only displays if i print either the $content or the $node->body, but i won't do that because i need a custom design.
how can i display the node relativity information? is there a way to extract this info from the $content? or from the $node object? where and how is it being stored?
thanks!

adam

Comments

darius’s picture

Q. How can i display the node relativity information?
A. Look at (and modify) the theme functions theme_relativity_show_parents($node), theme_relativity_show_children($node), and maybe others.

Q. Is there a way to extract this info from the $content? or from the $node object?
A. No, but see the following.

Q. Where and how is it being stored?
A. It's not stored anywhere. The theme functions actually query the relativity table and show the results. That makes it quite easy for you to do whatever you want - just look at the theme functions for an example.

Darius

darius’s picture

P.S. For starters, try
print theme_relativity_show_children(node_load(281));

darius’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)