Closed (fixed)
Project:
Node Relativity
Version:
4.7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2006 at 14:53 UTC
Updated:
7 Oct 2006 at 06:00 UTC
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
Comment #1
darius commentedQ. 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
Comment #2
darius commentedP.S. For starters, try
print theme_relativity_show_children(node_load(281));Comment #3
darius commentedComment #4
(not verified) commented