Zcms:echo

From GruppoZenit
Jump to: navigation, search

zcms:echo tag can show the data of a specific field for a defined Content Model. Its attributes are the following:

Attribute Definition
value The values attribute specifies the content name and the attribute name to be displayed in the format shown below
{contentname:attributename}

If the content is of type Global it becomes

{global :contentname: attributename}

An example about the using of this tag can be:

{news:title}
{global:company:id}


The echo tag can be used also inside the zcms:title tag.

Below it shown an example for the "echo" tag.

Example 1

<zcms:title>
   <zcms:echo value="{product:meta_title}">
      <zcms:filter attribute="cid" value="154987485348"/>
   </zcms:echo> 
</zcms:title>

Example 2

  <zcms:title> 
    <zcms:echo value="{news_content:meta_title}"> 
        <zcms:filter attribute="parent_record" value="$request[$1]"/>   
    </zcms:echo> 
  </zcms:title>

Note: if the filter is not used with the zcms:echo tag, the entire data in the table will be displayed.


See also

Personal tools
Namespaces

Variants
Actions
Toolbox