-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redevelop the Inspector widget #498
Comments
Could we explore having the fields being managed by an embedded Form widget to bring the full power & flexibility of that to the inspector? Currently only a very limited set of fields are available to be used. Also it would be great if it could support more types of data, I don't think anything complicated like raw markup is currently supported. |
I'm not sure how well the Form widget will lend itself to the Inspector due to it being primarily front-end - it would also mean that we would have to be able to develop some way to allow the form widgets templates to be changed if displayed inside the Inspector. I also think the limited field set is intentional, but I can certainly look into though. |
The Inspector widget in Winter CMS is one of the many unique and powerful features of the framework, providing contextual "popup" forms for various elements, most prominently in the configuration of CMS components, but also used very liberally throughout some first party plugins like the Builder plugin.
The widget has remained virtually unchanged throughout the history of Winter CMS and October CMS before it due to its complexity (beyond a rewrite to support features in the Builder plugin), therefore we have determined that it is due an upgrade and refactor to simplify its usage. This issue will detail the goals that we intend to achieve with redeveloping this widget.
Primary Goals
text
field in a Form is a single-line input, but in the Inspector, it is a multi-line input. To keep the development experience consistent, we will adopt the Form schema for all fields available in the Inspector, whilst keeping backwards-compatibility with the original schema.Secondary Goals
Tasks
properties
property tofields
type: string
totype: text
type: text
totype: textarea
type: set
totype: checkboxlist
type: stringlist
totype: taglist
type: object
totype: nestedform
properties
property toform
and allow a nested field structuretype: objectlist
totype: repeater
itemProperties
property toform
and allow a nested field structuretitleProperty
property totitleFrom
keyProperty
property tokeyFrom
title
property tolabel
description
property tocomment
Related tasks and issues
The text was updated successfully, but these errors were encountered: