Closed (fixed)
Project:
Style Switcher
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
19 May 2009 at 02:50 UTC
Updated:
26 May 2009 at 02:08 UTC
I installed the module. No errors occurred.
But apparantly I am missing some basic knowledge, because I do not have a clue as to what to do now.
"Implementing this in your theme is a simple 2 step process:"
Is too vague for me unfortanely. Any pointers on where to start?
Where is the documentation? I could find no READM.TXT or other starting points
Comments
Comment #1
firfin commentedComment #2
firfin commentedThis is what I did to get it working.
First of all download and enable the module.
Then set up the styles:
From the module information page page:
" Implementing this in your theme is a simple 2 step process:
1. Create stylesheet(s) for each different style. Note that each stylesheet is added to the existing set of default stylesheets.
2. Add a line to your theme's info file like
styleswitcher[css][Style 2] = css/style2.css
where "Style 2" is the title associated with you style, and css/style2.css is the location of the stylesheet, relative to the theme's path. "
I have done this in the following way:
1. In your theme folder you can create the style files. I used a subdirectory to place these in: /styles/
In this directory you create css files. I just copied over my themename.css files from my zen-based theme. I did this twice and called them /styles/style1.css and /styles/style2.css . Make any changes you want to these files.
2 In themename.info add a section to let the styleswitcher know which styles to offer.
; Alternate stylesheets
styleswitcher[default] = Default
styleswitcher[css][Default] = themename.css
styleswitcher[css][Name for style 1] = styles/style1.css
styleswitcher[css][Name for style 2] = styles/style2.css
Finally you have to enable the block for styleswitcher. Go to the block administration en place the blocks where you want it and save it. Then you can also configure it. Set blockname, permissions, visibility.
Voila, style switcher. (or maybe after clearing the cache ;-) )
Comment #3
firfin commentedSet status to fixed
Comment #4
firfin commentedOr closed is better. My question is answered so.