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.

eZ debug

Timing: Jan 18 2025 11:42:22
Script start
Timing: Jan 18 2025 11:42:22
Module start 'layout'
Timing: Jan 18 2025 11:42:22
Module start 'content'
Timing: Jan 18 2025 11:42:22
Module end 'content'
Timing: Jan 18 2025 11:42:22
Script end

Main resources:

Total runtime0.0138 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 591.5000152.6094
Module start 'layout' 0.00410.0026 744.109439.4297
Module start 'content' 0.00680.0046 783.539193.4141
Module end 'content' 0.01140.0024 876.953134.3047
Script end 0.0138  911.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002115.4022140.0002
Check MTime0.00096.8472140.0001
Mysql Total
Database connection0.00064.272410.0006
Mysqli_queries0.002215.822830.0007
Looping result0.00000.079310.0000
Template Total0.002115.510.0021
Template load0.00085.776910.0008
Template processing0.00139.714910.0013
Override
Cache load0.00064.091410.0006
General
dbfile0.00021.707980.0000
String conversion0.00000.051740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs