Closed (fixed)
Project:
Switchtheme
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2006 at 18:44 UTC
Updated:
12 Jan 2007 at 21:45 UTC
It would be useful to have a way to create links that will call up a certain theme that is installed on Drupal via Switchtheme. If URLs could be made that indicate which theme to open and actually switch the theme (so that users can continue to browse with the selected theme active) this would be quite useful.
i.e. http://www.example.com/switchtheme=garland
Thanks!
Comments
Comment #1
karens commentedI think I told you to post this as a feature because I didn't have time to investigate it, but you can do this now. This is not documented anywhere, but just do http://www.example.com/?q=home&theme=bluemarine if you're not using cleanurls or for clean urls you can use http://www.example.com/&theme=bluemarine. You have to use the 'real' name of the them (the name of the folder it is in on your server), not some label you created for it.
Comment #2
Coupon Code Swap commentedHi Karen. I thought posting here was what you meant when you said to post as feature. The http://www.example.com/&theme= does the trick. Exactly what I was hoping was possible. Thanks!
Comment #3
karens commentedYep, I told you to post here because I was thinking it would take some tweaking to do it, but it turns out it doesn't.
Comment #4
Coupon Code Swap commentedIsn't it great when things work out that way :)
Comment #5
Coupon Code Swap commentedHi Karen. This isn't working in Drupal 5.0 yet. I get a fatal error on line 36 of switchtheme.
Comment #6
karens commentedNow 5.x is fixed, too.
Comment #7
Coupon Code Swap commentedThanks. I'll try it out.
Comment #8
(not verified) commented