Difference between revisions of "Zcms:content"
From GruppoZenit
m (Administrator moved page Zcms:content to Zcms:content tag without leaving a redirect) |
|||
Line 51: | Line 51: | ||
* [[Tag library]] | * [[Tag library]] | ||
− | * [[zcms:global-content]] | + | * [[zcms:global-content tag]] |
Revision as of 18:07, 26 September 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 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>