$: ?

Author Message

Thomas Brandl

Friday 05 September 2003 7:24:13 am

Hi, just found this in some example:
{$:item.name}

How should one understand this syntax?

Thanks

Paul Forsyth

Friday 05 September 2003 7:31:15 am

It is used in context of a {section loop}. Have you read the documentation on the template language.

Paul

Thomas Brandl

Monday 08 September 2003 8:16:27 am

Couldn't find anything. Neither in the SDK, nor "Template language" Doco nor in the Wiki.
Do you have a link?

Thanks

Hans Melis

Monday 08 September 2003 8:24:33 am

I think Paul was referring to the following part of the documentation:

http://ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/basics/namespaces_

Basically, the $: refers to the "current" (or active, if you wish) namespace.

--
Hans

Hans
http://blog.hansmelis.be

Thomas Brandl

Wednesday 10 September 2003 6:46:01 am

Thanks, thats it

eztemplate going Perl...nice ;)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:44:42
Script start
Timing: Jan 31 2025 03:44:42
Module start 'layout'
Timing: Jan 31 2025 03:44:42
Module start 'content'
Timing: Jan 31 2025 03:44:42
Module end 'content'
Timing: Jan 31 2025 03:44:42
Script end

Main resources:

Total runtime0.0244 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0000151.1953
Module start 'layout' 0.00580.0035 739.1953220.6328
Module start 'content' 0.00930.0135 959.8281997.7109
Module end 'content' 0.02270.0017 1,957.539133.9922
Script end 0.0244  1,991.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.2499140.0002
Check MTime0.00114.5704140.0001
Mysql Total
Database connection0.00093.574010.0009
Mysqli_queries0.00249.783030.0008
Looping result0.00000.040010.0000
Template Total0.00124.710.0012
Template load0.00093.630610.0009
Template processing0.00031.067710.0003
Override
Cache load0.00062.599010.0006
General
dbfile0.002710.882080.0003
String conversion0.00000.019540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs