Hi Everyone!
Ok, so I have this site that is going to be using Forums a lot... and there are many containers and forums. What I want to know is if there is a way to make the huge long list collapse into a list of the Containers and load the Child forums with either AJAX or JavaScript... unfortunately I know next to nothing about either of them so any help is appreciated!
Thanks!
~Jake

Comments

dnewkerk’s picture

I believe something like this is a planned feature for the Advanced Forum module, but maybe not anytime very soon. You can probably do something like this yourself using code such as http://www.learningjquery.com/2006/09/slicker-show-and-hide

There are forum template files you can copy from /modules/forum into your theme and modify if needed. Put the Javascript (use jQuery with Drupal) in a file called script.js and Drupal will automatically find it and add it to your site. If you need to add scripts with different names. here's info on that: http://drupal.org/node/171205#scripts

-- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides

ocforum’s picture

Thanks for your quick reply! Is there anywhere that you can point me to that has implemented this so I can see what it will do?

dnewkerk’s picture

Not specifically on a Drupal forum... but you can see a simple example of the effect by looking at Demo 1 and Demo 2 on the guide I linked to (click the "Toggle the box" links). Also another code sample: it may not be the best (I found it doesn't initially hide the divs quickly enough) but this worked for me when I just rapidly set it up to test: http://drupal.org/node/287259
This also looks promising http://www.learningjquery.com/2007/03/accordion-madness

I'm "pretty" certain the version of jQuery in Drupal core can do these particular things with no added plugin scripts.

-- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides

ocforum’s picture

What about jQuery UI?