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.
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.
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.
Comments
Anyone else think this a worthwhile extension?
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.
Does this mean you've started on such an extension?
Either way I have indeed started (and almost finished) such an extension.
Cheers!
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.
<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">
memo to myself: fyorl is faster than his own shadow
Edit: Actually, I tested this on my development server and if I disable the Mootools extension Collapsible Panel works.