Difference between revisions of "Zcms:content"

From GruppoZenit
Jump to: navigation, search
(See also)
 
(6 intermediate revisions by 4 users not shown)
Line 24: Line 24:
 
|-
 
|-
 
|standalone                  ||Optional.  
 
|standalone                  ||Optional.  
To make the content independent, without affecting the filters in [[zcms:include tag]]
+
To make the content independent, without affecting the filters in [[zcms:include]]
 +
|-
 +
|debug                        ||Optional.
 +
The values can be “true” or “false”
 +
If enabled, will display the query executed on the page.
 
|-
 
|-
 
|node                        ||Optional.
 
|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
 
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
 +
|-
 +
|close                        ||Optional.
 +
The values can be “true” or “false”. If "false" the content should be closed by the user. By default the value is “true” and content is closed by the program.
 
|}
 
|}
  
Line 39: Line 46:
 
white-space: -o-pre-wrap;  
 
white-space: -o-pre-wrap;  
 
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"/>
Line 45: Line 52:
 
</zcms:content>
 
</zcms:content>
 
</pre>
 
</pre>
 
  
 
== See also ==
 
== See also ==
Line 51: Line 57:
  
 
* [[Tag library]]
 
* [[Tag library]]
* [[zcms:global-content tag]]
+
* [[zcms:global-content]]
 +
* [[zcms:close]]

Latest revision as of 09:33, 25 April 2014

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

debug Optional.

The values can be “true” or “false” If enabled, will display the query executed on the page.

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

close Optional.

The values can be “true” or “false”. If "false" the content should be closed by the user. By default the value is “true” and content is closed by the program.


[edit] 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>

[edit] See also

Personal tools
Namespaces

Variants
Actions
Toolbox