Kestros CMS Foundation
Foundational logic for the Kestros CMS. Contains all the models, scripts, and baseline templates/components required for rendering a site.
Getting Started
UI Frameworks
UI Frameworks provide CSS and JS libraries to a site by compiling scripts from reusable VendorLibraries
, one-off ComponentUiFrameworkView
scripts, and and its own contained scripts.
Creating a new UiFramework
Under /etc/ui-frameworks
, create a new resource for your UiFramework and add the following .content.xml
.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:kes="http://kestros.slingware.com/kes/1.0"
jcr:primaryType="kes:UiFramework"
jcr:title="My UI Framework"
jcr:description
kes:uiFrameworkCode=""
kes:vendorLibraries="[my-vendor-library-1,my-vendor-library-2]"/>
Configure
Property | Description | Default Value |
---|---|---|
jcr:title | Framework title | EMPTY |
kes:uiFrameworkCode | common |
|
kes:vendorLibraries | [ ] |
Vendor Libraries
A VendorLibrary
is standalone UI Library, which can be compiled within a UiFramework
. A VendorLibrary
can be reused by multiple UiFramework
instances.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root
xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="kes:VendorLibrary"
jcr:title="My Vendor Library"
jcr:description=""/>
Configure
Property | Description | Default Value |
---|---|---|
jcr:title | Framework title | EMPTY |