I've installed collapsiblock using the Deco theme and it works great.

Currently I'm using blocks to show menus - i.e. mainly for navigation. Normally with a menu when a menu entry is expanded and you click on a child entry that menu stays expanded. I'd like a block that's normally marked as collapsed to stay expanded when a menu entry within it is active. Is this possible?

Comments

nedjo’s picture

Title: Make collapsiblock behave similar to normal block expand/collapse action » Make collapsiblocks expand when they contain an active item
Assigned: Unassigned » nedjo
Status: Active » Fixed

Good idea, simple to implement, patch applied to HEAD and 5.x dev branch.

tvaughan’s picture

Works exactly as required! Fantastic work, thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

headkit’s picture

how do i implement that!?

headkit’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

*hrgmpf*
tock-tock

sorry, anyone in there?

how can i implement that? (asking politely...)

thnx!

robotjox’s picture

Status: Postponed (maintainer needs more info) » Active

erh... was this fixed? not working here....

dunlop’s picture

This expand on active feature got put into collapsiblock a bit on the stealthy side. Since this changes the existing collapsiblock behaviour significantly I would request that the feature be reverted to the old behaviour until it can be made configurable.

I can see that it might be desirable functionality in some cases but it's not something that I want, or expected to surprised by, following a jstools update.

jannalexx’s picture

i agree with dunlop
how can we prevent "collapsiblocks expand" if an active view or block is inside?

can someone give the code to change that?
make it configurable if you can in the next dev