Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

collapsible panel items

as the topic allready says .. with such + - icons ... would be a nice feature to keep the panel clean and tidy


  • I was thinking the exact same thing, but also with cookies so that they would stay configured to the user's liking.

    Anyone else think this a worthwhile extension?
  • edited January 2008
    Yeah seems like a pretty decent idea. Not too difficult to implement either. Could probably hook into Mootools for some slidy effects.

    In fact, all of the cookie and processing work could be done with Mootools too. Just a matter of hacking the panel to give the +/- buttons. Although I was thinking maybe just clicking on the header should collapse it?

    Edit: Thinking about it some more. There'd be very little Vanilla hackery required, pretty much the entire thing could be done with javascript. I'd just need to write an extension to apply it.
  • Mootools (or jQuery ) - whatever the general standard of Vanilla - is there a general standard?

    Does this mean you've started on such an extension? :)
  • I wasn't aware there was a general standard, I'm not sure which library Vanilla uses for its javascript.

    Either way I have indeed started (and almost finished) such an extension.
  • That's probably because there isn't one. Either way, there's a jQuery extension and Mootools (thanks to you, Fyorl).

  • edited January 2008
    Wow you are fast! I tried installing both Mootools and Collapsible Panel but I get a js error:
    Window.addEvent is not a function (slidepanel.js line 2)
    It appears that Mootools (i.e. mootools.js) is not loading - even though I've verified it is the first line in conf/extensions.php. I've also tried disabling the Yellow Fade extension, but to no avail.
  • Hmm well it's bound to have some issues with other javascript libraries installed. Can you give me a list of the scripts in your <head> and I'll try to guess what's causing the problem.
  • Here are the scripts:
    <script type="text/javascript" src="/js/global.js"></script> <script type="text/javascript" src="/js/vanilla.js"></script> <script type="text/javascript" src="/js/ajax.js"></script> <script type="text/javascript" src="/js/ac.js"></script> <script type="text/javascript" src="/extensions/JQuery/jquery-1.2.1.min.js"></script> <script type="text/javascript" src="/extensions/JQThickBox/thickbox-3.1.min.js"></script> <script type="text/javascript" src="/extensions/Poll/functions.js"></script> <script type="text/javascript" src="/js/prototype.js"></script> <script type="text/javascript" src="/js/scriptaculous.js"></script> <script type="text/javascript" src="/extensions/Notify/functions.js"></script> <script type="text/javascript" src="/extensions/LiveSearch/livesearch.js"></script> <script type="text/javascript" src="/extensions/CategoryFilter/functions.js"></script> <script type="text/javascript" src="/extensions/CollapsiblePanel/slidepanel.js"></script><style type="text/css">
  • edited January 2008
    However, maybe I'm doing something else wrong because I have another development Vanilla and I've only enabled those two extensions and I'm still getting a JS error (i.e. mootools.js is not showing up and it is not an extension conflict). Do I have to do something special to run Mootools?
  • Well I think the problem may possibly stem from the fact that Mootools isn't being included at all there... The Mootools extension generates a file with an md5 hash as its name. So that means any weird-lookin' scripts will be the mootools file. I'm not quite sure what's happening there. You must have enabled the Mootools extensions because otherwise the Collapsible Panel extension will insert a fallback script. So that must mean there's something wrong with the Mootools extension but I have no idea what would cause it to not display a script at all, especially since you checked that it's at the very top of the extension list. Either way, I'll be working on an upgrade for the Mootools extension to allow easier re-ordering of the Javascript files. I may even go as far as to make a user-interface for it. That could possibly help with debugging but we'll see. I'm off for now but if you discover anything else, let me know.
  • Yeah, I don't know either. In any case, thanks for everything...
  • hm...

    memo to myself: fyorl is faster than his own shadow
  • Anyone else having problems getting this to work?
  • edited January 2008
    So if you don't enable Mootools extension, the fallback script should make Collapsible Panel still work?

    Edit: Actually, I tested this on my development server and if I disable the Mootools extension Collapsible Panel works.
  • Yeah, I don't want to force people into using another extension I wrote >_<
This discussion has been closed.