$_GET variables delivered to content module templates?

Author Message

Eirik Alfstad Johansen

Tuesday 10 November 2009 5:11:22 am

Hi,

Just wondering if the $_GET variables are accessible in the general templates of the content module and, if they are, where they are located.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

STEVO +

Tuesday 10 November 2009 7:50:38 am

hi Eirik, is this what you're after:

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/data_and_information_extraction/ezhttp

Gaetano Giunta

Tuesday 10 November 2009 8:27:55 am

Just a note: remember that using $_GET in your content templates is generally a bad idea, as they will not be taken into account into the view cache...

Principal Consultant International Business
Member of the Community Project Board

Eirik Alfstad Johansen

Wednesday 11 November 2009 12:28:04 am

> hi Eirik, is this what you're after:

Yep - thanks!

> remember that using $_GET in your content templates is generally a bad idea

> as they will not be taken into account into the view cache...

Thanks for the tip. It's not an issue in this case, though.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 18 2025 02:21:56
Script start
Timing: Jan 18 2025 02:21:56
Module start 'layout'
Timing: Jan 18 2025 02:21:56
Module start 'content'
Timing: Jan 18 2025 02:21:57
Module end 'content'
Timing: Jan 18 2025 02:21:57
Script end

Main resources:

Total runtime0.6839 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.0625152.6406
Module start 'layout' 0.00660.0049 740.703139.4766
Module start 'content' 0.01150.6710 780.1797590.7813
Module end 'content' 0.68250.0013 1,370.960912.1250
Script end 0.6839  1,383.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4908160.0002
Check MTime0.00140.2085160.0001
Mysql Total
Database connection0.00080.120810.0008
Mysqli_queries0.619490.5678620.0100
Looping result0.00070.1031600.0000
Template Total0.653295.520.3266
Template load0.00210.309120.0011
Template processing0.651095.193720.3255
Template load and register function0.00010.014910.0001
states
state_id_array0.00080.119210.0008
state_identifier_array0.00080.119620.0004
Override
Cache load0.00180.2565200.0001
Sytem overhead
Fetch class attribute can translate value0.00100.151130.0003
Fetch class attribute name0.00110.163270.0002
XML
Image XML parsing0.00160.238730.0005
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00110.1613280.0000
String conversion0.00000.001940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0004 secs