Template Switching with linklist, not dropdown menue

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
snafu
Regular
Posts: 108
Joined: Sat Dec 17, 2005 7:34 am

Template Switching with linklist, not dropdown menue

Post by snafu »

im successfully using PLUGIN_TEMPLATEDROPDOWN. for accessibility it is better to have big buttons instead of a dropdown list, whitch is difficult to use for people with motorical handicaps.

is there a way to pass the theme name inside the url?

i think about hard coded buttons, similar to this solution http://bifos-sommercamp.de/, which is done in wordpress. but i would like to have a serendipity template with good accessibility.

thanks!
Last edited by snafu on Sun Mar 26, 2006 7:56 am, edited 2 times in total.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Snafu,

You're in luck, it can be done. I believe the template chooser needs to be installed, but you could make it hidden in the plugin configuration.

Then, using an html nugget or the link list, create a link like this

Code: Select all

http://www.your.url/index.php?template_chooser=themename
The themename is the name of the theme as it appears in the template chooser dropdown, in the options section. So if you wanted to include the new default theme, you would use 'carl_contest' instead of 'Serendipity v3.0'

Hope that helps,

Carl
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Snafu I have misled you in my previous post, the actual code you want is

Code: Select all

http://www.your.url/index.php?user_template=themename 
Sorry about that, I was typing too quickly and didn't pay attention,

Carl
snafu
Regular
Posts: 108
Joined: Sat Dec 17, 2005 7:34 am

Post by snafu »

thanks a lot carl_galloway for your quick reaction, it works fine! now i'm going to write the different templates (big font, negative, simple text - only - display for screenreader...)

btw:
theme switching works not properly because of css cache in firefox and ie, discussed here:
http://www.s9y.org/forums/viewtopic.php ... +css+cache
i tried to solve this with brute force:

Code: Select all

<meta http-equiv="expires" content="0">
works in ie, but firefox still chaching

so i named any css file of any used template different and modified css loading in index.tpl

Code: Select all

    <link rel="stylesheet" type="text/css" href="templates/bg/style_bg.css" />
now i get my themes switched.
Post Reply