Adding Custom Control Panels to Your Plone Add-On
summary
Adds a Plone add-on control panel by registering schema records in registry/main.xml, defining a zope schema in settings.py and wiring a form subclassing RegistryEditForm plus a view wrapped with plone.z3cform layout. Handles images with an image widget factory so uploaded banners can be changed or deleted, stores values visible in the registry, and reads them via plone.api.get_registry_record. Demonstrates a theme utility and a dynamic CSS view that replaces @color tokens so banner, placement and colors update live on Plone 5.2.4.
AI-written summary · about
chapters (17)
- 0:00Start
- 1:09Why Use a Custom Control Panel
- 2:59Why Custom Control Panels
- 3:34Demo
- 4:12Custom Theme Settings
- 4:40Add a Banner
- 6:46Adding Records to the Registry
- 10:09Register Custom Theme Browser Settings
- 10:37Inspect the Record Values
- 11:19Adding the Control Panel Form
- 14:15Portal Control Panel
- 15:02Set Your Permissions
- 15:15Permissions
- 15:59Define Widget Factories
- 16:55Widget Factory
- 18:49Theme Package
- 26:21Questions
