How can I get the real address?

Author Message

Fiona Hisa

Thursday 14 December 2006 10:11:35 pm

the original add address :
<link href={"stylesheets/example.css"|ezdesign)} rel="stylesheet" type="text/css">
but I want to change the address to a real address
for example:
http://hostname/design_dir/example.css
I try the following:
{concat('http://',ezsys('hostname'),'stylesheets/example.css'|ezdesign))}
but the result is :
http://hostname"/design_dir/stylesheets/example.css"
how can I drop the 'double quotation marks',("")
or do you have other better method?can you tell me?
thank you very much!
^_^

Jon Staines

Monday 18 December 2006 4:44:55 am

If the stylesheet is always going to be the same, why not just hard code it?
<link href="http://hostname/design_dir/example.css" rel="stylesheet" type="text/css">

If you are needing to change parts of the address, which parts?

Marko Žmak

Monday 18 December 2006 7:54:59 am

Use this code:

{concat('http://',ezsys('hostname'),'stylesheets/example.css'|ezdesign(no)))}

Note the "no" parameter for ezdesign. The documentation for ezdesign() can be found here:

http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/urls/ezdesign

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Fiona Hisa

Monday 18 December 2006 5:08:57 pm

Thanks a lot,because I want to produce the static HTML page,so the address must be absolute.otherwise the client can't see the images or the CSS.

^_^~~

Marko Žmak

Tuesday 19 December 2006 2:24:26 pm

You're welcome. You can use this "no" parameter with all the other url operators like ezimage, ezurl... I supose ezurl will come in handy too.

P.S. Nice signature :)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 18:19:37
Script start
Timing: Jan 18 2025 18:19:37
Module start 'layout'
Timing: Jan 18 2025 18:19:37
Module start 'content'
Timing: Jan 18 2025 18:19:38
Module end 'content'
Timing: Jan 18 2025 18:19:38
Script end

Main resources:

Total runtime0.6480 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0469152.6250
Module start 'layout' 0.00610.0024 741.671939.4609
Module start 'content' 0.00850.6377 781.1328599.4844
Module end 'content' 0.64620.0017 1,380.617212.4766
Script end 0.6480  1,393.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5455160.0002
Check MTime0.00140.2168160.0001
Mysql Total
Database connection0.00070.109410.0007
Mysqli_queries0.589290.9317650.0091
Looping result0.00060.0940630.0000
Template Total0.617595.320.3087
Template load0.00240.377220.0012
Template processing0.615094.903720.3075
Template load and register function0.00020.026710.0002
states
state_id_array0.00100.147810.0010
state_identifier_array0.00080.124520.0004
Override
Cache load0.00200.3146340.0001
Sytem overhead
Fetch class attribute can translate value0.00060.099730.0002
Fetch class attribute name0.00110.175870.0002
XML
Image XML parsing0.00120.183630.0004
class_abstraction
Instantiating content class attribute0.00000.002580.0000
General
dbfile0.00100.1578240.0000
String conversion0.00000.001140.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs