Documentation Center

View syntax for Java

To improve the View code usability, SDL Digital Experience Accelerator introduced the user-friendly HtmlHelper extension method.

This topic shows you examples of new API items, examples of how they are used, and comparison to the previous method. The SDL Tridion Reference Implementation 1.0 syntax is deprecated and may result in errors.
Signature = <dxa:region />
Attributes:
name : string
emptyviewname: string (optional)
placeholder: Boolean (optional)
containersize: int (optional)
Example:
<dxa:region name="Logo" emptyviewname="Core:Logo" />

<dxa:region name="Logo" />
Signature = <dxa:regions />
Attributes:
Exclude : string (optional)
containersize: int (optional)
Examples:
<dxa:regions exclude="Logo,Info" />
Signature = <dxa:entity />
Attributes:
Region : string (optional)
entityId : int (optional)
entity : EntityModel (optional)
containerSize : int (optional)
Example:
<dxa:entity entity="<%=entity%>" />

<dxa:entity region="2-Column" containerSize="6" entityId="<%= entity.getId() %>"/>
Signature = <dxa:entities />
Attributes:
Region : string (optional)
containerSize : int (optional)
Example:
<dxa:entities region="Hero"/> 
			 
Signature = <xpm:region />
Attributes:
Attributes:

region : regionModel
Example:
<xpm:region region="<%=regionModel%>"/>
Signature = <xpm:entity />
Attributes:
entity : entityModel
Example:
<xpm:entity entity="<%=entityModel%>"/>
Signature = <xpm:property />
Attributes:
entity : entityModel
property : string
index : int (optional)
Example:
<xpm:property entity="<%=entityModel%>" property="Headline"/>