Soda Templates

Templates

Each editable page has a template, which determines its style and layout. An administrator with write access to a page can set its template. If no template is set, the default template for the site will apply.

Defining a Custom Template

The figure shows a custom template in outline. To define your own custom template, all you need to do is:

  • Replace the custom extended HTML with extended HTML to define the layout that you want. This can be standard HTML, or can include extended HTML constructs to display data etc.
  • Provide a custom stylesheet to define your CSS styles.

Custom Stylesheets

You do not have to define a custom stylesheet. You can leave the stylesheet link unchanged to use the original default custom stylesheet.

You can set the default custom stylesheet by uploading it to /home/soda/style/custom-styles.css

You can set a specific custom stylesheet for your template by uploading it to (e.g.) /source/workspace/stylesheet.css and replacing sodahref="soda/style/custom-styles.css" by href="/source/workspace/stylesheet.css"

In the custom stylesheet, you can set the colors used on system pages and by system buttons etc, but you cannot change their layout.

Your custom stylesheet MUST define all the vars that are defined in the original default custom stylesheet.