Page 1 of 1
Feature Request for 'Phoca Collapse System Plugin'
Posted: 07 Aug 2025, 07:22
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
Re: Feature Request for 'Phoca Collapse System Plugin'
Posted: 08 Aug 2025, 14:34
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
Re: Feature Request for 'Phoca Collapse System Plugin'
Posted: 08 Aug 2025, 15:10
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.
Re: Feature Request for 'Phoca Collapse System Plugin'
Posted: 11 Aug 2025, 14:23
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
Jan
Re: Feature Request for 'Phoca Collapse System Plugin'
Posted: 26 Aug 2025, 07:07
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.
Re: Feature Request for 'Phoca Collapse System Plugin'
Posted: 10 Sep 2025, 09:06
by no64
If there is a repeatable subform in a non repeatable subform:
Code: Select all
.subform-repeatable-wrapper:not(:has(> .subform-repeatable > .btn-toolbar)) > .ph-collapse {
display:none;
}
Re: Feature Request for 'Phoca Collapse System Plugin'
Posted: 10 Sep 2025, 13:28
by Jan
OK, thank you for the info.