url parameters

Author Message

Fabricio Guerrero

Thursday 31 March 2005 12:41:18 am

are url parameters managable via ezPublish scripting with out having to go to PHP scripting?

example: http://site.com/index.php/about?myparameter=value&param2=value2

can i grab and use the myparameter value from the url?

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

Łukasz Serwatka

Thursday 31 March 2005 12:50:12 am

Hi Fabricio,

You can use $view_parameters

http://site.com/index.php/about/(lang)/english

{$view_parameters.lang} <-- display english from tpl

or in your example

http://site.com/index.php/about?myparameter=value&param2=value2

{ezhttp('parametr', 'get')}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Eivind Marienborg

Thursday 31 March 2005 12:50:49 am

Use view parameters.

http://site.com/index.php/about/(myparameter)/value/(param2)/value2/

You can then grab these parameters in your view templates using

{view_parameters.myparameter}
{view_parameters.param2}

will output

value
value2

Eivind

Łukasz Serwatka

Thursday 31 March 2005 12:52:56 am

Eivind :-) At the same time ...

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Eirik Alfstad Johansen

Thursday 31 March 2005 12:54:34 am

Damn, I was going to answer this one too. :)

Sincerely,

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

Łukasz Serwatka

Thursday 31 March 2005 1:06:01 am

Eirik I will leave the next post for you ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Eivind Marienborg

Thursday 31 March 2005 2:02:07 am

Hehe, finally a question everyone can answer ;P ;)

Fabricio Guerrero

Thursday 31 March 2005 6:36:49 am

thanks... nice 2 know this is a good community...

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

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 04:33:48
Script start
Timing: Jan 19 2025 04:33:48
Module start 'layout'
Timing: Jan 19 2025 04:33:48
Module start 'content'
Timing: Jan 19 2025 04:33:49
Module end 'content'
Timing: Jan 19 2025 04:33:49
Script end

Main resources:

Total runtime0.9633 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 589.0313152.6094
Module start 'layout' 0.00760.0033 741.640639.4063
Module start 'content' 0.01090.9507 781.0469680.2344
Module end 'content' 0.96160.0016 1,461.281320.2031
Script end 0.9633  1,481.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3714160.0002
Check MTime0.00140.1489160.0001
Mysql Total
Database connection0.00160.166210.0016
Mysqli_queries0.873990.7205760.0115
Looping result0.00110.1093740.0000
Template Total0.930596.620.4653
Template load0.00200.205320.0010
Template processing0.928596.386420.4643
Template load and register function0.00010.010310.0001
states
state_id_array0.00100.100510.0010
state_identifier_array0.00230.235520.0011
Override
Cache load0.00180.1836400.0000
Sytem overhead
Fetch class attribute can translate value0.00060.058240.0001
Fetch class attribute name0.00130.1320120.0001
XML
Image XML parsing0.00280.294140.0007
class_abstraction
Instantiating content class attribute0.00000.0030160.0000
General
dbfile0.00160.1707360.0000
String conversion0.00000.001240.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
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs