How to hand over variables (parameter) to a template via URL?

Author Message

Michael Bolien

Sunday 27 July 2003 8:47:29 am

Hi everybody,

I have to hand over some parameters and I want to do it by appending them at the URL like

/content/view/full/111?First=223&Second=23232

Is there a way anybody knows?

Regards,
Michael

Paul Borgermans

Sunday 27 July 2003 1:32:24 pm

This should be in the developer forum.

Nevertheless, you can use the eZEnv operator I uploaded a few minutes ago. Check out the contributions section. For security, wash the values obtained.

Please try it and comment, since it is not well tested (only on ezp 3.1/WinXP at home) .

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 00:40:48
Script start
Timing: Jan 31 2025 00:40:48
Module start 'layout'
Timing: Jan 31 2025 00:40:48
Module start 'content'
Timing: Jan 31 2025 00:40:48
Module end 'content'
Timing: Jan 31 2025 00:40:48
Script end

Main resources:

Total runtime0.0238 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.0054 588.3906151.2422
Module start 'layout' 0.00540.0040 739.6328220.7500
Module start 'content' 0.00940.0126 960.3828997.8672
Module end 'content' 0.02200.0018 1,958.250029.9922
Script end 0.0238  1,988.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003012.4254140.0002
Check MTime0.00124.8336140.0001
Mysql Total
Database connection0.00093.821410.0009
Mysqli_queries0.002510.622330.0008
Looping result0.00000.059110.0000
Template Total0.00135.310.0013
Template load0.00104.030710.0010
Template processing0.00031.288510.0003
Override
Cache load0.00072.788210.0007
General
dbfile0.00020.958180.0000
String conversion0.00000.028040.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