Collapsible Category

Collapsible Category 2.5.0

No permission to download
That is in extra.less - but you may misunderstand, what I meant. I switched the visual state of the button, not the initial state of the node....
 
Yes, I attempted to make a state change in CSS. That did not end well.

I am also looking around in the template_modifications.xml file, where the instructions seem to originate from. That has not ended well either... :cool:

Any thoughts?
 
To help visualize why I would like to do this, here is the outcome I am seeking for those landing on the forum index page:

collapsed forum index.webp
 
To help visualize why I would like to do this, here is the outcome I am seeking for those landing on the forum index page:

View attachment 282728
You can use that

 
@t0fx that link goes to the open MIT source code used in this addon. The plugin just makes it simpler by avoiding edits--but still does not allow instructions for default active toggle to collapsed.
 
@t0fx that link goes to the open MIT source code used in this addon. The plugin just makes it simpler by avoiding edits--but still does not allow instructions for default active toggle to collapsed.
I haven't tested this, but if you're comfortable enough to edit the addon, it would probably just be a matter of finding the two instances in the template modifications of "!is_toggled(" and replacing them with "is_toggled(", basically just removing the "!" from there to invert the result.
 
Is there a way to change the icon and also remove the animation?

Edit: i just edited the TM raw and it solved the issue. Would be a nice feature to add!
 
After using it for a few days I see that it is not fully compatible with 2.3...

After a while with a category collapsed, the button stops working even if I refresh the page with F5, I have had to temporarily uninstall it

@KSA

Expected tbqh but once XF is officially released I will look into it.
 
I am completely loving this addon - I have almost 200 forums in 27 categories. Thank you @KSA !

One thing - there's an FA caret-down.svg shown to collapse the categories, but I don't see an FA caret-right.svg in the CSS to expand them. It's available in the styles/fa/solid folder. Is there a setting somewhere that I missed that will allow the caret-right.svg to show up? I've also shown the CSS that's been crossed out. The specificity on .collapseTrigger:not(.button):before is (0,2,1) but I have not idea what's overriding it or how to fix it.

1731374318428.webp


caret-right.webp
caret-right CSS.webp
 
Last edited:
What the heck - I messed with the CSS in the Google console, and now the caret-right.svg is showing up. Like, in Opera and Firefox too. I'd say it could have been a caching issue, but the timing was too specific to be a coincidence - like immediate.
 
So, another question - is there a way to disable a specific category from being collapsed? There's only one that I need to stay open.
 
My apologies y'all.

Due to multiple back surgeries, I have been instructed to avoid sitting for extended periods. I am currently undergoing physiotherapy and showing improvement. While I'm unable to thoroughly investigate at the moment, my preliminary review of XF 2.3 codes doesn't indicate any issues that would affect this add-on's functionality. Please test it on default style to verify compatibility.
 
My apologies y'all.

Due to multiple back surgeries, I have been instructed to avoid sitting for extended periods. I am currently undergoing physiotherapy and showing improvement. While I'm unable to thoroughly investigate at the moment, my preliminary review of XF 2.3 codes doesn't indicate any issues that would affect this add-on's functionality. Please test it on default style to verify compatibility.
Your health is imminently more important than anything posted in this forum. Take care of yourself, and we'll see you when you're healthy enough to participate.
 
  • Like
Reactions: KSA
Back
Top Bottom