Releases: DivanDesign/EvolutionCMS.snippets.ddGetMultipleField
Releases · DivanDesign/EvolutionCMS.snippets.ddGetMultipleField
Version 3.10
- + 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
- * Parameters:
- +
inputString
: Can also be set as a HJSON or Query formatted string. - *
outerTpl
: Placeholders[+rowY.colX+]
works fine even source object has custom string keys.
- +
Version 3.8.2
- * Parameters:
- *
columns
: Wrong working with the0
value has been fixed. - *
colTpl
: Wrong working with the empty value has been fixed.
- *
Version 3.8.1
- * Parameters →
colTpl
: Support of various column numbers in different rows has been improved.
Version 3.8
- * Parameters:
- +
inputString
: Supports JSON with any nesting level. - +
colTpl[$i]
→ Placeholders:- +
[+columnIndex+]
: The new placeholder. Contains index of the column, starts at0
. - +
[+columnKey+]
: The new placeholder. Contains key of the column. It is usefull for objects or associative arrays ininputString
, for indexed arrays the placeholder is equal to[+columnIndex+]
. - +
[+val+]
: If a column value is an array/object, it will be converted to a JSON string (it is usefull ifinputString
contains JSON with more than 2 levels of nesting).
- +
- +
rowTpl
→ Placeholders:- +
[+allColumnValues+]
: The new placeholder. Contains string values of all columns combined bycolGlue
. See README → Examples. - +
[+
columnKey+]
: The new placeholders set, when columnKey is original column key. See README → Examples.
- +
- *
removeEmptyCols
: Works fine even if bothrowTpl
andcolTpl
are not set.
- +
Version 3.7
- + Parameters →
rowTpl
,colTpl[i]
: The new placeholder[+rowKey+]
has been added (see README). - + Parameters →
colTpl[i]
: The new placeholders[+total+]
and[+resultTotal+]
have beed added (see README).
Version 3.6
- * Attention! PHP >= 5.6 is required.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.50 is required.
- * Attention! (MODX)EvolutionCMS.snippets.ddTypograph >= 2.5 is required.
- + Parameters:
- +
placeholders
: Can also be set as HJSON or as a native PHP object or array (e. g. for calls through$modx->runSnippet
). - +
columns
,sortBy
,typography
,colTpl
: Can also be set as a native PHP array (e. g. for calls through$modx->runSnippet
).
- +
- + You can just call
\DDTools\Snippet::runSnippet
to run the snippet without DB and eval (see README → Examples). - +
\ddGetMultipleField\Snippet
: The new class. All snippet code was moved here. - *
\DDTools\Snippet::runSnippet
is used instead of$modx->runSnippet
to run (MODX)EvolutionCMS.snippets.ddTypograph without DB and eval. - - Removed compatibility with ancient versions of (MODX)EvolutionCMS.libraries.ddTools.
- + README:
- + Documentation → Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
- + Links.
- + Composer.json:
- +
support
. - +
authors
: Added missed homepages.
- +
Version 3.5.1
- * Improved compatibility with new versions of (MODX)EvolutionCMS.libraries.ddTools.
Version 3.5
- + Parameters →
inputString
: Can also be a JSON object, not just an array. - * Parameters →
filter
:- * “Is equal” operator changed to
==
from::
(with backward compatibility). - + Added “is not equal” operator (
!=
). - + Added “and” condition (
&&
). - + Values can be quoted.
- + Spaces, tabs and line breaks are allowed.
- * “Is equal” operator changed to
- + Composer.json.
- + README.
- + README_ru.
- + CHANGELOG.
- + CHANGELOG_ru.
Version 3.4
- + Parameters →
placeholders
:- + Added arrays support.
- + Added JSON format support.
- + Parameters →
inputString
: Added JSON format support. - * The following parameters were renamed (the snippet works with the old names but they are deprecated):
- *
rowDelimiter
→inputString_rowDelimiter
. - *
colDelimiter
→inputString_colDelimiter
.
- *