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).
Contributors
- Julia Shymova Maintainer
- Svitlana Shatokhina Updated Maintainer
- Balazs Halasy Maintainer
- Kristof Coomans Commenter
- Jennifer Zickerman Commenter
Comments (2 historical)
Written by readers of the earlier documentation sites, kept as they were.
Filter classes
Kristof Coomans ·
The filter class is supposed to implement the interface eZURLAliasFilter (kernel/classes/ezurlaliasfilter.php), especially its only abstract method process().
Example
Jennifer Zickerman ·
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