Is there any documentation that is Zikula specific on how to do a layers menu? I see this has been implemented for the catagories module and a few others, but I am just missing a small part on what to do.
I have the tree being implemented correctly and it displays fine on the page, but collapsing the menu is not working. I can hack a solution by looking at the phplayersmenu code, but I want to do it the right way for Zikula. It seems as if my problem is how do I hook up the javascript code that runs them menus to the page being rendered? Any step-by-step instructions on this? Thanks in advance. I will try to write something up once I have this all figured out and put it in the Wiki.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
phplayersmenu How To
-
- Rank: Softmore
- Registered: May 30, 2005
- Last visit: May 31, 2010
- Posts: 340
-
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
Do you really want to use the phplayersmenu? For Zikula there is also the menutree block. This block makes a multi level menu available where by means of templates and style sheets you choose how the menu is displayed.
phplayersmenu is rather heavy and IMHO complicated. A menu that uses a simple nested unordered list for the menu is much nicer.
--
campertoday.nl, Module development, Dutch Zikula Community -
- Rank: Softmore
- Registered: May 30, 2005
- Last visit: May 31, 2010
- Posts: 340
Thanks for the reply. This is for the user interface for a module, can I use a block for that? My goal is this, I am working on the editing interface for my Book module. There will be many pages that will be listed, and the interface right now is really klunky. My plan was to use a menu tree that listed each book and the chapters, and then you could choose the article you wanted to edit from the list. Something like this
Code
Book 1
chapter 1
article 1
article 2
article 3
article 4
chapter 2
chapter 3
chapter 4
chapter 5
chapter 6
You could then toggle each chapter and see the articles. Each article would have links for editing and deleting. Any suggestions on how to to this is appreciated.
Tim -
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
Ah like that. Didn't read good enough probably
There are very nice tree menu scripts out there, much more elegant then phplayermenu IMHO.
Check out for example this treemenu on dynamicdrive or this one using jquery.
--
campertoday.nl, Module development, Dutch Zikula Community -
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
A nice article about tree implementations: http://ajaxian.com/archives/jstree-jquery-based-javascript-tree-component
--
campertoday.nl, Module development, Dutch Zikula Community -
- Rank: Softmore
- Registered: May 30, 2005
- Last visit: May 31, 2010
- Posts: 340
- Moderated by:
- Support
