Skip to content

Commit

Permalink
add nested data docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matfish3 committed Nov 29, 2021
1 parent 29d914b commit 8bd693b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ The second boolean argument is whether to sort is ascending order. Defaults to `

The third boolean argument is whether the value is an integer. Defaults to `false`

#### Nested data
You can search and sort by nested data using the `.` syntax:
```php
Entry::find()->whereMetadata('foo.bar','baz')->orderByMetadata('foobar.baz');
```
### Metadata on entry edit page
By default metadata is rendered on the sidebar along with Craft's metadata (status, created at, updated at).
You can disable this behaviour via the plugin settings.
Expand Down

0 comments on commit 8bd693b

Please sign in to comment.