Bridgeline Digital Logo
Menu

OrchestraCMS Page Templates

Each page in OrchestraCMS is based on a static template. The static template is a Visualforce page in Salesforce. The main function of the template is to provide each of the pages created from that template with shared scripts and CSS as well as the markup used to provide the structure of the layout for the page.

    <!-- Page Template Example  -->
    <apex:page controller="cms.CoreController" showHeader="false" sidebar="false" 
               standardStylesheets="false">
         <apex:composition template="{!page_template_reference}">
              <apex:define name="header">
                   <!-- Markup between <head> and </head> here -->
              </apex:define>
              <apex:define name="body">
                   <!-- Markup between <body> and </body> here -->
              </apex:define>
         </apex:composition>
    </apex:page>

Setting the page’s controller to cms.CoreController causes the Visualforce page to appear in the list of installable templates within OrchestraCMS, and exposes the !page_template_reference composition for use within the page. Specifying the !page_template_reference merge field for the apex:composition's template attribute allows OrchestraCMS to render the page in the appropriate context whether it is in edit, preview or production mode.

 
Use of any controller properties that are not listed here are currently untested with the OrchestraCMS application. It is recommended that the use of controller properties be restricted to those listed throughout this site.