Album+MLE -> different templates don't work correctly

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
Trawis
Forum Members
Forum Members
Posts: 22
Joined: Sat Jul 05, 2008 7:30 am

Album+MLE -> different templates don't work correctly

Post by Trawis »

Hello,

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
alby

Re: Album+MLE -> different templates don't work correctly

Post by alby »

Trawis wrote: 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...
Don't work this?

Alby
Trawis
Forum Members
Forum Members
Posts: 22
Joined: Sat Jul 05, 2008 7:30 am

Re: Album+MLE -> different templates don't work correctly

Post by Trawis »

Yes, it is working fine now. Thank you for tip, but as you can know, this solve only my type of the problem. Now it is better resolution than I've used before, so a I can go sleep with clear mind...  :)
Locked

Return to “[locked] CMSMS MLE fork”