3. Pages
The browsable pages are defined in the "Pages" entity. A page consists of somebasic information and a list of components.
A page is composed of 8 attributes.
The name
The name shown in the window title.
The path
The url that a user should navigate to, to view this page.
Gets auto-generated based on the title.
Must be unique.
A description
A description for the administrators.
Is not outputted.
A list of components
The actual content of the site.
CSS classes
Classes to add to the body tag.
Can be used to control background/accent colors.
A Wrapper
The wrapper to use for this page.
A Stylesheet
The stylesheet to use for this page.
Cache option
Should the rendered component be cached in memory.
Do not enable this option, if the page contains information about the signed in user.
At the top of the page there is a preview button. Clicking this will clear the cache and open the page, displaying the page as it would be, if navigated to by a user.
What a page component is composed of, depends on the component type selected.
There are 2 required components.
Sort order
Controls the order of the components, when rendering the page.
Component type
The template to use when rendering.
There are a couple different optional components, and this list is not set in stone, it can be adjusted to match the needs of the defined component types.
Multiline text 1-4
Multiline text boxes.
Any new-line will be replace with an html break tag.
Prepending lines with a * will konvert them to an unordered list.
Prepending the entire text with a * will konvert all lines til items in an unordered list.
Image 1-2
Reference to a media file.
Has a preview attatched, that updates with the selection.
CSS classes
Classes to add to the component.
Can be used to control background/accent colors.
Cache output
Should the rendered component be cached in memory.
Do not enable this option, if the page contains information about the signed in user.
Every time a page is saved, if the path changed, the system will add a redirect from the old path to the current one.
Saving a page or a component that is cached will not result in the cache being cleared.