How to pass value to a template

Author Message

Toms King

Thursday 24 August 2006 7:00:27 pm

Hi, all,

Me again. A new question comes, how to pass a value to the template. For example, I already design a search page interface, but I don't want the search result also displaying in this page. so I design the search result template. But now the problem is how can I pass the search result array from the search template to the search result interface. Is there any way like the include function, like {include url=" " search_result="SearchResult"} ??? or use a form to pass?

Best regards and thanks,

Toms

Felix Woldt

Saturday 26 August 2006 9:21:59 am

Hi Toms,

i think this will fits your needs :-)

http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/miscellaneous/include

Best Regards
Felix Woldt

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

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 19 2025 01:21:53
Script start
Timing: Jan 19 2025 01:21:53
Module start 'layout'
Timing: Jan 19 2025 01:21:53
Module start 'content'
Timing: Jan 19 2025 01:21:53
Module end 'content'
Timing: Jan 19 2025 01:21:53
Script end

Main resources:

Total runtime0.0130 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0037 591.8047152.6250
Module start 'layout' 0.00370.0028 744.429739.4453
Module start 'content' 0.00640.0043 783.875089.3203
Module end 'content' 0.01070.0022 873.195330.3047
Script end 0.0130  903.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002519.4724140.0002
Check MTime0.001310.1383140.0001
Mysql Total
Database connection0.00043.180410.0004
Mysqli_queries0.002116.246230.0007
Looping result0.00000.106310.0000
Template Total0.001612.610.0016
Template load0.00096.800410.0009
Template processing0.00075.748810.0007
Override
Cache load0.00064.578210.0006
General
dbfile0.00021.690980.0000
String conversion0.00000.056840.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