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!
Template Switching with linklist, not dropdown menue
Template Switching with linklist, not dropdown menue
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:
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
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
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
Hope that helps,
Carl
-
carl_galloway
- Regular
- Posts: 1331
- Joined: Sun Dec 04, 2005 5:43 pm
- Location: Andalucia, Spain
- Contact:
Snafu I have misled you in my previous post, the actual code you want is
Sorry about that, I was typing too quickly and didn't pay attention,
Carl
Code: Select all
http://www.your.url/index.php?user_template=themename
Carl
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...)carl_galloway wrote:http://www.your.url/index.php?user_template=themename
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">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" />