Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns multiple records by the values of a content_field. E.g. site.pages['custom_field_in_[test_value1,test_value2]'] returns all posts with post_type page and with the value of it’s content_field custom_field as test_value1 or test_value2. This also works the other way around: if a single value is passed all records containing that value will be returned. E.g. site.pages['custom_field_in_[test_value1]'] will return all posts where the value for custom_field is test_value1

{:content_field}_in_{:collection}_as_{:value}

Returns multiple records by the values of a content_field. E.g.

test_value1.referenced_in_pages_as_custom_field returns all posts with post_type page and with the value of it’s content_field custom_field as test_value1.