Newsmodule - problem with file fields
Posted: Thu Sep 04, 2014 1:13 am
Hello!
I have a little problem with news module. Detail template did not shows more then 3 images uploaded by file fields. I used simple code to do this:
I tried also display every single field with this:
...but detail template always shows only 3 photos doesn`t matter how many photos I uploaded ofcourse every single by another file field.
Please help me.
(Sorry for my English if there is something wrong with grammar
I have a little problem with news module. Detail template did not shows more then 3 images uploaded by file fields. I used simple code to do this:
Code: Select all
{if isset($entry->fields)}
{foreach from=$entry->fields item=’field’}
{if $field->value != ” }
file_location}/{$field->displayvalue}” data-lightbox=”{$entry->file_location}/{$field->displayvalue}”>
file_location}/{$field->displayvalue}”/ height=”100″>
{/if}
{/foreach}
{/if}Code: Select all
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
{if $field->name == 'photo1' && $field->value != '' }
<a href="{$entry->file_location}/{$field->displayvalue}" data-lightbox="{$entry->file_location}/{$field->displayvalue}">
<img src="{$entry->file_location}/{$field->displayvalue}"/ height="100">
</a>
{/if}
{/foreach}
{/if}Please help me.
(Sorry for my English if there is something wrong with grammar