Experimental project

This is a sandbox project, which contains experimental code for developer use only.

With CCK and Views, you almost don't need to write SQL queries to create and
manage tables, insert into them, and then select from them. Views will let
you query most any field in any table, since major modules expose their tables
to Views. Filters are what allow you to create your WHERE clause, with the
ability to expose some of the input values to user selection. Arguments allow
users to pass in values that will also be substituted in the WHERE clause.
Unfortunately, arguments and filters don't play together and by default there's
no way to use a Views query by passing in values to be used in the filters,
even though the filters allow more expressive querying (e.g. greater than,
less than, etc.) than arguments, which require an exact match to the argument.

With this module, it's now possible to replace "sentinel" values in filters
with specially formatted arguments. The sentinel will also be replaced anywhere
else in the query, and be replaced no matter how many times it appears. So
you can have several filters be replaced in a single argument.

This module is similar to views_arguments_in_filters which works by replacing
placeholders like "%1" with arguments in Null argument positions. However,
this only works for filters where free-form text is allowed for the filter's
definition. So this won't work for taxonomy or date-based filters. Our module
will work in these cases.

Project information

  • Created by tomotomo on , updated