Version 7 (modified by deyan, 15 years ago) (diff) |
---|
Page templates
For each page template in addition to page options frames (as well as other options) should be present in templates. The frames in a page templates are just like frame templates, but here they will be called Slots instead of templates.
Page options
The page options should be like they are now, however the UI may be slightly different (and the order can be other)
Frames
Existing frames should be added like Slots. Slots should be named just "Slot" and in brackets should be displayed frame name. For each slot checkboxes will show what frame options should be preserved for this slot.
Groups
Groups will be added like slots with subslots.
Creating instance of a page template
Creating an instance of a template will create new page with all the options following the page template and new frames following the slots. This means that if "Slot (Frame A)" was created with unchecked position checkbox, it will appear on position 0,0.
Applying a template to an existing page
The user interface will be decribed further below. However, the main idea is the following:
- Each of the existing frames can be
- assigned to a slot (1)
- left unassigned to a slot(2)
- deleted (3)
- For each slot
- a new frame can be created (4)
- can be assigned to an existing frame (1)
- can be unused (5)
Behavior:
(1) The frame is assigned to this slot. Slot options that were checked on template creating are applied to the frame. If the slot is modified, changes are applied to the asociated frame(or frames on more pages). If the slot is deleted, the frames associated to it on different pages are removed.
(2) The frame remains on the page untouched. Z-order is undefined, but the behavior is not important. Changing template (and slots) does not affect this frame. *
(3) The frame will be deleted*
(4) New frame is created and associated with the corresponding slot. Unchecked checkboxes fallback to the parent template (or the empty)
(5) The slot is unused for this instance. Changing (or deleting) this slot does nothing to the instance.
* Due to difficult user interface, this could be chosen for all existing frames on the page.
Deleting a template
There are two options
- Allow deleting a template, pop up a warning that existing pages may lose formatting
- Don't allow deleting existing template
It would be better to allow deleting templates. This should remove from pages frames associated with a template and page options defined by a template.
Attachments
- pagetemplateapply.png (29.6 KB) - added by deyan 15 years ago.