how to get current url in ezpublish?

Author Message

Thirunavukkrasu Arumugam

Monday 23 March 2009 10:54:17 pm

I would like to check the current url of the page.

So I would like to know how to get the current url in Ezpublish?

Please help me

justin kazadi

Tuesday 24 March 2009 1:10:45 am

Hi,
if you are in an pagelayout you can perform it by using this:

 {$module_result.uri|ezurl()}

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Thirunavukkrasu Arumugam

Tuesday 24 March 2009 1:28:44 am

Its gives me the url...

Thank you very much

A. Thirunavukkarasu

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 11:32:32
Script start
Timing: Jan 18 2025 11:32:32
Module start 'layout'
Timing: Jan 18 2025 11:32:32
Module start 'content'
Timing: Jan 18 2025 11:32:33
Module end 'content'
Timing: Jan 18 2025 11:32:33
Script end

Main resources:

Total runtime0.8242 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.9375152.6250
Module start 'layout' 0.00530.0033 740.562539.4453
Module start 'content' 0.00860.8140 780.0078535.7578
Module end 'content' 0.82260.0016 1,315.765612.1563
Script end 0.8242  1,327.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5315160.0003
Check MTime0.00190.2318160.0001
Mysql Total
Database connection0.00080.091410.0008
Mysqli_queries0.770093.4267570.0135
Looping result0.00070.0795550.0000
Template Total0.792496.120.3962
Template load0.00270.329920.0014
Template processing0.789695.804620.3948
Template load and register function0.00020.026710.0002
states
state_id_array0.00130.160310.0013
state_identifier_array0.00080.096720.0004
Override
Cache load0.00230.2846170.0001
Sytem overhead
Fetch class attribute can translate value0.00170.209220.0009
Fetch class attribute name0.00120.145650.0002
XML
Image XML parsing0.00320.389320.0016
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00100.1242220.0000
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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs