I'm using MLE version of CMSMS 1.4.1 and Album module 0.9.3. I've created two templates: default_cs, default_en, also when a visitor is on czech version of the site (cs), the default_cs template is using and when a visitor is on english version of the site (en), the default_en template is using. My problem is (maybe) in following codes of templates:
####default_cs
Code: Select all
...{* Album List *}
{if !$album}
<ul class="albumlist">
{foreach from=$albums item=album}
<li class="thumby">
<div class="fleft">
<a href="{$album->link}#album" title="Prohlédnout album {$album->name|escape:'html'}"><img src="{$album->thumbnail}" alt="{$album->name|escape:'html'}" title="{$album->name|escape:'html'}"{$album->autothumbnailsize} /></a>
</div>
<div class="fleft urcita">
<h2>{$album->name}</h2>
Počet fotografií: {$album->picturecount}
<div class='alright vicet'><a href="{$album->link}#alb" title="Prohlédnout album {$album->name|escape:'html'}">Prohlédnout album</a></div></div>
<div class="cboth"></div>
</li>
{/foreach}
</ul>
{elseif}...
####default_en
Code: Select all
...{* Album List *}
{if !$album}
<ul class="albumlist">
{foreach from=$albums item=album}
<li class="thumby">
<div class="fleft">
<a href="{$album->link}#alb" title="View the album {$album->name|escape:'html'}"><img src="{$album->thumbnail}" alt="{$album->name|escape:'html'}" title="{$album->name|escape:'html'}"{$album->autothumbnailsize} /></a>
</div>
<div class="fleft urcita">
<h2>{$album->name}</h2>
Number of photos: {$album->picturecount}
<div class='alright vicet'><a href="{$album->link}#alb" title="View the album {$album->name|escape:'html'}">View the album</a></div></div>
<div class="cboth"></div>
</li>
{/foreach}
</ul>
{elseif}...
When the visitor is in the "en" version, the album list is working as when the visitor is in the "cs" version -> for example he doesn't see link "View the album..." but "Prohlédnout album...". {*Photo list *} and {*Big picture *} work correctly. Isn't it strange? Where is a problem, please? If somewhere on the forum is this problem solved, please write me a link, I haven't found it...
thank you very much