devilsown Posted February 16, 2014 Share Posted February 16, 2014 (edited) This is how i been doing it. but the links do not work properlty for other lanugagues. Is there any way to do this? how do i make the "contact-us" change vers the lang_iso code? <li><a href="{$base_dir}{$lang_iso}/contact-us" title="{l s='Contact Us'}">{l s='Contact Us'}</a></li> french version https://www.alcohol-injection.com/fr/contactez-nous english. https://www.alcohol-injection.com/en/contact-us Edited February 16, 2014 by devilsown (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 16, 2014 Share Posted February 16, 2014 hello instead of: <li><a href="{$base_dir}{$lang_iso}/contact-us" title="{l s='Contact Us'}">{l s='Contact Us'}</a></li> use: <li><a href="{$link->getPageLink("contact", true)|escape:'html'}" title="{l s='Contact Us'}">{l s='Contact Us'}</a></li> Link to comment Share on other sites More sharing options...
devilsown Posted February 17, 2014 Author Share Posted February 17, 2014 Thanks very much. Is there a spot where perhaps all these links are listed. How would i go about making a link to my content pages? <li><a href="{$link->getPageLink("cms.php?id_cms=6", true)|escape:'html'}" title="{l s='How to Order'}">{l s='How to Order'}</a></li> When i do it this way the links on my page read as. https://www.alcohol-injection.com/en/index.php?controller=cms?id_cms=6 instead of. http://www.alcohol-injection.com/en/content/6-how-to-order Link to comment Share on other sites More sharing options...
vekia Posted February 17, 2014 Share Posted February 17, 2014 instead of getPageLink function that you use, use just this one: getCmsLink(6); Link to comment Share on other sites More sharing options...
Recommended Posts