Default view mode in page editor

Version 3

    Status

    Specification being written/agreed to.

    Description

    A customer requested the ability to have the page editor view mode to be the mode that has a preview for portlets. At the moment when a user opens the page (or layout) editor, he is presented with the boxed representation.

    The proposal is to make this default behaviour configurable.

    Proposed solution

    Add new configuration options in configuration.properties:

    gatein.portal.pageEditor.defaultMode=block (default) | preview

    gatein.portal.layoutEditor.defaultMode=block (default) | preview

    When the option is set to "block" it should behave as of today.

    block.png

    When the option is set to "preview" the page or layout editor should directly show the editor as if the user clicked on the "Switch View Mode" button.

    preview.png