Language switcher 2

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 3, 2014   (RSS)

By CarlosPinedo - October 1, 2014

Hi , I´m trying to create a language switcher as the one posted here http://www.interactivetools.com/forum/forum-posts.php?postNum=2232984#post2232984   . Everything is clear except how are the links created: The user mattbcd says "Then created links for each ending in ?lan=eng and ?lan=de", but how?

Any suggestions here

Carlos

By CarlosPinedo - October 3, 2014

Thanks Matt

What I didn't know was how was the query added . But I did it with an if statement and a list record.


<?php if ($langRecord['lan'] == 'de'): ?> <?php $_COOKIE['lang Cookie']="de" ;?> <?php endif ?>


Thanks for answering!