CrossY Posted February 10, 2013 Share Posted February 10, 2013 (edited) Hi there, I've been at this for a while now, but I can't seem to find a proper solution, however I reckon it should be rather simple for some of you guys. The wish: - Create a topmenu with links to outside Prestashop environment, - Have 2 or more languages - Each language has: it's own language links (EN/NL, information/informatie etc.), and also have different link destinations (EN menu goes to co.uk, NL menu goes to NL). Example of desired result: - NL Menu: Home (www.xxx.nl/index.html) Productinformatie (www.xxx.nl/product.html) Ervaringen (www.xxx.nl/revaringen.html) - EN Menu: Home (www.xxx.co.uk/index.html) Product details (www.xxx.co.uk/product-details.html) Reviews (www.xxx.co.uk/reviews.html) The attempts: - Editted "blocktopmenu" to my wishes. I was not able to create different menu's for different languages, so every visitor saw every link (including the wrong ones) - Editted "blockpermanentlinks" to my wishes. I was unable to find a way to create different destination URL's. I can translate the text, just not the URL's. I think there should be a rather quick solution, i'm just not that HTML/CSS/PHP skilled to get this one done. I hope you can give me a hand. Perhaps with the translation command in some way? But how... {l s='Test3' mod='blockpermanentlinks'} Many kudo's to anyone who can help me out! Cheers, D Edited February 18, 2013 by CrossY (see edit history) Link to comment Share on other sites More sharing options...
CrossY Posted February 18, 2013 Author Share Posted February 18, 2013 Way to solve this; Basicly you're trying to display a different text/link in a different language, but creating a module for this is too difficult for me, so I do it manually. editted blockpermanentlinks-header.tpl: <!-- Block permanent links module HEADER --> {if $lang_iso == 'nl'} <ul id="header_links"> <li id="header_link_sitemap"><a href="{('http://www.yoursite.com')}">{l s='Home' mod='blockpermanentlinks'}</a></li> <li id="header_link_sitemap"><a href="{('http://www.yoursite.com')}">{l s='Home' mod='blockpermanentlinks'}</a></li> <li id="header_link_sitemap"><a href="{('http://www.yoursite.com')}">{l s='Home' mod='blockpermanentlinks'}</a></li> <li id="header_link_sitemap"><a href="{('http://www.yoursite.com')}">{l s='Home' mod='blockpermanentlinks'}</a></li> </li> </ul> {elseif $lang_iso == 'en'} <ul id="header_links"> <li id="header_link_sitemap"><a href="{('http://www.yoursite.com')}">{l s='Home' mod='blockpermanentlinks'}</a></li> <li id="header_link_sitemap"><a href="{('http://www.yoursite.com')}">{l s='Home' mod='blockpermanentlinks'}</a></li> <li id="header_link_sitemap"><a href="{('http://www.yoursite.com')}">{l s='Home' mod='blockpermanentlinks'}</a></li> <li id="header_link_sitemap"><a href="{('http://www.yoursite.com')}">{l s='Home' mod='blockpermanentlinks'}</a></li> </li> </ul> {/if} <!-- /Block permanent links module HEADER --> Probably not the cleanest code around, but it gets the job done. Enable the module "blockpermanentlinks", and if necessary hook it manually. Edit the CSS within the module for visual ajustments. Link to comment Share on other sites More sharing options...
Recommended Posts