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.

ezdesign

Summary

Returns the input string prepended with the current design directory.

Usage

input|ezdesign( [ quote ] )

Parameters

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

Returns

The input string prepended with the current image directory.

Description

This operator returns the input string prepended with the current design directory. If the operator is unable to find the specified file within the current design, it will attempt to locate it in the fallback designs or the standard design. The "ezdesign" operator should always be used when a design related file is included in a template. It will make sure that the path to the file is always correct, regardless of the location of the eZ Publish directory, the access method, the environment, and so on.

By default, this operator returns a double-quoted string. The optional "quote" parameter can be used to control the way the address is returned: "no" (no quotes), "single" (single quotes) or "double" (double quotes, the default). Dropping quotes is useful when specifying CSS files in the following way:

<style type="text/css">
    @import url({'stylesheets/core.css'|ezdesign( 'no' )});
    @import url({'stylesheets/ezmain.css'|ezdesign( 'no' )});
    @import url({'stylesheets/ezsystems.css'|ezdesign( 'no' )});
</style>

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

Balazs Halasy (04/03/2007 10:54 am)


Comments

  • Override

    I have read the code and notice that ezdesign operator looks for files in override directories. Can you update this document to reflect his aspect of the function? Or am I completely wrong ?