| 1 |
*****************************************************************************
|
| 2 |
T A X O N O M Y T H E M E
|
| 3 |
*****************************************************************************
|
| 4 |
Name: taxonomy_theme module
|
| 5 |
Author: Thilo Wawrzik <drupal at profix898 dot de>
|
| 6 |
Drupal: 6.x
|
| 7 |
*****************************************************************************
|
| 8 |
DESCRIPTION:
|
| 9 |
|
| 10 |
The taxonomy_theme module allows you to change the theme of a given node
|
| 11 |
based on the taxonomy term or vocabulary that node.
|
| 12 |
|
| 13 |
*****************************************************************************
|
| 14 |
INSTALLATION:
|
| 15 |
|
| 16 |
Taxonomy Theme depends on the ThemeKey module. You will need to install
|
| 17 |
that module as well in order to use Taxonomy Theme.
|
| 18 |
|
| 19 |
1. Place whole taxonomy_theme folder into your Drupal sites/*/modules
|
| 20 |
directory.
|
| 21 |
|
| 22 |
2. Enable taxonomy_theme module by navigating to
|
| 23 |
Administer > Site Building > Modules (admin/build/modules)
|
| 24 |
|
| 25 |
3. Bring up taxonomy_theme configuration screen by navigating to
|
| 26 |
Administer > Site Configuration > ThemeKey > Taxonomy
|
| 27 |
(admin/settings/themekey/taxonomy)
|
| 28 |
|
| 29 |
4. Configure all settings after your fancy (see below)
|
| 30 |
|
| 31 |
!! Enable all your themes once to make them available for taxonomy_theme
|
| 32 |
!! and don't forget to configure block settings per theme.
|
| 33 |
|
| 34 |
!! Taxonomy Access users need to grand 'LIST' permission for every term
|
| 35 |
!! they want to change the theme on (otherwise default theme is applied).
|
| 36 |
|
| 37 |
*****************************************************************************
|
| 38 |
SETTINGS / OPTIONS:
|
| 39 |
|
| 40 |
Most options should be pretty much self-explanatory. But some may not!
|
| 41 |
|
| 42 |
- "Taxonomy: Template selection"
|
| 43 |
You can choose one of three different methods here.
|
| 44 |
|
| 45 |
+ Option A: Term-based
|
| 46 |
With this method you will have a 'Theme-Selector' vocabulary and you can
|
| 47 |
assign one theme to each of its terms. When you create/edit a node you
|
| 48 |
map a term to it and therefore map a theme to it also.
|
| 49 |
|
| 50 |
Decide which vocabulary you will use to control the selection of
|
| 51 |
templates, and make sure that vocabulary exists, e.g. create a
|
| 52 |
'Sections' vocabulary.
|
| 53 |
Create terms that will select templates, e.g. if 'Section A' of your
|
| 54 |
site will have one template and 'Section B' will have another template,
|
| 55 |
create the terms 'Section A' and 'Section B' in 'Sections' vocabulary.
|
| 56 |
Choose the vocabulary you will use to control the selection of templates
|
| 57 |
and map the terms to templates.
|
| 58 |
|
| 59 |
+ Option B: Vocab[ulary]-based
|
| 60 |
If you have 'Section A' and 'Section B' as two different vocabularies and
|
| 61 |
want to assign 'Theme A' and 'Theme B' to a whole Section including all
|
| 62 |
its (sub)terms, use this 'Vocab-based' method.
|
| 63 |
|
| 64 |
+ Option C: All Taxonomy
|
| 65 |
With the 'all taxonomy' method you can select themes for all terms in all
|
| 66 |
categories/vocabularies, what gives you even more control.
|
| 67 |
All Taxonomy = Term-based + Vocab-based
|
| 68 |
|
| 69 |
*****************************************************************************
|