Jump to content

Linking to other pages when using other langues "iso codes"


Recommended Posts

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 by devilsown (see edit history)
Link to comment
Share on other sites

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

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

×
×
  • Create New...