Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.1
Component:
General
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2009 at 01:20 UTC
Updated:
25 Jan 2009 at 02:40 UTC
ahoi,
I've used the following code in node.tpl.php, for displaying attachments from a cck filefield:
if ($node->field_file[0]['view']):
print $node->field_file[0]['view']
endif;
but it only shows up the first file and nothing else.
with print $content I get all the content I want, but that's not my intention.
maybe this is an easy task, but in the moment I just don't know how to solve this.
help is very much appreciated.
Comments
Comment #1
yched commentedYou can use the
$<FIELD_NAME>_renderedvariable - in your case $field_file_rendered.Install advanced_help module, and see the 'Themeing CCK fields' section in CCK's advanced_help pages for more information.