Feature Request for 'Phoca Collapse System Plugin'

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
no64
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 06 Aug 2025, 17:42

Feature Request for 'Phoca Collapse System Plugin'

Post by no64 »

This Plugin is a great addition and a missing feature.

However, I have a few suggestions:

- Make the "Show/Hide" button hidden, if the Subform is not repeatable.
- Rename the "Show/Hide" button to "Show/Hide All", or add an option to customize the name.
- Add an option to have the subforms be collapsed by default on page load.
- A button to separately collapse a single Subform - like the "Minus/Plus" buttons.

For me these additions would make working with the subforms even clearer.
Thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48932
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request for 'Phoca Collapse System Plugin'

Post by Jan »

Hi, thank you for the ideas, I will take a look at them, not sure, if e.g. it is possible to display it based on the type of form (if Joomla sends such information that the form includes subforms, etc.)
https://github.com/PhocaCz/PhocaCollapse/issues/1
Thank you, Jan
If you find Phoca extensions useful, please support the project
no64
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 06 Aug 2025, 17:42

Re: Feature Request for 'Phoca Collapse System Plugin'

Post by no64 »

Hi Jan,

... it seems the Subform has a class of " .subform-repeatable ", also if it is not repeatable, so this is nothing to rely on.
However, it is possible to set a custom class to the field in the 'options' of the field - maybe it would be possible to use that as a workaround.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48932
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request for 'Phoca Collapse System Plugin'

Post by Jan »

The problem with subforms, they are fully managed by Joomla, no no idea, if it will be possible to somehow modify this feature from outside :idea:

Jan
If you find Phoca extensions useful, please support the project
no64
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 06 Aug 2025, 17:42

Re: Feature Request for 'Phoca Collapse System Plugin'

Post by no64 »

I manage to hide the phoca 'collapsible button' if the subform is not repeatable.
Unfortunately the subforms always have the same css classes, no matter if they are repeatable or not, but the repeatable subforms has that 'toolbar' with the 'plus-button', so if looking at that one with css and hide the phoca button if it present worked for me:

added this to the user.css of the admin template:

Code: Select all

.subform-repeatable-wrapper:not(:has(.subform-repeatable > .btn-toolbar)) > .ph-collapse {
  display:none;
}
So, adding that css to your plugin css would probably do the trick.

The other request to have the option to have the subforms closed initially 'on load' have to be done in your plugin script, I suppose.
Post Reply