ezroot problem

Author Message

Marko Žmak

Sunday 20 March 2005 3:00:43 pm

I have setup an ez site with "news" siteaccess.
On this site I have this two codes...

Code 1:

<A HREF={active|ezurl}>News</A>

Code 2:

<A HREF={active|ezroot}>News</A>

The first one produces this link:

index.php/news/active

and the second this link:

active

As I can se in the docs the ezroot should produce the same result as the ezurl but without the index.php. So in my case should produce: "news/active". So why it doesn't? Is this a bug or am I doing something wrong?

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

Hubert Farnsworth

Grenland Web (Jan Kudlicka)

Monday 21 March 2005 12:37:38 am

Hi Marko!

The "ezroot" operator only prepends the input, in your example "active", with the "url" of your eZ publish directory.

Say, for example, you have installed your eZ publish in /var/www/html/mystuff/ez and this directory is accessible via http://localhost/mystuff/ez. Then {"active"|ezroot} will be "/mystuff/ez/address". If you can access this directory via http://myezsite/ it will become just "/active". This operator is used for accessing images, js, css files in the design and var directories.

Jan K.

Jan Kudlicka | System Developer @ Grenland Web | http://www.grenlandweb.no

Marko Žmak

Monday 21 March 2005 4:16:17 pm

Then the documentation for the ezroot operator is incorrect. Am I right?

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

Hubert Farnsworth

Balazs Halasy

Tuesday 22 March 2005 1:13:48 am

Hi,

Yes, the old ezroot docs might be a bit misleading - it does not include the name of the siteaccess; what it does is that it gives you the path to the root of the eZ publish directory. We're sorry about the inconvenience - the "mistake" has been removed from the new docs.

Sincerely Yours

Allman

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