ezdesign
Summary
Returns the input string prepended with the current design directory.Usage
input|ezdesign( [ quote ] )
Parameters
Name | Type | Description | Required |
---|---|---|---|
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:55 am)
Comments
Override
Thursday 13 October 2005 9:59:51 pm
Olivier