Opened 11 years ago
Last modified 10 years ago
#11530 confirmed New Feature
Dynamic Templates with Dialog Helpers
Reported by: | moniuch | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Widgets | Version: | |
Keywords: | Cc: |
Description
I would vote to extend templates and make them dynamic through the usage of popup dialog helper. The dialog would:
- contain user-configurable form
- go through validation & error display
- implement ui dependencies
- return html from a function, given
formState
hash.
This would allow a web site builder to provide client with smart templates that would react to web editor input.
Enclosed please find a very rudimentary example of what it would do. Validation and error handling aspects are not polished at this moment - subject to further development upon feature approval.
Attachments (1)
Change History (3)
Changed 11 years ago by
Attachment: | dynamic_templates.js added |
---|
comment:1 Changed 11 years ago by
Keywords: | templates removed |
---|---|
Status: | new → confirmed |
Summary: | Dynamic Templates w/Dialog Helpers → Dynamic Templates with Dialog Helpers |
This would be an interesting feature, although its not currently possible in such simple form because of dialogs. Template definition would have to contain a full dialog definition what makes this whole concept to heavy, because it's easier to create a new plugin which opens dialog and does the same. However, in the future it may be possible if the dialog system will be simplified.
comment:2 Changed 10 years ago by
Widgets would seem a good fit for this. Currently we are using widgets to manage responsive layouts the downside is that we cannot use any widgets within layout widgets.
preliminary syntax