Closed (fixed)
Project:
Indymedia cities list
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2007 at 06:35 UTC
Updated:
28 Nov 2007 at 05:13 UTC
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
Comment #1
mfbSounds 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.
Comment #2
theunraveler commentedThanks 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.
Comment #3
mfbjquery 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.
Comment #4
mfbI 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.
Comment #5
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.