
Let's put it clear that it was not my suggestion :P
Hi,Jos wrote: If you need an extra custom field for each image, you should mark it as such when you create it.
If you created a custom field for an image and called it "googlemaps", you can call it in your templates inside the foreach loop for images with
To parse the smarty code that you've entered in the field. you can call it in your template inside the foreach loop for images withCode: Select all
{$image->fields.googlemaps.value}
Code: Select all
{eval var=$image->fields.googlemaps.value}
Code: Select all
<title>{if isset($gallery->images)}
{foreach from=$gallery item=image}{$image->fields.SEOTitle.value}{/foreach}{/if}</title>
Code: Select all
<title>{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}{if $field->type == 'file'}{else}{eval var=$field->value}{/if}{/foreach}{/if}</title>
Code: Select all
<title>{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}{if $field->type == 'file'}{else}{eval var=$image->fields.SEOTitle.value}{/if}{/foreach}{/if}</title>
Code: Select all
<title>{if $image->fields.SEOTitle.value}{$image->fields.SEOTitle.value}{else}regular title{/if}</title>
Code: Select all
{capture assign=gallerytitle}{$image->fields.SEOTitle.value}{/capture}
Code: Select all
<title>{if $gallerytitle}{$gallerytitle}{else}regular title{/if}</title>
Thans for reply!nicmare wrote: simply tryORCode: Select all
<title>{if $image->fields.SEOTitle.value}{$image->fields.SEOTitle.value}{else}regular title{/if}</title>
1. write in your gallery template in first line2. and in main templateCode: Select all
{capture assign=gallerytitle}{$image->fields.SEOTitle.value}{/capture}
Code: Select all
<title>{if $gallerytitle}{$gallerytitle}{else}regular title{/if}</title>
Code: Select all
<title>{if $image->fields.SEOTitle.value}{$image->fields.SEOTitle.value}{else}regular title{/if}</title>
Ohh, I dont known that, I'll usenicmare wrote: ups. i forgot. than call it as you want $mygallerytitle or what ever. use your brain![]()
Code: Select all
{capture assign=seogallery}{$image->fields.seotitle.value}{/capture}
Code: Select all
<title>{if $seogallery}{$seogallery}{else}regular title{/if}</title>
Code: Select all
{capture assign=seogallery}{$image->field.seotitle.value}{/capture}
Code: Select all
{capture assign=seogallery}{$fields.seotitle.value}{/capture}
Maybe this topic helps: http://forum.cmsmadesimple.org/index.ph ... 505.0.htmlNikau wrote: It doesn't succeed to change permission
Code: Select all
<div>Top Website</div>
<div id="left_column">{content}</div>
<div id="right_column">{bannery}</div>
<div>Footer Website</div>
Code: Select all
<div>Top Website</div>
<div id="right_column">{bannery}</div>
<div id="left_column">{content}</div>
<div>Footer Website</div>
Code: Select all
<div>Top Website</div>
{capture name=my_content}{content}{capture}
<div id="right_column">{bannery}</div>
<div id="left_column">{$smarty.capture.my_content}</div>
<div>Footer Website</div>