The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
May 22, 2012, 05:53:09 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,604 Posts in 625 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto, iRealty and iLister v.4.x
| |-+  General iRealty Discussions
| | |-+  Language listing without drop down menu
« previous next »
Pages: [1] Print
Author Topic: Language listing without drop down menu  (Read 1051 times)
akip
Newbie
*

Karma: 0
Posts: 4


View Profile
« on: March 10, 2009, 05:04:00 AM »

How to add languages with linked image instead of drop down menu?
http://img255.imageshack.us/img255/5853/lang.gif

code from template/menu/left.tpl:

   <form id="langSwitcherForm">
      [[Choose language]]:
      <select name="lang" onchange="document.getElementById('langSwitcherForm').submit()">
         {foreach from=$GLOBALS.languages item=language}
         <option value="{$language.id}"{if $language.id == $GLOBALS.current_language} selected{/if}>{$language.caption}</option>
         {/foreach}
      </select>
   </form>
Logged
iron
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 90


iAuto\iRealty\iLister support


View Profile
« Reply #1 on: March 31, 2009, 02:55:43 PM »

You can just pass the language via URL in "href" tag, for example:

<img src="us_flag.gif">
<img src="spain_flag.gif">
Logged

akip
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #2 on: March 31, 2009, 06:13:21 PM »

Tnx iron, it was easier that I'm thinking.  Grin
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!