You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

Proposal: Template Editor Enhancements

Status

Proposal under-development

Target Release

4.0

Original Authors

DaveJohnson

Abstract

This is a proposal to make some minor usability and functionality improvements to the UI of the Template Editor pages (edit-page.jsp and edit-pages.jsp).

Requirements


  • Templates page
    • Remove Navbar, Hidden page and Edit columns
    • Add Content-Type column where removed columns were
    • Add icon to column one and make page name link to edit page
    • Show hidden pages in italics and with different icon
  • Template Editor page
    • Add proper subtitle and tip like all other page
    • Create advanced settings area for things most users don't use.
    • Provide up/down expand/contract buttons for template text area on Template Editor page.
    • Provide link to page generated by template
    • Provide feed-back to show users what the page URL will look like
    • Provide content-type field for each page template.
      • Text field and combo-box with options:
        • Page (text/html)
        • CSS (text/style)
        • JavaScript (text/script)
        • Custom... (launches pop-up allows entering custom content-type).
    • Provide language field for each page template.
      • Combo-box with options:
        • Velocity
        • (list of others specified in startup configuration).
  • All template pages:
    • Switch out Struts logic tags for JSTL
    • Use page model approach like other pages

Issues

None.

Design

List and describe new manager methods, Struts actions, JSP pages, macros, etc.

  • New table column webpage.outputtype which specifies MIME content-type that is generated by the template. If this is null or an empty-string then rendering system will assume text/html.
  • Startup-configuration: new property rendering.templateLanguages, which lists the languages to be allowed in the Edit-Templates page.
  • edit-page.jsp: Changes to meed requirements above. See screen-shots below.
  • edit-pages.jsp: Changes to meet requiremets above. See screen-shots below.
  • WeblogTemplateFormAction.jsp: Changes to meetin requirements above.

Edit-Pages screen-shot

NOTES:

  • Name link leads to edit page, different icon used for hidden pages
  • Link link opens page in pop-up window (i.e. target="_blank")
  • In remove column: hover-over for lock is "Required", hover-over for remove is "Remove"

Edit-Page screen-shot

NOTES:

  • If page is required we mention that in the help tip
  • Link is reflect in URL and updated as user types
  • If link is un-changed, then "launch" will launch it in a pop-up window
  • Note up/down buttons at bottom right of text-area
  • Advanced Settings is a "toggle-control" like those on Weblog-Edit page
  • Content type combo-box has "Custom..." option to allow additional types

Comments

Other can leave comments here.

  • No labels