-
Notifications
You must be signed in to change notification settings - Fork 0
Themes
Randy Merrill edited this page Jan 18, 2011
·
4 revisions
Any plugin can define a theme for use with the content plugin.
As a general security precaution it is suggested to add an Application.cfc
file to the extend/content/theme
directory as is done in the
content plugin.
The content plugin will look inside all plugins for theme directories at
<plugin>/extend/content/theme/*
.
Inside the theme directory you should have the following files:
Resource | Description |
---|---|
theme.json.cfm |
Contains information about the theme, including the possible navigation placements and levels. |
i18n/theme.properties |
Internationalization properties for use in the theme. |
template/index.cfm |
Minimal template required for a theme. This will be the default template used if one is not specifically specified for the content path. |
Themes give the ability to have multiple templates associated with them. In
general templates are used to produce different layouts or custom logic and are
placed in the <theme>/template
directory. Any .cfm
in the template
directory will be available for content when using the theme.
Some common uses for templates:
- Home Page
- Detail Page
- Product Page
- Promotional Page
- Mobile Specific Page
Also check out the latest release notes.