diff --git a/.craftplugin b/.craftplugin index 3f9dbef..84cbc4a 100644 --- a/.craftplugin +++ b/.craftplugin @@ -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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6649909..5424174 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index ce3c8e8..71e6391 100644 --- a/README.md +++ b/README.md @@ -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: [] }) %} ``` diff --git a/composer.json b/composer.json index 3125277..f8e774c 100644 --- a/composer.json +++ b/composer.json @@ -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",