page:deliveryContext

This tag lets you get information about the current rendering process but also let's you set some parameters affecting the rendering process.

Parameters

Name Required Default Type Description
Parameters
id true   String The result is stored in this variable.
useFullUrl false false Object/String Sets if the rendering engine should generate full urls or not. If true it will contain http://myserver.. etc and not relative urls.
disablePageCache false false Object/String The property allows you to disable page cache all together so the result are not cached.
disableNiceUri true false Object/String Allows you to disable Nice URI:s in the generation process.
trimResponse f false boolean Makes it possible to dictate for the delivery engine from a component that a page should be trimmed before sent to the client. This means components returning xml as a result don't have to be written on one line to avoid invalid xml any more.
evaluateFullPage false true boolean Makes it possible to dictate for the delivery engine from a component that a page should not be evaluated a final time by velocity after all components has been evaluated. Improves performance but can lead to different behaviour in your sites compared to now.
contentType false   String Makes it possible to dictate for the delivery engine from a component what content-type the page response header should report to the browser.
pageCacheTimeout false   Object/String Makes it possible state a page cache timeout from the template – this overrides the page cache timout set on the page cover. Set in seconds.

ID-result variable contains:
The org.infoglue.deliver.applications.databeans.DeliveryContext-object.

Examples

The following example gets the deliveryContext and in the process disables Nice URI:s.
Then we can query the object for information and you can look at the DeliveryContextobject
in the API for more information.

<%@ taglib uri="infoglue-page" prefix="page" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<page:deliveryContext id="deliveryContext" disableNiceUri="true"/>
This page has the siteNodeId <c:out value="${deliveryContext.siteNodeId}"/> and
the contentType <c:out value="${deliveryContext.contentType}"/> and the
pagePath <c:out value="${deliveryContext.pagePath}"/>



comments powered by Disqus