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.

Comments

mfb’s picture

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.

theunraveler’s picture

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.

mfb’s picture

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.

mfb’s picture

Version: 5.x-1.0 » 5.x-1.x-dev
Category: support » feature
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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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