juek / CustomSections

Developer plugin for rapid prototyping of custom section types in Typesetter CMS
GNU General Public License v2.0
3 stars 7 forks source link

$(document).trigger(event)s are useless in editor.php #66

Open mahotilo opened 4 years ago

mahotilo commented 4 years ago

BunchControl triggers Callbacks like $(document).trigger(), thus they can not be caught in editor.php in 'on' => array();.

We should choose objects to fire events more precise. It can be bunch_item or usersgroup_bunch_items_container or subcontrols of bunch_item.

juek commented 4 years ago

I wouldn't say useless but the current ones can only be used to do someting when the admin box opens or closes. I haven't used bunch controls myself yet. I rather work with section combos rather than adding too much complexity to a single type - or create custom (extra) controls for nested stuff.

Edit: inline editing and thus CustomSections quickly come to their limits in terms of screen real estate. At a certain point, things need to be built on dedicated Admin Pages.