Active
Project:
Node Relativity
Version:
5.x-2.3
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2008 at 03:47 UTC
Updated:
10 Jun 2008 at 23:50 UTC
I was editing a default view and wanted to add a few fields about my parent node, ie title, creation date, etc. Works fine. But if I add node teaser and save, the output shows all of the associated child items.
Anyone know of a workaround? I just want the node-teaser to show the teaser of the parent's description.
Comments
Comment #1
andb commentedYou can restrict the output in the teaser to not include information provided by relativity by customizing the node.tpl.php file, or the specific node.tlp.php file for the custom content type, specifically changing what the teaser displays. You'll probably have to remove the $content variable and define the body content on a per variable basis. You can find more about this at http://drupal.org/phptemplate, and you can use the devel module to see all the variables that are available for the node type.
Comment #2
lordnacho commentedAppreciate the pointers. I did something similar as it was in a view, so I parsed out the part I needed. Wasn't sure if that was a kludge or not.
The devel module looks very useful, will give it a go now. Thanks