Context URL is a very little and fast module. It gives you the opportunity to use the complete page url as Context condition: you can check if the URL string matches a given shell wildcard pattern, also described in one of these PHP function: fnmatch and preg_match. The URL string is intended as full Domain and Request Path.

In the most simple case you can choose fnmatch function and then you can use wildcard * and []. Take a look at this: fnmatch.

In the case you choose preg_match function you can configure a more sophisticated regular expression's pattern. Take a look at this: fnmatch.

In both cases you can use ~ (tilde character) to exclude an URL matching pattern.

Different URLs can be part of the same formula: put each on a different row.

Context URL is descended (uses code) from Context PHP, a more generic and even more flexible module for Context management.

You can use as alternative to a more sophisticated module like Domain Context if you want to check the domain URL. You can use it also in place of Context plugin from path because it doesn't give you the possibility to check the complete URL but only the page part.

Sponsorship

This module is sponsored by Insem Spa.
The module has been started by D&D Srl.

Project information

Releases