Jump to content

Starts with operator for templates


Recommended Posts

Hi Folks!

This is possibly a duplicate but I couldn't find any suitable answer in the forums.

I've defined a Page field and tried to restrict the selectable pages using a custom selector. I'd like to whitelist all pages using a template with a name starting with a specific prefix.

I've tried the following:



But either way it results in a TemplateFile: Operator '^=' is not supported for 'templates_id' error when I'm trying to create a new page using the template that includes this Page field.

Am I missing something here?
The only workaround I figured out so far is to define the complete list of allowed templates as an OR selector. But this looks pretty awful to me.

Thanks in advance!

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

  • Create New...