
Mr. Dude: What redirection method you are using? I have problems with hierarchy method, never tried second one with assigning..
Code: Select all
{content block='languages' label='Other Languages' oneline='true' assign=other_languages wysiwyg='false'}
I've made changes to Babel so that it supports cmsms' newer versions. Before I release it, however, I would like to test it a bit more. Anybody interested in testing it in the next few days can download it from the SVN or at www.plger.net/babel-0.4.zipsolodok wrote: Talked to plger (admin of project), he is planning to update module soon, great news!![]()
You're totally right!Dr.CSS wrote: I find it best to keep block names as one word then use label='Which lets You add all kinds of info to it'...
Pierre,plger wrote: I've made changes to Babel so that it supports cmsms' newer versions. Before I release it, however, I would like to test it a bit more. Anybody interested in testing it in the next few days can download it from the SVN or at http://www.plger.net/babel-0.4.zip
Plger
Code: Select all
<div id="lang">
{foreach from=$languages item="language"}
{if $language->is_current}
<img src="http://img.website.tld/{$language->name}.png" class="flag" height="17" width="24" title="{$language->name}" alt="{$language->name}"/>
{else}
<a href="{$language->url}"><img src="http://img.website.tld/{$language->name}.png" class="flag" height="17" width="24" title="{$language->name}" alt="{$language->name}"/></a>
{/if}
{/foreach}
</div>
Code: Select all
<div id="lang">
<a href="http://www.website.tld/nl/home"><img src="http://img.website.tld/Nederlands.png" class="flag" height="17" width="24" title="Nederlands" alt="Nederlands"/></a>
<img src="http://img.website.tld/English.png" class="flag" height="17" width="24" title="English" alt="English"/>
</div>
Code: Select all
<div id="lang">
<img src="http://img.website.tld/English.png" class="flag" height="17" width="24" title="English" alt="English"/>
</div>
When I set the default language in Babel to Dutch, those pages are working perfect and the links to the English pages are screwed.<div id="lang">
<img src="http://img.website.tld/Nederlands.png" class="flag" height="17" width="24" title="Nederlands" alt="Nederlands"/>
<a href="http://www.website.tld/en"><img src="http://img.website.tld/English.png" class="flag" height="17" width="24" title="English" alt="English"/></a>
</div>
Thanks for the update. Babel is very useful!plger wrote: Anybody interested in testing it in the next few days can download it from the SVN or at www.plger.net/babel-0.4.zip
I have found the problem.Freight wrote: After upgrading to 0.4 the $page_lang-Variable is not set correct any more.
I am using CMSms 1.9.2 and it seems, that the hierarchy levels are not dropped.// I just don't know why, but between 1.8.x and 1.9 hierarchy levels just dropped of 1...
Code: Select all
while( isset($currentNode) && $currentNode->getLevel() > ($post19?-1:0) ){
Code: Select all
while( isset($currentNode) && $currentNode->getLevel() > 0 ){