
Code: Select all
{capture assign=galleryfolder value=$entry->gallery} ... {/capture}
TIA, Niko
Code: Select all
{capture assign=galleryfolder value=$entry->gallery} ... {/capture}
Ok, that was the way I tested it already and the template error is gone but still no images in the gallery slider (subfolder and template are applied). Will rework it later this evening.Jean le Chauve wrote:For 1.11
{capture assign=galleryfolder value=$entry->gallery} ... {/capture}
become
{capture assign=galleryfolder} ... {/capture} and all work
Thanks, will check that, too. I already renamed all Templates (Layout, Menu, CSS) without spaces and special characters.Jean le Chauve wrote:Beware with SuperSizer which is in templates ; You can easily replace it with CGSmartImage (but : http://dev.cmsmadesimple.org/bug/view/8196).
You must rename all the name of templates without spaces
Hm, I can't figure out how to align the Gallery template code to pass the right path to CGSmartImage. I changed this:Jean le Chauve wrote:You can easily replace it with CGSmartImage
Code: Select all
{supersizer path=$image->file|rawurldecode width_attr=950 height_attr=345 width=950 height=345 crop="center,center" alt=$image->titlename title=$image->comment}
Code: Select all
{CGSmartImage src=$image->file|rawurldecode filter_resizetofit='950,245' alt=$image->titlename title=$image->comment}
Check the value of {$galleryfolder} (original : Slider)Niko wrote:but still no images in the gallery slider (subfolder and template are applied). Will rework it later this evening.
Code: Select all
<div id="slider">
{foreach from=$images item=image}
{if !empty($image->fields.link.value)}
<a href="{$image->fields.link.value}">{cms_module module="CGSmartImage" src=$image->file|rawurldecode alias='slider' alt=$image->titlename title=$image->comment}</a>{else}
{cms_module module="CGSmartImage" src=$image->file|rawurldecode alias='slider' alt=$image->titlename title=$image->comment}{/if}
{/foreach}
</div>