This information applies to CF07 and later

Rendering modes for web content

Different presentation templates are created to render web content in different modes to display content in different contexts, such as a web content viewer portlet, or mobile devices.

Render modes

These modes are supported when web content is rendered. You can create separate presentation templates for each type and select them when you create a site area template or content template:

  • Default Presentation Template: This presentation template is used to render an item within a Web Content Viewer portlet.
  • This information applies to CF07 and laterSummary Presentation Template: This presentation template is used when the summary render mode is used to render an item.
  • This information applies to CF07 and laterJSON Record Presentation Template: This presentation template is used when the JSON render mode is used to render an item on mobile devices.
  • This information applies to CF07 and laterXML Document Presentation Template: This presentation template is used when the XML render mode is used to render an item on mobile devices.
  • This information applies to CF07 and laterHTML Document Presentation Template: This presentation template is used when the HTML render mode is used to render an item as a complete web page.

You then select a different presentation template for each rendering mode by clicking Select Presentation Template in the Item Properties section when you create a site area template or content template.

Defining rendering modes in a URL

You can specify a rendering mode in a URL by adding this parameter to the URL: renderMode=mode

These render modes are predefined: summary, json, xml, html, This information applies to CF08 and laterdefault. You can use the Web Content Manager API to define further render modes.

For example, to specify the URL to use the JSON rendering mode, you might use a URL like this:
http://myserver:port/wps/wcm/myconnect/mylibrary/mysitearea/mycontent?renderMode=json
To specify more than one render mode, use a comma-separated list. For example, to specify the URL to use the JSON rendering mode, or if no JSON presentation template is specified, the XML rendering mode, you might use a URL like this:
http://myserver:port/wps/wcm/myconnect/mylibrary/mysitearea/mycontent?renderMode=json,xml
This information applies to CF08 and laterTo specify the URL to use the JSON rendering mode or, if no JSON presentation template is specified, the default presentation template, you might use a URL like this:
http://myserver:port/wps/wcm/myconnect/mylibrary/mysitearea/mycontent?renderMode=json,default