Jump to content

Selector for "does not contain"


Peter Knight
 Share

Recommended Posts

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 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...