Use your own design

The easiest way is to copy a skin, change the directory name and start making changes (be sure to edit the skin.xml file to avoid conflicts)

Required templates

Your theme must implement the following cfm templates:

  • index.cfm: corresponds to the blog's main page
  • post.cfm: where a single post is shown
  • page.cfm: the default template for pages
  • generic.cfm: a generic template that can be used to show errors and by plugins to show their information when they need a page by themselves
  • archives.cfm: where the archives by date, category, and searches are shown
  • author.cfm: shows author information

Theme registration

It must also contain an xml file:

If this file is not found, then the theme cannot be used.

Tags

Tags you can use in your template

Template events

Events a skin template should broadcast:

  • beforeHtmlHeadEnd: right before closing tag
  • beforeCommentFormEnd: only when there is a comment form (post.cfm, page.cfm)
  • beforeSideBarEnd: takes one attribute, number, which indicates what sidebar number we are rendering when there is more than 1
  • afterSideBarStart (same arguments as above)
  • afterHtmlBodyStart
  • beforeHtmlBodyEnd
  • afterFooterStart
  • beforeFooterEnd