Hi list,
What's the easiest way to take an arbitrary D5 or D6 theme and make blocks collapsible with javascript? I'm thinking in particular of the Deco theme, and with various menus shown as blocks. I'd like to be able to make blocks collapsible and set as collapsed/uncollapsed by default, with visual feedback to show status.
Thanks in advance,
Tim
Check out JavascriptTools Project http://drupal.org/project/jstools
On 11/16/07, Tim Vaughan tim@timvaughan.co.uk wrote:
Hi list,
What's the easiest way to take an arbitrary D5 or D6 theme and make blocks collapsible with javascript? I'm thinking in particular of the Deco theme, and with various menus shown as blocks. I'd like to be able to make blocks collapsible and set as collapsed/uncollapsed by default, with visual feedback to show status.
Thanks in advance,
Tim
-- Tim Vaughan 07725749263 _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
On 11/16/07, Tim Vaughan < tim@timvaughan.co.uk> wrote:
What's the easiest way to take an arbitrary D5 or D6 theme and make blocks collapsible with javascript? I'm thinking in particular of the Deco theme, and with various menus shown as blocks. I'd like to be able to make blocks collapsible and set as collapsed/uncollapsed by default, with visual feedback to show status.
JQuery is part of Drupal core and provides a library for doing this: http://jquery.com/.
You'll need to write a bit of JavaScript specific to your application.
The best getting started text I've seen to date is in the Pro Drupal Developers book, though it's still bare essentials. Doing a quick Google (because you made me curious :-) the best I found in 30 seconds was this: - http://del.icio.us/kentbye/jquery - http://www.slideshare.net/robknight/beginning-jquery-in-drupal-theming/
In a nutshell, the JQuery library is already there. You need to include your JavaScript code for collapse/uncollapse on the target page. There are a variety of methods for doing this, the best one depends on the specific situation (eg: site wide, per page).
Hi all,
Thanks for the suggestions for the jstools module - I've just installed it and it serves my needs (almost exactly). Many thanks!
Two questions probably best posed to the maintainer:
* Is a port to D6 planned? * How can I mark a block as collapsed by default but expanded when a link within that block is active? This is to prevent someone from expanding a block, clicking on a link and then seeing the block collapse when the requested page loads.
Tim
On 11/16/07, Marek Sotak marek@sotak.co.uk wrote:
Check out JavascriptTools Project http://drupal.org/project/jstools
On 11/16/07, Tim Vaughan < tim@timvaughan.co.uk> wrote:
Hi list,
What's the easiest way to take an arbitrary D5 or D6 theme and make blocks collapsible with javascript? I'm thinking in particular of the Deco theme, and with various menus shown as blocks. I'd like to be able to make blocks collapsible and set as collapsed/uncollapsed by default, with visual feedback to show status.
Thanks in advance,
Tim
-- Tim Vaughan 07725749263 _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
-- __________________________________ ____ ___ __ _ .. .. . Give a man a fish, and you'll feed him for a day. Teach a man to fish, and he'll buy a funny hat. Talk to a hungry man about fish, and you're a consultant.
- Scott Adams
http://sotak.co.uk _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
see the itheme from drupal website.
On 11/16/07, Tim Vaughan tim@timvaughan.co.uk wrote:
Hi list,
What's the easiest way to take an arbitrary D5 or D6 theme and make blocks collapsible with javascript? I'm thinking in particular of the Deco theme, and with various menus shown as blocks. I'd like to be able to make blocks collapsible and set as collapsed/uncollapsed by default, with visual feedback to show status.
Thanks in advance,
Tim
-- Tim Vaughan 07725749263 _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
See collapsiblock module (install jstools, which has the jscalendar, and many other modules), which does this. I installed it once, and it worked, although it didn't meet my needs then... check it out:
http://drupal.org/project/jstools
Victor Kane http://awebfactory.com.ar
On Nov 17, 2007 12:00 AM, sherif mayika sherifmayika@gmail.com wrote:
see the itheme from drupal website.
On 11/16/07, Tim Vaughan tim@timvaughan.co.uk wrote:
Hi list,
What's the easiest way to take an arbitrary D5 or D6 theme and make blocks collapsible with javascript? I'm thinking in particular of the Deco theme, and with various menus shown as blocks. I'd like to be able to make blocks collapsible and set as collapsed/uncollapsed by default, with visual feedback to show status.
Thanks in advance,
Tim
-- Tim Vaughan 07725749263 _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
-- With Many Thanks and Regards
sherif mayika
www.sherifmayika.com Aladin Studios Cochin 20 091 9447149449 _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes