Hi, im working on a site that would have default language as swedish with a finnish image flag. Im using this:
if($input->get->language) {
// user clicked on a link to set the language
$name = $sanitizer->pageName($input->get->language);
$language = $languages->get($name);
if($language) $session->language = $language->name;
}
if($session->language) {
// language is defined in user's session
$user->language = $languages->get($session->language);
}
and
<a href='./?language=finnish'>Finnish flag</a>
How do i get the flag to change to a swedish flag?So that when some 1 chooses finnish the finnish flag would become swedish and link to the default page?
I have tried many if cases but didnt get them to work.
Thanks
Simon
- ProcessWire Support Forums
- → Viewing Profile: Topics: gottberg
Community Stats
- Group Members
- Active Posts 18
- Profile Views 501
- Member Title Jr. Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Male
-
Location
Finland, Tammisaari
1
Neutral
User Tools
Friends
gottberg hasn't added any friends yet.
Latest Visitors
Topics I've Started
Multilanguages
28 April 2012 - 02:04 PM
Processwire upload issues
29 March 2012 - 11:12 AM
Hi, have had some problems uploading my sites created in windows and uploading them to a Linux server, the rights of the files are allways wrong. Is there an easy way to fix this?
Field question
27 March 2012 - 12:38 PM
Hi, im building a multilanguage website and i was wondering if there was an easy way for the footer, it will be the same on every page. Now i have to copy paste the footer text to the footer field for each page, could there be an easier way?
Best regards Simon
Best regards Simon
Sub pages
08 March 2012 - 04:20 AM
Hi, and thank you for this wonderful CMS, perfect for my needs! Im a newbie so i would have some questions.
I was wondering how i could create a menu like this:
http://www.dynamicdr..._side_bar_menu/
Could somebody show me an code example? I got i working but they would have to enter the parent page before.
Thank you!
Simon
I was wondering how i could create a menu like this:
http://www.dynamicdr..._side_bar_menu/
Could somebody show me an code example? I got i working but they would have to enter the parent page before.
Thank you!
Simon
- ProcessWire Support Forums
- → Viewing Profile: Topics: gottberg
- Privacy Policy





Find content