pietro Posted April 3, 2014 Share Posted April 3, 2014 (edited) Hi there, I snicked a link to an external forum inside the blockcms module, it looks like this: <li class="item"><a href="http://domain.com/forum/">{l s='Technical Forum' mod='blockcms'}</a></li> I am using PS1.5.6.1 and I have two languages English and Spanish. The forum is also in those two languages with URL domain.com/forum (for English) and domain.com/foro (for Spanish) What I would like to do is: - when the user is in PS (EN) the link goes to /forum - when the user is in PS (ES) the link goes to /foro How can I acomplish that? Thanks for reading, Edited April 23, 2014 by pietro (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted April 13, 2014 Share Posted April 13, 2014 put an if {if $lang_iso eq "en"}<a href="http://domain.com/forum/">{else}<a href="http://domain.com/foro/">{/if} Link to comment Share on other sites More sharing options...
pietro Posted April 16, 2014 Author Share Posted April 16, 2014 Thank you Shacker, that is what i needed. This is how my link looks like: {if $lang_iso eq "en"}<li class="item"><a href="http:/domin.com/forum/">{l s='Technical forum' mod='blockcms'}</a></li>{else}<li class="item"><a href="http://domain.com/foro/">{l s='Foro tecnico' mod='blockcms'}</a></li>{/if} Best, Link to comment Share on other sites More sharing options...
shacker Posted April 16, 2014 Share Posted April 16, 2014 perfect. remember to change title to solved Link to comment Share on other sites More sharing options...
Recommended Posts