How can I get the real address?

How can I get the real address?

Thursday 14 December 2006 10:11:35 pm - 4 replies

Author Message

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.