Gallery Custom Fields

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
ataxel
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 19, 2007 1:32 pm

Gallery Custom Fields

Post 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
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Gallery Custom Fields

Post by Jos »

You have come this far, and you are nearly there ;)

Your variable call should be

Code: Select all

{$image->fields.imagetitleenglish.value}
ataxel
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 19, 2007 1:32 pm

[SOLVED] Re: Gallery Custom Fields

Post 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 (*
Post Reply

Return to “Modules/Add-Ons”