[solved] CGCalendar - display custom file field value is "0"
Posted: Fri Apr 23, 2010 10:48 pm
CMSMS 1.7
CGCalendar 1.5.2
I have CGcalendar with 3 custom fields - Meet-Flyer (file), Meet-Results (file) and Location (text). I am trying to display the file field by calling it directly:
{$event.fields.Meet-Flyer} or {$event.fields.Meet-Results} however instead of displaying the filename it displays "0"
Using the default foreach cycle through all fields causes the filename to be displayed propertly:
{foreach from=$event.fields key='fieldname' item='fieldvalue'}
{$fieldname}: {$fieldvalue}
{/foreach}
But for purposes of my template I really need to be able to call it directly. What is the proper format to display the value of a file field?
Thanks!
Alane
CGCalendar 1.5.2
I have CGcalendar with 3 custom fields - Meet-Flyer (file), Meet-Results (file) and Location (text). I am trying to display the file field by calling it directly:
{$event.fields.Meet-Flyer} or {$event.fields.Meet-Results} however instead of displaying the filename it displays "0"
Using the default foreach cycle through all fields causes the filename to be displayed propertly:
{foreach from=$event.fields key='fieldname' item='fieldvalue'}
{$fieldname}: {$fieldvalue}
{/foreach}
But for purposes of my template I really need to be able to call it directly. What is the proper format to display the value of a file field?
Thanks!
Alane