Replace Multilangual dropdown meny with clickable images

Creating and modifying plugins.
Post Reply
jojje
Regular
Posts: 41
Joined: Thu Dec 08, 2005 4:09 pm
Location: Sweden
Contact:

Replace Multilangual dropdown meny with clickable images

Post by jojje »

I want to replace the dropdown meny with the language choises with two flags of the available languages.

But what shall the code be in the link to get it right?
jojje
Regular
Posts: 41
Joined: Thu Dec 08, 2005 4:09 pm
Location: Sweden
Contact:

Post by jojje »

More questions,

can one set the plugin to hidden and place the images anywhere else on the page?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You can create your own HTML nugget plugin on the sidebar for that -- just look at the default HTML outpput of the language dropdown, and then copy+paste that to your nugget. There you can then make your changes and add graphics or whatever you like. :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jojje
Regular
Posts: 41
Joined: Thu Dec 08, 2005 4:09 pm
Location: Sweden
Contact:

Post by jojje »

I´m sry but I don´t get it how to get the default HTML output.

The form code for the dropdown looks like this:

Code: Select all

<form id="language_chooser" action="/paloma/index.php?/archives/5-Nutrition.html" method="post"><div><select style="font-size: 9px;" name="user_language" onchange="document.getElementById('language_chooser').submit();"><option value="en">English</option><option value="es" selected="selected">Spanish</option></select><input name="submit" value="¡Ir!" size="4" type="submit"></div></form>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, that code you pasted is the HTML output, you could just use that for your custom HTML nugget sidebar! :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply