Help : How to retrieve current hostname/url in a tpl ?

Author Message

H-Works Agency

Thursday 16 June 2005 7:44:52 am

I know {ezsys("hostname")} but its not good for me as it returns the same thing in case site.com and www.site.com.

In another way {ezurl|ezroot} used alone doesn't work ! It return nothing. It works only in a href={"/links"|ezurl} tag.

So i need a way to retrieve those urls.

Please help...

EZP is Great

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 01:13:27
Script start
Timing: Jan 19 2025 01:13:27
Module start 'layout'
Timing: Jan 19 2025 01:13:27
Module start 'content'
Timing: Jan 19 2025 01:13:27
Module end 'content'
Timing: Jan 19 2025 01:13:27
Script end

Main resources:

Total runtime0.6709 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.3828152.6406
Module start 'layout' 0.00510.0025 742.023439.4766
Module start 'content' 0.00770.6619 781.5000460.5703
Module end 'content' 0.66960.0012 1,242.07038.1250
Script end 0.6708  1,250.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4649160.0002
Check MTime0.00130.1883160.0001
Mysql Total
Database connection0.00070.103410.0007
Mysqli_queries0.632794.3084460.0138
Looping result0.00060.0947440.0000
Template Total0.642895.820.3214
Template load0.00200.303820.0010
Template processing0.640895.513520.3204
Template load and register function0.00010.017610.0001
states
state_id_array0.00170.249610.0017
state_identifier_array0.00090.141320.0005
Override
Cache load0.00160.243880.0002
Sytem overhead
Fetch class attribute can translate value0.00070.097610.0007
Fetch class attribute name0.00090.138720.0005
XML
Image XML parsing0.00060.083010.0006
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.1199170.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/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: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs