2

Considering the way table field content is saved to the database, could I search entries for content in a specific column?

So, say I have a table field containing X column, I would only want to search for an ID, located in column 3. Did anyone ever successfully try this?

2

I don't believe this is possible using the native search functionality.

You can search for a specific value within a table field using:

{% set results = craft.entries.search('tableField:"ID"') %}

That should return all entries that contain "ID" in tableField, but it doesn't restrict the search to a particular column in the table.

How likely is it that the ID will occur in other columns of the table?

1
  • In case of the ID, not likely. But, the column I search for could be partially the same as another column. I'll just have to make sure it isn't, then ;)
    – Paul
    Jun 13 '16 at 14:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.