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.

Filters

Summary

Sets the active filters that will be used to filter the text in the URLs.

Usage

 

Filters[]=filter1
Filters[]=filter2
...

Description

This configuration array tells the system which filters that should be used for URL aliases text filtering. Each line contains the name of the class which implements the filtering. The name of the class in lowercase specifies the name of the PHP file which the system will search for to perform filtering. Note that all filters must be placed under the "urlfilters" subdirectory located inside the directory of an extension.

Examples

Example 1

Extensions[]
Extensions[]=myfilters
 
Filters[]
Filters[]=MyFilter

This configuration tells the system to use the "MyFilter" filter from the "myfilter.php" file located in the "extension/myfilters/urlfilters" directory. The filter will be used every time a URL alias is created (either by the system or by users).

Julia Shymova (26/07/2007 2:41 pm)

Svitlana Shatokhina (08/08/2007 7:54 am)

Julia Shymova, Balazs Halasy, Svitlana Shatokhina


Comments

  • Filter classes

    The filter class is supposed to implement the interface eZURLAliasFilter (kernel/classes/ezurlaliasfilter.php), especially its only abstract method process().
  • Example

    As noted in the sdk-public mailing list, there is an example of using eZURLAliasFilter here: http://ez.no/developer/contribs/applications/dpgnu_dp_google_news_url