Author:
buzzomatic
Version:
1.0.3
Released:
8 October 2009
Category:
Field Types

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:

Screenshot of the Expression field

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.

Repository

http://github.com/rowan-lewis/expressionfield/tree/1.0.3

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details