Forum
Folding dividers and blocks
Not sure if this has been suggested...
Sometimes region fields and blocks can be very large and/or there can be many of them on a page. It would be great if the end user was able to click on a "divider-before" or a block section to have the contents fold up and away when not needed allowing the user to focus on the section he wants to edit.
Yes that has been suggested several times for 2.9 so is on the list for consideration.
Great, thanks!
Shawn, we use jquery to collapse long sections, let me see if I can dig up the code tomorrow to share. It's just a simple UI tweek if I remember correctly.
R. K
This would be awesome, and it would be fantastic if fields could be dynamically shown/hidden depending on a checkbox or dropdown selection. Robert, I'd love to see that trick as well.
Shane, This is a simple example with a bit of content removed.
We added javascript (jquery) to file at /perch/addons/plugins/ui/_config.inc
then in our template where we wanted the folding we used attribute devider-before="" and devider-after="" to define our fold.
Now when you are in the perch admin where the template is being used the divider-before label will be shown but will have an arrow indicating the section is folded, click and it will unfold.
None of the modifications will be affected by Perch Core updates and is fully compliant with how the designers of perch indicate how such UI changes should be performed.
Please let me know if I left something out... because I am human...lol :)
Hi Robert,
This works GREAT! Thank you for this, this really makes a big difference in with the editors experience.
Thanks Again!
Your welcome. I am glad you got it working so quickly.
What a great idea, thanks Robert!
EDIT: This opens a whole world for Perch organization, really. Definitely going to experiment with jQuery .change() on checkboxes and select fields to see what's possible for showing/hiding unnecessary content fields. Thanks again for the great idea!