Skip to content
Randy Merrill edited this page Jan 18, 2011 · 4 revisions

Any plugin can define a theme for use with the content plugin.

Security

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.

Conventions

Structure

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.

Templates

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
Clone this wiki locally