hello,
how can I show the attached files of webfm on a content-template modified contenttype.

CommentFileSizeAuthor
#2 Aufzeichnen.JPG53.19 KBklaus9

Comments

jrglasgow’s picture

Can you post your body variables from the create template page?

klaus9’s picture

StatusFileSize
new53.19 KB

the part with webfm isn't highlighted(ref. attached jpg)

$node->nid 
2590 
$node->vid 
2592 
$node->type 
gameinfo 
$node->status 
1 
$node->created 
1209040116 
$node->changed 
1209040116 
$node->comment 
0 
$node->promote 
0 
$node->sticky 
0 
$node->revision_timestamp 
1209040116 
$node->title ** 
Senioren --- Altenberg : Schweinbach 
$node->body 
<div class="field field-type-text field-field-schiedsrichter"> <h3 class="field-label">Anstoss:&nbsp;09/05/2008 - 18:30</h3> </div> <table> <tr><td><h1 class="node-title">Altenberg : Schweinbach&nbsp;&nbsp;</h1></td></tr> </table> <br> <div class="field-items"> </div> <br> <br> <div class="field field-type-text field-field-spielort"> <h3 class="field-label">Spielort</h3> <div class="field-items"> <div class="field-item">Waldstadion Altenberg</div> </div> </div> <br> 
$node->log 
$node->format 
3 
$node->uid 
4 
$node->name 
klaus 
$node->picture 
$node->data 
a:2:{s:18:"admin_compact_mode";b:1;s:5:"block";a:1:{s:4:"menu";a:1:{i:176;i:1;}}} 
$node->0 (boolean) 
FALSE 
$node->field_runde (array) 
$node->field_runde[0] (array) 
$node->field_runde[0]['value'] ** (NULL) 
$node->field_runde[0]['view'] 
$node->field_teamvsteam (array) 
$node->field_teamvsteam[0] (array) 
$node->field_teamvsteam[0]['value'] ** 
Altenberg : Schweinbach 
$node->field_teamvsteam[0]['view'] 
Altenberg : Schweinbach 
$node->field_ergebniss (array) 
$node->field_ergebniss[0] (array) 
$node->field_ergebniss[0]['value'] ** 
$node->field_ergebniss[0]['view'] 
$node->field_schiedsrichter (array) 
$node->field_schiedsrichter[0] (array) 
$node->field_schiedsrichter[0]['value'] ** 
$node->field_schiedsrichter[0]['view'] 
$node->field_spielort (array) 
$node->field_spielort[0] (array) 
$node->field_spielort[0]['value'] ** 
Waldstadion Altenberg 
$node->field_spielort[0]['view'] 
Waldstadion Altenberg 
$node->field_link_detail (array) 
$node->field_link_detail[0] (array) 
$node->field_link_detail[0]['url'] 
$node->field_link_detail[0]['title'] 
$node->field_link_detail[0]['attributes'] 
N; 
$node->field_link_detail[0]['view'] 
$node->field_inserted_ooefv (array) 
$node->field_inserted_ooefv[0] (array) 
$node->field_inserted_ooefv[0]['value'] ** 
1 
$node->field_inserted_ooefv[0]['view'] 
1 
$node->1 (array) 
$node->1['url'] 
$node->1['title'] 
$node->1['attributes'] (NULL) 
$node->last_comment_timestamp 
1209040116 
$node->last_comment_name (NULL) 
$node->comment_count 
0 
$node->event_start 
1210354200 
$node->event_end 
1210360500 
$node->timezone 
314 
$node->start_offset 
+3600 
$node->start_format 
09/05/2008 - 18:30 
$node->start_time_format 
18:30 
$node->end_offset 
+3600 
$node->end_format 
09/05/2008 - 20:15 
$node->end_time_format 
20:15 
$node->event_node_title 
gameinfo 
$node->taxonomy (array) 
$node->taxonomy[16] (object) 
$node->taxonomy[16]->tid 
16 
$node->taxonomy[16]->vid 
6 
$node->taxonomy[16]->name 
Ergebnisse 
$node->taxonomy[16]->description 
$node->taxonomy[16]->weight 
0 
$node->taxonomy[13] (object) 
$node->taxonomy[13]->tid 
13 
$node->taxonomy[13]->vid 
5 
$node->taxonomy[13]->name 
kommende Spiele 
$node->taxonomy[13]->description 
$node->taxonomy[13]->weight 
0 
$node->taxonomy[113] (object) 
$node->taxonomy[113]->tid 
113 
$node->taxonomy[113]->vid 
8 
$node->taxonomy[113]->name 
Senioren 
$node->taxonomy[113]->description 
Unsere Ü30 Abteilung 
$node->taxonomy[113]->weight 
10 
$node->webfm_files (array) 
$node->readmore (boolean) 
FALSE 
$node->content (array) 
$node->content['event'] (array) 
$node->content['event']['#weight'] (integer) 
-10 
$node->content['event']['#value'] 
<div class="event-nodeapi"><div class="gameinfo-start"><label>Start: </label>09/05/2008 - 18:30</div></div> <div class="event-nodeapi"><div class="gameinfo-end"><label>Ende:</label>09/05/2008 - 20:15</div></div> 
$node->content['event']['#printed'] (boolean) 
TRUE 
$node->content['field_teamvsteam'] (array) 
$node->content['field_teamvsteam']['#access'] (boolean) 
TRUE 
$node->content['field_teamvsteam']['#value'] 
<div class="field field-type-text field-field-teamvsteam"><div class="field-label">teamvsteam:&nbsp;</div><div class="field-items"><div class="field-item">Altenberg : Schweinbach</div></div></div> 
$node->content['field_teamvsteam']['#weight'] 
-2 
$node->content['field_teamvsteam']['#printed'] (boolean) 
TRUE 
$node->content['field_runde'] (array) 
$node->content['field_runde']['#access'] (boolean) 
TRUE 
$node->content['field_runde']['#value'] 
$node->content['field_runde']['#weight'] 
-2 
$node->content['field_runde']['#printed'] (boolean) 
TRUE 
$node->content['field_ergebniss'] (array) 
$node->content['field_ergebniss']['#access'] (boolean) 
TRUE 
$node->content['field_ergebniss']['#value'] 
$node->content['field_ergebniss']['#weight'] 
-1 
$node->content['field_ergebniss']['#printed'] (boolean) 
TRUE 
$node->content['body'] (array) 
$node->content['body']['#weight'] (integer) 
0 
$node->content['body']['#value'] (NULL) 
$node->content['body']['#printed'] (boolean) 
TRUE 
$node->content['field_schiedsrichter'] (array) 
$node->content['field_schiedsrichter']['#access'] (boolean) 
TRUE 
$node->content['field_schiedsrichter']['#value'] 
$node->content['field_schiedsrichter']['#weight'] 
3 
$node->content['field_schiedsrichter']['#printed'] (boolean) 
TRUE 
$node->content['field_spielort'] (array) 
$node->content['field_spielort']['#access'] (boolean) 
TRUE 
$node->content['field_spielort']['#value'] 
<div class="field field-type-text field-field-spielort"><div class="field-items"><div class="field-item"><div class="field-label-inline-first">Spielort:&nbsp;</div>Waldstadion Altenberg</div></div></div> 
$node->content['field_spielort']['#weight'] 
4 
$node->content['field_spielort']['#printed'] (boolean) 
TRUE 
$node->content['field_link_detail'] (array) 
$node->content['field_link_detail']['#access'] (boolean) 
TRUE 
$node->content['field_link_detail']['#value'] 
$node->content['field_link_detail']['#weight'] 
5 
$node->content['field_link_detail']['#printed'] (boolean) 
TRUE 
$node->content['field_inserted_ooefv'] (array) 
$node->content['field_inserted_ooefv']['#access'] (boolean) 
TRUE 
$node->content['field_inserted_ooefv']['#value'] 
<div class="field field-type-number-decimal field-field-inserted-ooefv"><div class="field-items"><div class="field-item">1</div></div></div> 
$node->content['field_inserted_ooefv']['#weight'] 
9 
$node->content['field_inserted_ooefv']['#printed'] (boolean) 
TRUE 
$node->content['#children'] 
<div class="event-nodeapi"><div class="gameinfo-start"><label>Start: </label>09/05/2008 - 18:30</div></div> <div class="event-nodeapi"><div class="gameinfo-end"><label>Ende:</label>09/05/2008 - 20:15</div></div> <div class="field field-type-text field-field-teamvsteam"><div class="field-label">teamvsteam:&nbsp;</div><div class="field-items"><div class="field-item">Altenberg : Schweinbach</div></div></div><div class="field field-type-text field-field-spielort"><div class="field-items"><div class="field-item"><div class="field-label-inline-first">Spielort:&nbsp;</div>Waldstadion Altenberg</div></div></div><div class="field field-type-number-decimal field-field-inserted-ooefv"><div class="field-items"><div class="field-item">1</div></div></div> 
$node->content['#printed'] (boolean) 
TRUE 
$node->links (array) 
$node->links['event_calendar'] (array) 
$node->links['event_calendar']['title'] 
Kalender 
$node->links['event_calendar']['href'] 
event/2008/05/09 
$node->links['statistics_counter'] (array) 
$node->links['statistics_counter']['title'] 
jrglasgow’s picture

In theory $node->webfm_files (array) should have your files listed (or something). I will assume that this node has files attached using webfm. Go ahead and put this is you contemplate and let me know what the output is:

echo '$node->webfm_files = '. print_r($node->webfm_files, true);
klaus9’s picture

the output is:


$node->webfm_files = Array ( [0] => webfm_fdesc Object ( [result] => 1 [id] => 4 [n] => hallenplan2007_2008.pdf [p] => files/upload/webfm/2008 [e] => pdf [s] => 21930 [uid] => 1 [ftitle] => [fdesc] => [fcreatedate] => 1203540912 [flang] => [fpublisher] => [fformat] => [fversion] => 0 [m] => 1203540912 [i] => 
0 ) ) 

nitrocad’s picture

Put this code anywhere in the template. It works for me.

print $node->content['webfm_attachments']['#value']