Skip to content

Commit

Permalink
Version 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Oct 6, 2024
2 parents abfedce + e298c1c commit 1f8a387
Show file tree
Hide file tree
Showing 24 changed files with 1,072 additions and 943 deletions.
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
# (MODX)EvolutionCMS.snippets.ddGetDocuments changelog


## Version 1.7 (2024-10-06)

* \+ Outputters → Json → Parameters:
* \+ `outputterParams->templates->{$docFieldName}` → Placeholders → `[+itemNumber+]`, `[+itemNumberZeroBased+]`: The new placeholders.
* \+ `outputterParams->docFields[i]`: Added ability to use custom aliases instead of field names for output using the `'='` separator, for example: `'pagetitle=title'`, `'content=text'`, etc. (see README → Examples).
* \* `\ddTools::getTpl` is used instead of `$modx->getTpl` (means a bit less bugs).
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.62 is required.


## Version 1.6 (2022-09-30)

* \+ Outputters → Json → Parameters → `outputterParams->templates->{$docFieldName}` → Placeholders: The new placeholders contain any document field name or TV specified in `outputterParams->docFields`.
* \* Outputters → Yandexmarket: Critical error related to missing initialization of an object field has been fixed.


## 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.
* \+ Parameters → `providerParams`, `outputterParams`, `extendersParams`: Can also be set as [HJSON](https://hjson.github.io/) or as a native PHP object or array (e. g. for calls through `$modx->runSnippet`).
Expand All @@ -33,10 +45,12 @@


## Version 1.3.1 (2021-02-28)

* \* Outputters → String → Parameters → `outputterParams->placeholders`: Fixed critical error when the parameter is used.


## Version 1.3 (2021-02-27)

* \* Attention! (MODX)Evolution.libraries.ddTools >= 0.42 is required.
* \* Parameters: The following parameters were moved from Snippet to Provider (with backward compatibility):
* \* `filter` → `providerParams->filter`.
Expand All @@ -60,6 +74,7 @@


## Version 1.2 (2020-10-09)

* \+ Extenders → SortFromURL (see README).
* \* Parameters: The following were changed (with backward compatibility):
* \- `orderBy`.
Expand All @@ -71,6 +86,7 @@


## Version 1.1 (2020-07-05)

* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.40.1 is required (not tested in older versions).
* \* Improved compatibility with new versions of (MODX)EvolutionCMS.libraries.ddTools.
* \* Snippet:
Expand All @@ -87,6 +103,7 @@


## Version 1.0 (2020-03-11)

* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.30 is required.
* \+ Providers → Customdbtable. Get resources from custom DB table.
* \* Outputters → Yandexmarket:
Expand All @@ -108,8 +125,9 @@


## Version 0.1 (2015-09-23)

* \+ The first release.


<link rel="stylesheet" type="text/css" href="https://DivanDesign.ru/assets/files/ddMarkdown.css" />
<link rel="stylesheet" type="text/css" href="https://raw.githack.com/DivanDesign/CSS.ddMarkdown/master/style.min.css" />
<style>ul{list-style:none;}</style>
16 changes: 15 additions & 1 deletion CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
# (MODX)EvolutionCMS.snippets.ddGetDocuments changelog


## Версия 1.7 (2024-10-06)

* \+ Outputters → Json → Параметры:
* \+ `outputterParams->templates->{$docFieldName}` → Плейсхолдеры → `[+itemNumber+]`, `[+itemNumberZeroBased+]`: Новые плейсхолдеры.
* \+ `outputterParams->docFields[i]`: Добавлена возможность использовать кастомные псевдонимы вместо имён полей для вывода, используя разделитель `'='`, например: `'pagetitle=title'`, `'content=text'`, etc. (см. README → Примеры).
* \* `\ddTools::getTpl` используется вместо `$modx->getTpl` (стало чуть меньше багов).
* \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.62.


## Версия 1.6 (2022-09-30)

* \+ Outputters → Json → Параметры → `outputterParams->templates->{$docFieldName}` → Плейсхолдеры: Новые плейсхолдеры. Содержат значения полей документа (и TV), указанных в `outputterParams->docFields`.
* \* Outputters → Yandexmarket: Исправлена критическая ошибка, связанная с отсутствием инициализации поля объекта.


## Версия 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.
* \+ Параметры → `providerParams`, `outputterParams`, `extendersParams`: Также могут быть заданы, как [HJSON](https://hjson.github.io/) или как нативный PHP объект или массив (например, для вызовов через `$modx->runSnippet`).
Expand All @@ -33,12 +45,14 @@


## Версия 1.3.1 (2021-02-28)

* \* Outputters → String → Параметры → `outputterParams->placeholders`: Исправлена критическая ошибка, когда параметр используется.


## Версия 0.1 (2015-09-23)

* \+ Первый релиз.


<link rel="stylesheet" type="text/css" href="https://DivanDesign.ru/assets/files/ddMarkdown.css" />
<link rel="stylesheet" type="text/css" href="https://raw.githack.com/DivanDesign/CSS.ddMarkdown/master/style.min.css" />
<style>ul{list-style:none;}</style>
Loading

0 comments on commit 1f8a387

Please sign in to comment.