stephenpfaff / kestros-cms-foundation

Foundational logic for the Kestros CMS. Contains all the models, scripts, and baseline templates/components required for rendering a site.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Default Theme

Themes

Configure

CSS/JS Compile Order

Compiled HTL Templates

Component UiFramework Views

Component Types

Creating a new ComponentType

Extending KestrosParent Component

Using HTL Templates from a UiLibrary

Common View

ComponentUiFrameworkViews

Validation

Content

Validate

About

Foundational logic for the Kestros CMS. Contains all the models, scripts, and baseline templates/components required for rendering a site.

License:GNU General Public License v3.0


Languages

Language:Java 90.8%Language:HTML 9.2%