Expression Field
Ultimate regular expression field
Description
The expression field lets you input a simple or Perl compatible regular expression and filter against it in a datasource. Useful for creating navigation or metadata sections. This field is the successor to my old SEO Manager extension.
Usage
To use this field to manage SEO data on your site, create a new section called 'Meta Data' with the following fields:
- Title: Textbox
- Description: Textbox
- Keywords: Taglist
- Pages: Expression
And then create a datasource that filters on the 'Pages' field with the value of {$current-path}
.
Now when you create entries in the 'Meta Data' section, enter an expression into the 'Pages' field like so:
This is only one of many possible uses for this field, please give me your thoughts and feedback - particularly if you find another way to use it!
Changelog
Version 1.0.3, 8 October 2009
- Fixed bug that caused invalid SQL to be created while filtering.
- Allow simple expressions to be separated by
,
. - Some other small bug fixes, including spelling mistakes!
Version 1.0.1, 3 July 2009
- Initial release.