- Issue created by @ressa
- 🇦🇺Australia darvanen Sydney, Australia
I think this goes beyond the remit of the module, sorry @ressa.
There are just so many different ways one might want to alter what happens when elements are clicked.
I really think you're getting into business-logic territory - i.e. that specific use-case would not be wanted by more than a tiny percentage of user of this module. I recommend you do that as part of your own theme where desired.
Feel free to continue the discussion despite the status change, or you can ping me on Slack, the #contribute channel is probably suitable.
- 🇩🇰Denmark ressa Copenhagen
That's all right, I wasn't sure where to make this request, or if it was a useful addition to Collapsiblock ...
But I guess it's a matter of doing a block preprocess in the theme, or a custom module, like checking for a variable ("expanded") and then add 100 to the weight, like in What is hook_preprocess_block in Drupal | Drupal 10 Tutorial .
Thanks for the offer of further discussion, I really appreciate it! (Though I don't use Slack → )
If I make it work, I'll share it in the Collapsiblock documentation → :)
- 🇩🇰Denmark ressa Copenhagen
I tried to preprocess a block and change the weight, but it looks like the blocks be might generated by the Facets module ... so moving this issue, in case it fits better there.