4. Pages
A page is a page that a visitor of the site can view.
A page is composed of 7-9 attributes
The title
The path
An internal description
A list of page components
Optionally some body-classes
A wrapper
A stylesheet
Option to cache the output
This entity maked use of a codeunit named com.tsnocode.core.cms.PageEventHandler.
The codeunit is controlled via the System configuration that start with Cms.Media..
Codeunit
com.tsnocode.core.cms.PageEventHandler
<script type="text/javascript">
function keepUrlSafeChars(input) {
if (!input)
return input;
return input
.toLowerCase()
.replace(" ", "-")
.replace(/[^a-zA-Z0-9\/_-]/g, '');
}
</script>
$("#DATA_TITLE").on("change keyup", () => {
setValue("PATH", keepUrlSafeChars(getValue("TITLE")))
})

