ZenphotoCMS Forum
Language switch from <a> tag (anchor/link)? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Language switch from <a> tag (anchor/link)? (/thread-4765.html)



Language switch from <a> tag (anchor/link)? - mikegoodstadt - 27-02-2009

Rather than using the dynamic-locale plugin, can I switch languages from an < a > tag (anchor/link)?
I don't like the lack of styling control if using a select list and would rather have the more classic text option in a top cormer eg. english|español
I have tried to tackle the issue myslef by hacking around with the plugin but I can't figure it out :´(
Many thanks,
Mike




Language switch from <a> tag (anchor/link)? - sbillard - 27-02-2009

You will have to create a link that uses a post method and passes the old and new locales as post items. See the printLanguageSelector() function for details.