Calling An Individual field in the Availability Module 1.7.1 [SOLVED]
Posted: Thu Oct 08, 2009 8:59 pm
Hi,
I am trying to call an individual field in the Availability Module 1.7.1 and cant get it to work. I have used this quite alot in the Products module and have it working fine there and there is also a helpful hint from Calguy in the template stating that "fields are also available by name as $one.fields_byname.". I have been at it for ages and just cant get it to work.
The field I am trying to call is named 'summaryimage' and using this code:
{foreach from=$one.fields_byname.summaryimage item='field'}
{$field.prompt}: {if isset($field.thumbnail)}{else}{$field.value}{/if}
{/foreach}
Does call something, see the random code below, but not my image.
1:
s:
A:
i:
:
c:
t:
Can someone help me out here?
Thanks
I am trying to call an individual field in the Availability Module 1.7.1 and cant get it to work. I have used this quite alot in the Products module and have it working fine there and there is also a helpful hint from Calguy in the template stating that "fields are also available by name as $one.fields_byname.". I have been at it for ages and just cant get it to work.
The field I am trying to call is named 'summaryimage' and using this code:
{foreach from=$one.fields_byname.summaryimage item='field'}
{$field.prompt}: {if isset($field.thumbnail)}{else}{$field.value}{/if}
{/foreach}
Does call something, see the random code below, but not my image.
1:
s:
A:
i:
:
c:
t:
Can someone help me out here?
Thanks