Postponed (maintainer needs more info)
Project:
Relevant Content
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
9 Nov 2008 at 02:36 UTC
Updated:
7 Mar 2009 at 15:45 UTC
I'm trying everything and nothing's working.
How do I print out one of these cck fields?
For instance: print $node->content['field_name_of_relevant_content_field']['#value'] doesn't print out my cck field. And that would work for any other CCK field.
I really like the idea of this module, but I want complete control over where and how it displays. that means being able to print out the field whereever I want.
What's the proper way to print the contents of one of these fields out? Thanks. This is driving me nuts.
Comments
Comment #1
nicholasthompsonGood question - I'll take a look.
Sorry about the delay in reply. Been silly busy recently.
Comment #2
bflora commentedDon't worry about it. I check back in from time to time. Thanks.
Comment #3
marius.s commentedSubscribing
Comment #4
spanito commentedHello, I managed to find the way to print the cck field on drupal 6 version of this module. I guess you can work it out for 5.x. I used devel module to get to the right path:
print $field_name_of_relevant_content_field[#value]['view'];example:
print $field_relevant_content[0]['view'];I hope it can help :)
By the way, I didn't manage to print it from Views 2 (this CCK field doesn't appear in the Fields listing). Any workaround for this issue? Thanks!