Jump to content

[SOLVED] HELP - Language exclusive links in blocktopmenu?


Recommended Posts

Hello everyone,

 

I am in dire need of help. It is rather urgent, and I don't seem to be able to find an answer to this particular question by searching neither Google nor these forums, so I have decided to post instead.

 

Here is my problem:

I have a multilanguage shop, and what I need is to have it so that a link to a CMS-page is only available in the Top Horizontal Menu, when a customer is browsing the site in one of these languages.

 

Example: I have english and danish as languages on the shop. When customers are from Denmark, and thus browsing the store in danish, a link has to appear on the menu, that does not appear when customers are browsing the store in english.

 

Does anyone have a solution to this particular problem? I would be most grateful.

 

Thank you in advance :-)

Link to comment
Share on other sites

in permanentlinks module .tpl file you can use simple if condition to check language version:

{if $cookie->id_lang==2}
display some links in language
with id_lang = 2
{/if}

{if $cookie->id_lang==6}
display some links in language
with id_lang = 6
{/if}
Link to comment
Share on other sites

 

in permanentlinks module .tpl file you can use simple if condition to check language version:

{if $cookie->id_lang==2}
display some links in language
with id_lang = 2
{/if}

{if $cookie->id_lang==6}
display some links in language
with id_lang = 6
{/if}

Works wonders! Fantastic! Thank you so much. I appreciate your helpfulness :)

Edited by simonklit (see edit history)
Link to comment
Share on other sites

you're very welcome :-)

i marked this topic as solved,

if you need any additional asistance related to this topic, just let me know.

 

btw. you used {$link->getCMSlink()} method to create links to cms pages?

with regards,

Milos

Link to comment
Share on other sites

×
×
  • Create New...