[solved] Retrieving current URL with parameters

Author Message

Nabil Alimi

Tuesday 15 November 2005 6:56:49 am

Hi,

Is there a way to retrieve the current URL with parameters passed with it ? I mean I am on http://ez.no/mypage?foo=2&bar=5 and i'd like to retrieve <b>mypage?foo=2&bar=5</b>.

I already know about $REQUESTED_URI or something like that and i know that I can retrieve parameters with the ezhttp function but in my case, the number and name of param I need is not always the same...

Any ideas ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Nabil Alimi

Wednesday 16 November 2005 3:15:12 am

O.K.

Solved using an extension.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Jordan Hirsch

Friday 03 November 2006 9:13:20 am

Which extension?

Me: http://jordan.teamhirsch.com
My blog: http://wiredformusic.blogspot.com
My other company: http://thinkimprov.com
eZ Certification: http://auth.ez.no/certification/verify/402488
eZ Award: http://ez.no/company/news/ez_awards_2007_prize_winners

Nabil Alimi

Monday 06 November 2006 3:12:01 am

One I build that just return var $_SERVER.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

/dev/null

Sunday 10 December 2006 8:46:44 am

FYI,

The wrap_operator (template operator extension)
http://ezpedia.org/wiki/en/ez/wrap_operator

Can be used to achieve this objective.

/dev/null

eZpedia community documentation project: http://ezpedia.org

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 09:41:16
Script start
Timing: Jan 19 2025 09:41:16
Module start 'layout'
Timing: Jan 19 2025 09:41:16
Module start 'content'
Timing: Jan 19 2025 09:41:17
Module end 'content'
Timing: Jan 19 2025 09:41:17
Script end

Main resources:

Total runtime0.0257 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.0064 589.2891152.6406
Module start 'layout' 0.00640.0033 741.929739.4766
Module start 'content' 0.00970.0137 781.406393.3672
Module end 'content' 0.02340.0022 874.773438.3047
Script end 0.0256  913.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00259.7560140.0002
Check MTime0.00114.4627140.0001
Mysql Total
Database connection0.00145.374210.0014
Mysqli_queries0.003312.712530.0011
Looping result0.00000.077110.0000
Template Total0.00166.310.0016
Template load0.00093.472210.0009
Template processing0.00072.821810.0007
Override
Cache load0.00062.236410.0006
General
dbfile0.007027.194280.0009
String conversion0.00000.030740.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