diff --git a/docs/docs/index.md b/docs/docs/index.md index 486df61..1934ef6 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -2,7 +2,7 @@ # Similar plugin for Craft CMS 3.x -Similar for Craft lets you find elements, Entries, Categories, Commerce Products, etc, that are similar, based on... other related elements. +Similar for Craft lets you find elements, Entries, Categories, Commerce Products, etc, that are similar, based on... Other related elements. ![Screenshot](./resources/img/plugin-logo.png) @@ -47,7 +47,7 @@ The plugin has one template method, `find`, which takes a parameters object with ``` -There is also a third, optional parameter that you probably would want to use most of the time, `criteria`. `criteria` lets you create the base ElementQuery that Similar will extend, giving you the ability to use all of Craft's usual goodies for your queries. If you'd want to limit the number of entries returned (good idea!), you could do it like this: +There is also a third, optional parameter that you probably would want to use most of the time, `criteria`. `criteria` lets you create the base ElementQuery that Similar will extend, giving you the ability to use all of Craft’s usual goodies for your queries. If you’d want to limit the number of entries returned (good idea!), you could do it like this: ```twig {% set limitCriteria = craft.entries.limit(4) %} @@ -62,7 +62,7 @@ There is also a third, optional parameter that you probably would want to use mo The supported element types are `Entry`, `Asset`, `Category`, `Tag`, `User` and `Commerce_Product`. If you miss one, send me a feature request. -The `context` parameter takes either an `ElementQuery`, or a list of ids. If you want to find similar entries based on an entry's tags and categories, you could do: +The `context` parameter takes either an `ElementQuery`, or a list of IDs. To find similar entries based on an entry’s tags and categories, you could do: ```twig {% set ids = entry.tags.ids() | merge(entry.categories.ids()) %}