Skip to content

Commit

Permalink
Prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Sep 5, 2024
1 parent d3f6479 commit ea3f56b
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# (MODX)EvolutionCMS.snippets.ddGetMultipleField changelog


## Version 3.10 (2024-09-06)

* \+ Parameters → `rowTpl` → Available placeholders:
* \+ `[+allColumnValuesObjectJson+]`: The new placeholder. Contains values of all columns as a JSON object, where keys are original column keys, values are values.
* \+ `[+`_columnKey_`.`_nestedProperty_`+]`, `[+col`_columnNumber_`.`_nestedProperty_`+]`: The new placeholders. Contain values of nested properties, when a column value is an object.
* \* `\ddTools::getTpl` is used instead of `$modx->getTpl` (means a bit less bugs).
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.62 is required.


## Version 3.9 (2023-01-11)

* \+ Parameters → `inputString`: Can also be set as a [HJSON](https://hjson.github.io/) or [Query formatted](https://en.wikipedia.org/wiki/Query_string) string.
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# (MODX)EvolutionCMS.snippets.ddGetMultipleField changelog


## Версия 3.10 (2024-09-06)

* \+ Параметры → `rowTpl` → Доступные плейсхолдеры:
* \+ `[+allColumnValuesObjectJson+]`: Новый плейсхолдер. Содержит значения всех колонок в виде JSON-объекта, где ключи — исходные ключи колонок, значения — значения.
* \+ `[+`_columnKey_`.`_nestedProperty_`+]`, `[+col`_columnNumber_`.`_nestedProperty_`+]`: Новые плейсхолдеры. Содержат значения вложенных свойств, когда значение колонки является объектом.
* \* `\ddTools::getTpl` используется вместо `$modx->getTpl` (стало чуть меньше багов).
* \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.62.


## Версия 3.9 (2023-01-11)

* \+ Параметры → `inputString`: Также может быть задан, как [HJSON](https://hjson.github.io/) или [Query formatted string](https://en.wikipedia.org/wiki/Query_string).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ require_once(
#### 1. Elements → Snippets: Create a new snippet with the following data

1. Snippet name: `ddGetMultipleField`.
2. Description: `<b>3.9</b> A snippet for processing, manipulations and custom output structured data (JSON or separated by delimiters strings).`.
2. Description: `<b>3.10</b> A snippet for processing, manipulations and custom output structured data (JSON or separated by delimiters strings).`.
3. Category: `Core`.
4. Parse DocBlock: `no`.
5. Snippet code (php): Insert content of the `ddGetMultipleField_snippet.php` file from the archive.
Expand Down
2 changes: 1 addition & 1 deletion README_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ require_once(
#### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами

1. Название сниппета: `ddGetMultipleField`.
2. Описание: `<b>3.9</b> Сниппет для обработки, изменения и произвольного вывода структурированных данных (JSON или разделённых через определённые разделители).`.
2. Описание: `<b>3.10</b> Сниппет для обработки, изменения и произвольного вывода структурированных данных (JSON или разделённых через определённые разделители).`.
3. Категория: `Core`.
4. Анализировать DocBlock: `no`.
5. Код сниппета (php): Вставьте содержимое файла `ddGetMultipleField_snippet.php` из архива.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dd/evolutioncms-snippets-ddgetmultiplefield",
"type": "modxevo-snippet",
"version": "3.9.0",
"version": "3.10.0",
"description": "A snippet for processing, manipulations and custom output structured data (JSON or separated by delimiters strings).",
"keywords": [
"modx",
Expand Down
4 changes: 2 additions & 2 deletions ddGetMultipleField_snippet.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/**
* ddGetMultipleField
* @version 3.9 (2023-01-11)
* @version 3.10 (2024-09-06)
*
* @see README.md
*
* @link https://code.divandesign.ru/modx/ddgetmultiplefield
*
* @copyright 2009–2023 Ronef {@link https://Ronef.me }
* @copyright 2009–2024 Ronef {@link https://Ronef.me }
*/

// Include (MODX)EvolutionCMS.libraries.ddTools
Expand Down
2 changes: 1 addition & 1 deletion src/Snippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class Snippet extends \DDTools\Snippet {
protected
$version = '3.9.0',
$version = '3.10.0',

$params = [
// Defaults
Expand Down

0 comments on commit ea3f56b

Please sign in to comment.