Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

ezroot

Summary

Same as "ezurl" without "index.php" and the siteaccess name in the returned address.

Usage

input|ezroot( [ quote [, type ] ] )

Parameters

NameTypeDescriptionRequired
quote string Quote style: "no", "single" or "double" (default). No.
type string URL type: "full" or "relative" (default). No.

Returns

A string containing a working version of the input address.

Description

This operator works almost in the same way as the "ezurl" operator. The only difference is that it does not include "index.php" or the name of the siteaccess in the returned address. In other words, it returns an address which points to the root of the eZ Publish directory.

Balazs Halasy (05/02/2004 11:49 am)

Ester Heylen (17/11/2009 3:05 pm)

Balazs Halasy, Svitlana Shatokhina, Ester Heylen


Comments

  • The usage example is wrong.

    The usage example should say input|ezroot( [ quote [, type ] ] )
    • Re: The usage example is wrong.

      This has been edited.