wiki:PAGE_TEMPLATE_BEHAVIOUR_R0

Version 8 (modified by deyan, 16 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=PAGE_TEMPLATE_BEHAVIOUR_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

Page templates provide the ability to use previously created templates for newly created pages. This is connected with frame templating and frame property locking.

Task requirements

Page templates include:

  • Page properties
    • frames' templates
    • frames' z-order
    • background style
      • image
      • color
      • opacity
    • border style
      • color
      • opacity
      • thickness
  • Frame list - List of frames in current page. In this revision deleting a frame from a page with template applied may not be possible. List should be like
    <template list> + <modifications>
    

Modifications are +frame, -frame, etc, but removing a frame from the template and messing with z-order should be done in later stage. Currently, the template being background of other object will be enough

  • In page HUD a checkbox "Use template" should be present for background style and border style.
    • Background style
    • Border style

Huds

  • "Use template" checkbox When a property is changed, it's "Use template" checkbox is unchecked from the page hud. In a later stage template editor should be present.
  • "Property locking" checked denies modifying properties by accident. - This is related to FRAME_PROPERTY_LOCKING_R0
  • "Use template" and "Property locking" should be present for:
    • frames' z-order
    • background style
    • border style
    • frame list
  • Templates should have way to be saved. Dragging a frame from the page to the templates palette is a good idea, but if it is not implementable now, create a testing way, see implementation idea

Task result

The result of this task must be code.

Implementation idea

Template field in page hud that uses another page as template, if you enter "3" in page 5's hud, page 5 gets page 3 as template.

FRAME_PROPERTY_LOCKING_R0
FRAME_TEMPLATES_R0
PAGE_TEMPLATES_LISTING

How to demo

(In this section you must add instructions for the demo of the task.)

Design

Implementation

(Implementation results should be described and linked here (from the wiki or the repository))

Testing

Comments

From the user point of view it would be cool to allow image borders, probably hard to implement.