Search

Hi, extension gurus!

After long tinkering with various approaches, DS alterations, and so forth, I finally decided to try to throw this "idea" in to the public.

I believe, that many of you have experienced situations where multiple filters must be passed via url, but some of them are optional (and afterwards enumerated in DS filtering options).

So the basic idea for extension is to predefine a global term, which, when used as a value in an URL, will be treated as a blank/unset value in DS filtering part, but all following variables (slashes) won't loose their meaning.

Use case examples:

ROOT/clothes/trousers/blue/striped
(works out of the box, as all filters are explicitly provided).

ROOT/clothes/blue/striped
(ups - no such clothing type: blue)

Extension kicks in with predefined wildcard value (any):

ROOT/clothes/any/blue/striped

In DS "any" is treated as a set, but unset variable and is given a fallback value:

{previous filter}
{$clothing-type:$ds-available-clothing-types}
{next filter}

I hope this makes sense.

I know, that there is an ugly GET-a-way, but it is, well..., ugly :)

k.

Create an account or sign in to comment.

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