Collapsable lists?

unravelme1 - October 22, 2007 - 06:35
Project:Indymedia cities list
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi everyone. I'm working on installing Drupal on the Twin Cities Indymedia site, and I was wondering if it is possible to create collapsable lists for the cities block. For example, can I have the cities grouped by continent (like they are now), but with a little JavaScript or something that would allow users to collapse these groups? If so, could someone please tell me how? I'm OK modding the .module file, but I would prefer it if this were integrated into the module options page. Thanks.

#1

mfb - October 22, 2007 - 17:04

Sounds good. do you have a patch?
If not I can look at it when I have a moment.

Btw, you do not need to modify the module, it uses a themeable function so your theme can override it.

#2

unravelme1 - October 22, 2007 - 17:21

Thanks for the quick response. I don't have a patch; I was asking how I'd be able to do it. Do you think you could walk me through it or give me some basic guidance on theming that? Thanks again.

#3

mfb - October 22, 2007 - 18:14

jquery should make this pretty straightforward, if you add a .js file to your theme (ideally you could do this without any HTML changes needed). I'll put this patch on my list of things to do but feel free to contribute if you figure it out.

#4

mfb - November 14, 2007 - 05:08
Version:5.x-1.0» 5.x-1.x-dev
Category:support request» feature request
Status:active» fixed

I added an option for collapsible lists. However, it only works when the module is running on PHP 5, as it requires the XML version of the cities list (which currently only works with PHP 5; when running on PHP 4 the HTML cities list is used).

This is available in the current 5.x-1.x CVS version of the module.

#5

Anonymous - November 28, 2007 - 05:13
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.