Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Templates are stored under the webskin directory and under the different object types. In this example we will be using a dmHtml content type. The template we will modify is the displayPageStandard.cfm. The first stage in this process is to include the header and the footer. My displayPageStandardedisplayPageStandard.cfm. looks like this at this stage.

...

Lets test if things are working. Log into farcry and assign the home page content item a template of "Standard Page" and test to see if the home page is now rendering the header and footer and displaying "Content goes here" in big letters. NOTE: You may need to refresh the application scope to see your template as an option. One way to do this is to add updateapp=1 to the url parameters. If the page doesn't look write check the following: *

  • Check to see if coldfusion has thrown an error by appending &debug=1 to end of the URL. If there is an error then debug accordingly

...

  • Make sure the header and footer files are in the correct location i.e. the includes directory under the webskin directory

...

  • Recheck all your output tags. You might want to remove all white space control to make sure you are getting the page and implement again once the problem has been found

The next stage is to copy and paste some mark-up from a html page into the content area. My displayPageStandard.cfm now looks like this

...