$_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 15 2025 09:59:36
Script start
Timing: Jan 15 2025 09:59:36
Module start 'layout'
Timing: Jan 15 2025 09:59:36
Module start 'content'
Timing: Jan 15 2025 09:59:37
Module end 'content'
Timing: Jan 15 2025 09:59:37
Script end

Main resources:

Total runtime1.0078 sec
Peak memory usage6,144.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 684.8828183.7031
Module start 'layout' 0.00720.0036 868.585952.5938
Module start 'content' 0.01080.9953 921.17971,858.6797
Module end 'content' 1.00610.0016 2,779.859468.5078
Script end 1.0078  2,848.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00600.5978160.0004
Check MTime0.00140.1348160.0001
Mysql Total
Database connection0.00130.133610.0013
Mysqli_queries0.932592.5250620.0150
Looping result0.00070.0700600.0000
Template Total0.974596.720.4873
Template load0.00430.426120.0021
Template processing0.970296.271220.4851
Template load and register function0.00120.115410.0012
states
state_id_array0.00060.062710.0006
state_identifier_array0.00060.063520.0003
Override
Cache load0.00390.3823200.0002
Sytem overhead
Fetch class attribute can translate value0.00110.113730.0004
Fetch class attribute name0.00340.339170.0005
XML
Image XML parsing0.00620.617230.0021
class_abstraction
Instantiating content class attribute0.00000.001680.0000
General
dbfile0.00730.7263280.0003
String conversion0.00000.001040.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.0002 secs