Loading...
 
Skip to main content

History: ModuleCategories

Preview of version: 8

Image

To make a module that contains the Category Tree (the same one you see on the left side of the Categories page of your TikiWiki site) just create a new User Module (in Admin --> Modules at the bottom left corner of the page). See UserModuleDoc and UserModuleAdmin for more info on creating a new User Module.

Put this in the Data for the module:

Image
Copy to clipboard
<div class="tree"> {$tree} </div>


Then if you want you can edit the templates/tiki-browse_categories.tpl file and remove the same code from that template. But if you do this, remember to make the new Categories module always visible to your users that need to access the categories.

Turning on phplayers menus in Admin --> Features will give you a folder-style tree like the one pictured above. The .css and image files for the phplayers tree-style menu is located in lib/phplayers. I've http://tikiwiki.org/tiki-index.php?page=ModuleCategories#attachments my modified .css and image files in case you want to make yours look just like the example pictured above.

lib/phplayers/layerstreemenu.css has the font styles (use this if you want to change the size or style of the text in the category tree.)

The folder lib/phplayers/images contains all the images used in the tree, which are all prefixed with tree_ (i.e. tree_collapse.png, tree_leaf.png)

lib/phplayers/layerstreemenu-hidden.css sets the size for all of the images used in the tree (so if you change the size of the images used in the tree, you have to change the .imgs property settings in this file to match the new size of the images.)

Just let me know if you have questions — Colorado

History

Information Version
Marc Laporte 27
View
emagin 26
View
emagin 25
View
sylvie greverend 24
View
sylvie greverend 23
View
sylvie greverend 22
View
sylvie greverend 21
View
sylvie greverend 20
View
colorado 19
View
colorado 18
View
colorado 17
View
colorado 16
View
colorado 15
View
colorado 14
View
colorado 13
View
colorado 12
View
colorado 11
View
colorado 10
View
colorado 9
View
colorado 8
View
colorado 7
View
colorado 6
View
colorado 5
View