Peter Knight Posted November 8, 2015 Posted November 8, 2015 Hi guys I'm using Batcher to batch remove all pages that meet certain criteria template is news_item old_url doesn't contain "news/" I can do the opposite of the above and find all pages that do contain "/news/" template=news_item,old_url*=news/ There doesn't seem to be an API call for finding fields that do not contain or do not start with a string ? There's something close: != Not equal to (any_field!=any_value) which I use as follows template=news_item,old_url!=news/ but this doesn't work. It pulls in pages with and without my selector criteria and I'd probably prefer does not contain as opposed to not equal to Not posting this in the batcher forum as it's a general selector query. Any pointers grateful accepted
kongondo Posted November 8, 2015 Posted November 8, 2015 Peter, http://processwire.com/api/selectors/#operators 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now