Region preview should be generated by each module
Registered by
Dan Garner
Currently the region preview is generic code which does different things depending on the module. This is not future proof as new modules will have no logic in there to display themselves - also schema changes on the module will render the code that is there out of date.
The suggestion is that each module implements a Preview() function which takes the width and height of the area it is in and returns the HTML for displaying that region. The layout preview would then just create a module object and call Preview(width, height).
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Dan Garner
- Definition:
- Approved
- Series goal:
- Accepted for 1.0
- Implementation:
- Implemented
- Milestone target:
- 1.0.6
- Started by
- Dan Garner
- Completed by
- Dan Garner
Related branches
Related bugs
Bug #497167: Region preview differs from what is actually shown on the client | Fix Released |
Sprints
Whiteboard
(?)