Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated finder documentation to reflect gantry/gantry5#2561 #196

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pages/01.gantry5/05.advanced/10.content-in-particles/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,20 @@ Operation is one of: `>`, `>=`, `<`, `<=`, `=`, `BETWEEN`, `NOT BETWEEN`, `IN` a
{% do finder.category([1,2,3]) %}
```

### `.tags(tags, matchAll = false)`

* `tags` Object that can contain tag `ids` as well as tag `titles`
* `ids` Either array of tag ids or single id
* `titles` Either array of tag titles or a single title
* `matchAll` Set *True* if you want to match an article against all specified tags, *false* if you want to match an article against any passed tag

```twig
{% do finder.tags({ids: [1,2,3]}) %}
{% do finder.tags({titles: ['tag1','tag2','tag3']}) %}
```

**NOTE:** You can specify both `ids` as well as `titles` when using this routine. Please be aware that the `matchAll` parameter set to `true` will match all tags specified by id or title separately but not collectively.

# Category Object

Category Object in an category instance with all the fields from the database. You can access the available fields, but there are also some functions to help you.
Expand Down