Skip to content

Commit

Permalink
Update the README to be more explicit about what is/isn’t possible wi…
Browse files Browse the repository at this point in the history
…th autopop.fillField()
  • Loading branch information
Chris Malven committed Mar 6, 2018
1 parent 8a961eb commit 626887e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .craftplugin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"pluginName":"Autopop","pluginDescription":"Helps automatically populate entry content.","pluginVersion":"1.0.0","pluginAuthorName":"One Design Company","pluginVendorName":"onedesign","pluginAuthorUrl":"https://onedesigncompany.com","pluginAuthorGithub":"onedesign","codeComments":"","pluginComponents":["variables"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"}
{"pluginName":"Autopop","pluginDescription":"Helps automatically populate entry content.","pluginVersion":"1.0.1","pluginAuthorName":"One Design Company","pluginVendorName":"onedesign","pluginAuthorUrl":"https://onedesigncompany.com","pluginAuthorGithub":"onedesign","codeComments":"","pluginComponents":["variables"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## 1.0.0 - 2018-03-02
### Added
- Initial release

## 1.0.1 - 2018-03-06
### Fixed
- Updated the README to be more explicit about the limitations of autopop.fillField()
- Updated the README to indicate that autopop.fillField can take an excludeIds parameter.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ To install the plugin, follow these instructions.
excludeIds: [5, 13]
}) %}
{# If you have an Entries field that may not have all of it's entries set, you can also easily "fill" all of the slots in that field #}
{# If you have an Entries field that may not have all of it's entries set, you can also easily "fill" all of the slots in that field. NOTE: You can't currently pass entries populated using autopop.fillField() through another autopop.entries(), because autopop.fillField() returns an Element Query with specific entry ids. Either make autopop.fillField() the last thing you pass entries through, or use in place of autopop.entries() #}
{% set filledEntries = craft.autopop.fillField({
entries: populatedEntries,
field: entry.featuredEntries
field: entry.featuredEntries,
excludeIds: []
}) %}
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "onedesign/autopop",
"description": "Helps automatically populate entry content.",
"type": "craft-plugin",
"version": "1.0.0",
"version": "1.0.1",
"keywords": [
"craft",
"cms",
Expand Down

0 comments on commit 626887e

Please sign in to comment.