Difference between revisions of "Zcms:content"

From GruppoZenit
Jump to: navigation, search
Line 40: Line 40:
 
word-wrap: break-word;">
 
word-wrap: break-word;">
 
<zcms:content name="mycontent" id=”blogdetail” alias=”mydata” datacount=”3” >
 
<zcms:content name="mycontent" id=”blogdetail” alias=”mydata” datacount=”3” >
<div>
+
  <div>
  <zcms:attribute name="author"/>
+
      <zcms:attribute name="author"/>
</div>         
+
  </div>         
 
</zcms:content>
 
</zcms:content>
 
</pre>
 
</pre>

Revision as of 13:54, 29 October 2013

zcms:content is a wrapper for website related Content Model and the execution pattern is defined with the values in each attribute. The list of attributes is shown below.

Attribute Definition
id Optional.

A unique identifier to identify the Content Model

name Required.

Name of the Content Model

alias Optional.

An alias name for the Content Model

datacount Optional.

Defines the how many contents to be displayed.

enablepage Optional.

A "true" value enables pagination

pagevar Optional.

The request parameter name which holds the required page value. By default the name would be "selpage"

standalone Optional.

To make the content independent, without affecting the filters in zcms:include tag

node Optional.

This attribute is used in json, xml and rss feeds. Each set of xml and rss feed will be the child of this node. For JSON the json name will be this node name


Example: content tag for a Content Model

<zcms:content name="mycontent" id=”blogdetail” alias=”mydata” datacount=”3” >
   <div>	
      <zcms:attribute name="author"/>
   </div>         
</zcms:content>


See also

Personal tools
Namespaces

Variants
Actions
Toolbox