CACMS - Golden Content Management System
Generation for Editors

About
This page explains how index.html is generated if you are logged in as an editor.

Depending on the mode you are working in (show or edit) index.html is generated differently. The mode is defined by a session attribute called cacms.mode. See Session Attributes for details.

Show mode
In show mode, index.html is generated as it is for visitors. See Generation for Visitors for details.

Edit mode
The edit mode behaves quite differently from the show mode. This mode allows an editor to change the content of a page and to fulfill this a listing of components is presented to the editor. The component listing contains all the components which are referenced in the layout (list of templates) of the container being edited.

Before 0.11.0
  1. The edit layout is picked from the current theme.
  2. This gets parsed and any CaCMS component tags in it are replaced by the actual show content of that component.
  3. The container layout associated to the current container is picked.
  4. From this a list of CaCMS components is extracted and for each one of them its edit content is shown.
  5. Finally the CaCMS container tag from the edit layout is replaced with the component listing and we are done.

From 0.11.0 on
The implementation has changed a bit, but the description is still mostly valid. The only change is, that the container layout now may hold a list of templates instead of a single template.