Define variables in manifest.cfg using TALES expressions:
[theme:parameters] portal_url = portal_state/portal_url ajax_load = python: 'ajax_load' in request.form anon_user = portal_state/anonymous
The theme has to be reactivated to pick up new parameters.
Site Setup > Theming, click Deactivate, then reactivate.
Site Setup > Theming > Advanced Settings
You should see your variables under 'Parameter expressions'.
The description also contains helpful information.
Use variables prefixed with $:
<drop css:content="#portal-breadcrumbs" if-path="$portal_url"/>
In HTML in rules.xml, variables also needs to be wrapped in {}:
<replace css:theme="#sitesearch"> <form action="{$portal_url}/@@search" method="post"> ...
You can also do simple expressions in the rules.xml:
<drop css:theme=".manageLink" if="$role != 'administrator'"/>
Space | Forward |
---|---|
Right, Down, Page Down | Next slide |
Left, Up, Page Up | Previous slide |
P | Open presenter console |
H | Toggle this help |