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)

dynamic_templates.js (1.4 KB) - added by moniuch 11 years ago.
preliminary syntax

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by moniuch

Attachment: dynamic_templates.js added

preliminary syntax

comment:1 Changed 11 years ago by Piotrek Koszuliński

Keywords: templates removed
Status: newconfirmed
Summary: Dynamic Templates w/Dialog HelpersDynamic 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 Matti Järvinen

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy