Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-3.x-dev
Component:
content.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2009 at 17:06 UTC
Updated:
25 Jun 2010 at 00:00 UTC
Comments
Comment #1
phreestilr commentedAny luck on this? I'm trying to use it as well and cannot get it to work
Comment #2
phreestilr commentedWell, figured it out. It was much simpler than I thought, but there seemed to be some misleading help on the web. For anyone looking to exclude fields from $content, just copy the theme_content_exclude function from content.module to your template.php file, change 'theme' to your theme, add adjust the code to suit your needs. It should look something like:
I still have one question, though. Is there any way to find out which node the current field is a part of? I would like to load the node, find out the node creator, etc
Thanks!
Comment #3
phreestilr commentedComment #4
phreestilr commentedComment #5
gg4 commented@phreestilr or anyone else. An example would be very helpful.
Comment #6
markus_petrux commentedRe: "Is there any way to find out which node the current field is a part of?"
Not within this context where this function is executed.
You need to explore alternative approaches, for example, you can inject your own #pre_render callback to the node content structure (look at content_nodeapi() for an example), and here you'll find all the data related to the node, and you can exclude whatever you may need.