-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
42 lines (33 loc) · 1.62 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Croogo TVocabulary plugin
------------------------------
Show Croogo vocabularies as threaded parent child tree navigation
How to install
------------------------------
- Log in to admin panel
- Go to Extensions > Plugins page
- Upload the zip file (available here)
- Click on tick/cross icon of 'TVocabulary' for activating or deactivating the plugin
IMPORTANT: Because now it is not possible to load tvocabulary element via core croogo
Layout helper without changing core files (or I don't know how), you must manually copy
tvocabulary element from plugin dir /view/elements/tvocabulary.ctp to your theme elements dir.
If you are using default croogo theme, copy it to /app/views/elements
How to use
------------------------------
- create vocabulary in admin: Content/Taxonomy/Add new
- add some terms with parent child structure
- create block: Blocks/New block
- to body area type something like this:
[vocabulary:your_vocabulary_alias element="tvocabulary"]
Showing child nodes for term is default enabled, you can disable
it by setting showNodes attribute to false
e.g.: [vocabulary:your_vocabulary_alias element="tvocabulary" showNodes="false"]
Advanced Settings
------------------------------
Same setting syntax and options as in core croogo vocabularies,
Extra attributes:
"showNodes" (true) - disable showing nodes for term
"nodeController" (node) - controller for term nodes
"nodeAction" (view) - action for term nodes
"nodePlugin" (false) - plugin for term nodes
"nodeTagAttributes" (array) - attributes for <li> element
This plugin is so fresh, so there can be some bugs. Report it to me