WMS Package : layout support
WMS Package : layout support
Section(s): front office, templates
Because a website loves to change its clothes, we added a layout context in the common JSP resolution.
Read also
- XMS front engine : HTML skeleton
- Front Office multisite management
Previous reading
This is the full front JSP skeleton available in the Wedia XMS engine that you are free to use (and extend).
The other actions (homepage, search) are based on the same philosophy.
These JSPs are available in the __default WebApp folder :
/view.jspz /front/view.jspz /front/view/view.jspz * /front/common/init.jspz?form_object=[objectname]&form_id=[activeObject.properties.id] /front/common/init/init.jspz /front/common/init/initBundle.jspz /front/common/init/initBundle/initBundle.jspz /front/common/init/initBundle/initBundle_content.jspz * /front/common/init/init_content.jspz /front/common/init/initBaseWhere.jspz /front/common/init/initBaseWhere/initBaseWhere.jspz /front/common/init/initBaseWhere/initBaseWhere_content.jspz /front/view/init.jspz /front/view/init/init.jspz /front/view/init/init_content.jspz * /front/common/head.jspz?form_object=[objectname]&form_id=[activeObject.properties.id] /front/common/head/meta_http_equiv.jspz /front/common/head/meta_http_equiv/meta_http_equiv.jspz /front/common/head/meta_http_equiv/meta_http_equiv_content.jspz * /front/common/head/meta_name.jspz /front/common/head/meta_name/meta_name.jspz /front/common/head/meta_name/meta_name_content.jspz * /front/common/head/css.jspz /front/common/head/css/css.jspz /front/common/head/css/css_content.jspz * /front/common/head/javascript.jspz /front/common/head/javascript/javascript.jspz /front/common/head/javascript/javascript_content.jspz * /front/common/header.jspz?form_object=[objectname]&form_id=[activeObject.properties.id] /front/common/header/header.jspz /front/common/header/header_content.jspz /front/common/header/title.jspz /front/common/header/title/title_content.jspz * /front/common/header/pub.jspz /front/common/header/pub/pub_content.jspz * /front/common/header/tools.jspz /front/common/header/tools/tools_content.jspz * /front/common/menu.jspz /front/common/menu/menu_precontent.jspz * /front/common/menu/menu_content.jspz * /front/view/breadcrumb.jspz /front/view/breadcrumb/breadcrumb_content.jspz * /front/view/content.jspz?form_object=[objectname]&form_id=[activeObject.properties.id] /front/view/content/detail.jspz /front/view/content/detail/detail_content.jspz * /front/view/content/detail/detail_actions.jspz /front/view/content/detail/detail_actions_content.jspz * /front/view/content/detail/detail_element.jspz /front/view/content/detail/detail_element_content.jspz * /front/view/content/sidebar.jspz /front/view/content/sidebar/sidebar.jspz /front/view/content/sidebar/sidebar_content.jspz * /front/common/footer.jspz /front/common/footer/footer.jspz?form_object=[objectname]&form_id=[activeObject.properties.id] /front/common/footer/footer_content.jspz *
For an easier integration of front plugins, we advise you to override only the JSPs with a _content prefix. Please see the section read also for further information.
WMS Package :
The hierarchy of JSPs for building a front page is fully defined in the application WAR.
However, WMS overrides some of these JSPs(*) in order to ease the development of template-based-objects-view pages and to allow different sites having different layouts.
In your /SAN/_ _perso directory, you will find those JSP overriding the engine default ones :
/front/view/view.jspz
Allow to skip page construction.
If an error was detected skip page before a character is written
/front/common/init/initBundle/initBundle_content.jspz
trys to include a layout specific initBundle_content.jspz :
/front/_layouts/${layout}/common/init/initBundle/initBundle_content.jspz
/front/common/init/initBaseWhere/initBaseWhere_content.jspz :
trys to include a layout specific initBaseWhere_content.jspz :
/front/_layouts/${layout}/common/init/initBaseWhere_content.jspz.
If layout specific not found, initializes bases in the WMS standard way.
/front/view/init/init_content.jspz :
Inits head_title_complement, head_meta_name_descrition, head_meta_name_keywords thanks to WMS reference properties,
and trys to include
/front/_layouts/${layout}/view/init/init_content.jspz
/front/common/head/meta_http_equiv/meta_http_equiv_content.jspz :
trys to include
/front/_layouts/${layout}/common/head/meta_http_equiv/meta_http_equiv.jspz
/front/common/head/meta_name/meta_name_content.jspz :
trys to include
/front/_layouts/${layout}/common/head/meta_name/meta_name_content.jspz
/front/common/head/css/css_content.jspz :
trys to include
/front/_layouts/${layout}/common/head/css/css_content.jspz
If not found, will draw media defined css style sheets (if exists) or media layout stylesheets.
/front/common/head/javascript/javascript_content.jspz :
trys to include
/front/_layouts/${layout}/common/head/javascript/javascript_content.jspz
/front/common/header/title/title_content.jspz :
trys to include
/front/_layouts/${layout}/common/header/title/title_content.jspz
/front/common/header/pub/pub_content.jspz :
trys to include
/front/_layouts/${layout}/common/header/pub/pub_content.jspz
/front/common/header/tools/tools_content.jspz :
trys to include
/front/_layouts/${layout}/common/header/tools/tools_content.jspz
/front/common/menu/menu_precontent.jspz
trys to include
/front/_layouts/${layout}/common/menu/menu_precontent.jspz
/front/common/menu/menu_content.jspz
trys to include
/front/_layouts/${layout}/common/menu/menu_content.jspz
/front/view/breadcrumb/breadcrumb_content.jspz
trys to include
/front/_layouts/${layout}/view/breadcrumb/breadcrumb_content.jspz
/front/view/content/detail/detail_content.jspz
trys to include
/front/_layouts/${layout}/view/content/detail/detail_content.jspz
or includes
/front/view/content/detail/detail_actions.jspz
and /front/view/content/detail/detail_element.jspz
/front/view/content/detail/detail_actions.jspz :
trys to include
/front/_layouts/${layout}/templates/${activeObject.propertiesAsObject.template.properties.path}/detail_actions_content.jspz
then /front/_layouts/${layout}/view/content/detail/detail_actions_content.jspz
if none found, draw edit and delete links (default action).
/front/view/content/detail/detail_element_content.jspz :
trys to include
/front/_layouts/${layout}/templates/${activeObject.propertiesAsObject.template.properties.path}/detail_element_content.jspz
then /front/_layouts/${layout}/view/content/detail/detail_element_content.jspz
If none found, draw all viewable properties (default action).
/front/view/content/sidebar/sidebar_content.jspz
trys to include
/front/_layouts/${layout}/templates/${activeObject.propertiesAsObject.template.properties.path}/sidebar_content.jspz
then /front/_layouts/${layout}/view/content/sidebar/sidebar_content.jspz
/front/common/footer/footer_content.jspz :
trys to include
/front/_layouts/${layout}/common/footer/footer_content.jspz
