Fork me on GitHub

phplayersmenu How To  Bottom

  • 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.
  • 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
  • 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
  • Ah like that. Didn't read good enough probably icon_wink
    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
  • A nice article about tree implementations: http://ajaxian.com/archives/jstree-jquery-based-javascript-tree-component

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • This.... is.... awesome!!!!!

    Thanks!

This list is based on users active over the last 60 minutes.