Closed (fixed)
Project:
Context Useragent
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2011 at 00:28 UTC
Updated:
18 Sep 2013 at 22:09 UTC
I would like to use the useragent context to select useragent "Mobile" and then create contexts that are NOT that useragent to prevent reactions, blocks for example, from being used on that context. Currently the Mobile context will still pull in items from any other context, based on the conditions.
I hope this made sense.
-Trent
Comments
Comment #1
nicholas.alipaz commentedit is a regular expression, so you can do what you are saying I am sure. Just research regular expressions a little more.
Comment #2
nicholas.alipaz commentedComment #4
escoles commentedFYI, negative lookarounds (e.g. "(?!foo)") do not work. You need to find some other method.
Here are a couple suggestions at StackOverflow:
http://stackoverflow.com/questions/1240275/how-to-negate-specific-word-i...
http://stackoverflow.com/questions/977251/regular-expressions-and-negati...
The expressions are extremely complex. To anyone trying to do this: Unless the ability to negate the expression has been added, I suggest finding another solution.