Skip to content

Releases: DivanDesign/EvolutionCMS.snippets.ddGetMultipleField

Version 3.10

05 Sep 23:14
Compare
Choose a tag to compare
  • + 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+], [+colcolumnNumber.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

11 Jan 13:34
Compare
Choose a tag to compare
  • * 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

10 Aug 01:35
Compare
Choose a tag to compare
  • * Parameters:
    • columns: Wrong working with the 0 value has been fixed.
    • * colTpl: Wrong working with the empty value has been fixed.

Version 3.8.1

09 Jun 12:36
Compare
Choose a tag to compare
  • * Parameters → colTpl: Support of various column numbers in different rows has been improved.

Version 3.8

04 Jun 17:35
Compare
Choose a tag to compare
  • * Parameters:
    • + inputString: Supports JSON with any nesting level.
    • + colTpl[$i] → Placeholders:
      • + [+columnIndex+]: The new placeholder. Contains index of the column, starts at 0.
      • + [+columnKey+]: The new placeholder. Contains key of the column. It is usefull for objects or associative arrays in inputString, 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 if inputString contains JSON with more than 2 levels of nesting).
    • rowTpl → Placeholders:
      • + [+allColumnValues+]: The new placeholder. Contains string values of all columns combined by colGlue. See README → Examples.
      • + [+columnKey+]: The new placeholders set, when columnKey is original column key. See README → Examples.
    • * removeEmptyCols: Works fine even if both rowTpl and colTpl are not set.

Version 3.7

05 Oct 22:18
Compare
Choose a tag to compare
  • + 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

28 Jun 18:32
Compare
Choose a tag to compare
  • * 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

22 Jun 14:23
Compare
Choose a tag to compare
  • * Improved compatibility with new versions of (MODX)EvolutionCMS.libraries.ddTools.

Version 3.5

24 May 22:25
Compare
Choose a tag to compare
  • + 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.
  • + Composer.json.
  • + README.
  • + README_ru.
  • + CHANGELOG.
  • + CHANGELOG_ru.

Version 3.4

24 May 22:20
Compare
Choose a tag to compare
  • + 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):
    • * rowDelimiterinputString_rowDelimiter.
    • * colDelimiterinputString_colDelimiter.