📚 Looking for current Exponential documentation? This site contains legacy SDK & API reference docs (eZ Publish era). For up-to-date 2026 product documentation, visit doc.exponential.earth.

  eztemplate / basic_comments  

<< eZ template™  Types >> 

Comments

Template comments starts and ends with an asterisk (*) inside a template tag. Comments are not displayed in the resulting output and is useful for giving instructions on usage or personal comments. It can also be used to temporarily comment out template code including tags.

Note: Comments cannot be nested, so don't try to comment a comment.

The following template code:

{* this is a comment *}

{* This is a
multi line
comment *}

{* The code below was temporarily commented out *}
{* {include uri=test.tpl} *}

{* {* This nested comment does not work. *} This text will be displayed *}

{* Bold display of some text *}
<b>eZ template</b>

Will produce this result:

This text will be displayed *} eZ template


Exponential Copyright © 1998 - 2026 7x