From c1613ad79d8d59f1f3e5caa11cd9348900f9e1ef Mon Sep 17 00:00:00 2001 From: Ilyas Ronef Date: Fri, 3 Jun 2022 11:40:56 +0300 Subject: [PATCH] Prerelease --- CHANGELOG.md | 5 +++++ CHANGELOG_ru.md | 5 +++++ README.md | 2 +- composer.json | 2 +- ddGetDocuments_snippet.php | 4 ++-- src/Snippet.php | 2 +- 6 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 645eea1..20727ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # (MODX)EvolutionCMS.snippets.ddGetDocuments changelog +## Version 1.5 (2022-06-03) +* \+ Parameters → `providerParams->groupBy`: The new parameter. Allows to group items that have the same field values into summary item (like SQL `GROUP BY`). See README. +* \* README → Examples: HJSON is used for all examples. + + ## Version 1.4 (2021-07-27) * \* Attention! PHP >= 5.6 is required. * \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.50 is required. diff --git a/CHANGELOG_ru.md b/CHANGELOG_ru.md index d9c52de..708470a 100644 --- a/CHANGELOG_ru.md +++ b/CHANGELOG_ru.md @@ -1,6 +1,11 @@ # (MODX)EvolutionCMS.snippets.ddGetDocuments changelog +## Version 1.5 (2022-06-03) +* \+ Параметры → `providerParams->groupBy`: Новый параметр. Позволяет сгруппировать элементы, имеющие одинаковые значения полей, в один сводный элемент (как SQL `GROUP BY`). См. README. +* \* README → Примеры: HJSON используется для всех примеров. + + ## Версия 1.4 (2021-07-27) * \* Внимание! Требуется PHP >= 5.6. * \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.50. diff --git a/README.md b/README.md index 01400b1..1fe8224 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ A snippet for fetching and parsing resources from the document tree or custom DB #### 1. Elements → Snippets: Create a new snippet with the following data 1. Snippet name: `ddGetDocuments`. -2. Description: `1.4 A snippet for fetching and parsing resources from the document tree or custom DB table by a custom rule.`. +2. Description: `1.5 A snippet for fetching and parsing resources from the document tree or custom DB table by a custom rule.`. 3. Category: `Core`. 4. Parse DocBlock: `no`. 5. Snippet code (php): Insert content of the `ddGetDocuments_snippet.php` file from the archive. diff --git a/composer.json b/composer.json index ece41da..b4d95b3 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "dd/evolutioncms-snippets-ddgetdocuments", "type": "modxevo-snippet", - "version": "1.4.0", + "version": "1.5.0", "description": "A snippet for fetching and parsing resources from the document tree or custom DB table by a custom rule.", "keywords": [ "modx", diff --git a/ddGetDocuments_snippet.php b/ddGetDocuments_snippet.php index ec4e49a..806834f 100644 --- a/ddGetDocuments_snippet.php +++ b/ddGetDocuments_snippet.php @@ -1,13 +1,13 @@ 'outputFormat',