Page 1 of 1
Template Switching with linklist, not dropdown menue
Posted: Sat Mar 25, 2006 12:23 pm
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!
Posted: Sat Mar 25, 2006 6:58 pm
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
Posted: Sun Mar 26, 2006 3:04 am
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
Posted: Sun Mar 26, 2006 7:54 am
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.