Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleProperties for registering a custom theme
mvc.themes=custom_dashboard
mvc.custom_dashboard.templateGroupFile=UI/mvc/custom_dashboard.stg
mvc.custom_dashboard.templateName=main
Code Block
languagetext
titleProperties for registering a custom theme in .NET
 <ui>
  <mvc developmentMode="false">
	<themes>
	  <theme name="custom_dashboard" templateGroupFile="UI/mvc/custom_dashboard.stg" templateName="main"/>
	</themes>
  </mvc>
</ui>

The mvc.themes property or name property specifies the name for the theme which will be displayed in the Runtime theme selector. The other two properties specify which StringTemplate index file should be used and which StringTemplate function should be called to render the index page (see "Creating the index file" above). The path to the index file is relative to either the JAR or the 

Include Page
_HomeFolder
_HomeFolder
 folder. When a filename is specified which is located in
Include Page
_HomeFolder
_HomeFolder
 and that is already loaded from a JAR, the file from 
Include Page
_HomeFolder
_HomeFolder
 will be used and the file from the JAR will be overridden. More information about overriding existing themes can be found on Extending themes.