Properties

You can use properties to make your theme more flexible for users which doesnt have html/css knowledge.

 

For example, you can define a property 'Page title', 'Footer text' or 'Footer navigation'.

 

The public properties are domain based properties and can be managed from users under the domain settings. The theme properties are internal properties (Example below)

 

Such properties are ka.fields which can be defined via the extension editor.

 

 

Public properties

 

In the template engine you can find all values in the public properties {$publicProperties}.

 

Practical examples based on the example properties in the screenshot:
<a href="{$baseUrl}">
  <img src="{$publicProperties.logo}" />
  {$publicProperties.title} <span class="slogan">
  {$publicProperties.slogan}</span>
</a>


<div class="footer">
  {navigation id=$publicProperties.footer_navi}
  <div class="footer-text">
    {page id=$publicProperties.footer_deposit}
  </div>
</div>

Theme properties

 

If your theme package contains several themes and you want to use the same template files (for example, if you only change small parts, or only a color) you can use such properties. They have only a key and a value.

You can access these properties via {$themeProperties}