Page 1 of 1

Gallery Custom Fields

Posted: Mon Apr 11, 2011 5:50 pm
by ataxel
Hi,
working with gallery 1.4.4, cmsms 1.9.4.1

I tried to make my images custom field appears on my template.
i read the wiki and plenty posts here without being able to make it.
My template look like this and yeas, the field is public and under images.


My tag is

Code: Select all

{$images->fields.imagetitleenglish.value}
and in my complete template ...

Code: Select all

<div id="portfolio">
<div class="portfolio-grid" id="columns">
<ul>
{foreach from=$images item=image}

<li class="col3">

<a href="{$image->file}" rel="prettyPhoto[portfolio1]">
<img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" width="300" height="180"  class="shadow"/></a>

<div class="portfolio-thumbnail-info">
<h3 class="title"> {if $page_lang == "fr"}{$image->titlename}  {else} {$images->fields.imagetitleenglish.value}{/if}</h3>

<p>{$image->comment}</p>
</div>	

</li>
{/foreach}
</ul>
</div>
</div>
I already have the images uploaded and add the fields later.
can someone help please?


Lp

Re: Gallery Custom Fields

Posted: Mon Apr 11, 2011 6:15 pm
by Jos
You have come this far, and you are nearly there ;)

Your variable call should be

Code: Select all

{$image->fields.imagetitleenglish.value}

[SOLVED] Re: Gallery Custom Fields

Posted: Mon Apr 11, 2011 6:23 pm
by ataxel
image without the S ...
got that!
And works fantastically! (is it a word?)
Thank you for your help and your great module!

Lp (*