Jump to content

Recommended Posts

Posted

Hello

I tryed to modify the search template so as to search also descriptions of an upload field.

	$selector = "title|body|upload->description~=$q, include=hidden, limit=50";

That throws the following exception:

Exception: Unknown Selector operator: '' -- was your selector value properly escaped?

So how is this correctly done?

Thanks.

Posted

For selectors you can't use '->' as that is reserved for things like $page->title (Array). Instead you use 'upload.description'.

  • Like 3

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...