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>
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.