Forums / Developer / Queries on template code
Bill Smith
Sunday 06 August 2006 8:53:52 pm
Hi, all, I am just a beginner with eZpublish
when I read the codes of eZpublish
I always find sentences such as
{section show=$wrong_email}
{section show=$generated}
seems there are actions inside these codes
but where are the source codes for these actions
thanks very much
Sunday 06 August 2006 9:01:26 pm
And one more questions, where are the variables like $wrong_email defined?
thanks
Tore Skobba
Monday 07 August 2006 1:37:06 am
What do you mean with source codes? Basically all eZ tempalte (code) is within curley brackets, this also include variables definition:
<h2>Heading</h2> {def $name='Tore'} {if $name|eq('Tore')} <p>Name is Tore</p> {/if}{undef}
As such when viewing an tempalte look for the curley brackets for find the tempalte code.
Please note that section is deprecated, there is a new template code syntax being used now.
Ref: http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_template_language