Skip to content

Releases: DivanDesign/EvolutionCMS.snippets.ddGetMultipleField

Version 3.3

24 May 22:19
Compare
Choose a tag to compare
  • + Parameters → outerTpl, rowTpl, colTpl: Added the ability to use inline templates in snippet call, using '@CODE:' prefix.
  • + Parameters → rowTpl, colTpl: Additional data from the placeholders parameter are now also will be passed into row and column templates
  • * Parameters → placeholders: Additional data has to be passed through the parameter must be a Query string (the old format is still supported but deprecated).
  • * The following parameters were renamed (the snippet works with the old names but they are deprecated):
    • * stringinputString.
    • * docFieldinputString_docField.
    • * docIdinputString_docId.
  • * Refactoring: The snippet result will be returned in anyway (empty string for empty result).

Version 3.2

24 May 22:19
Compare
Choose a tag to compare
  • + Parameters → colTpl: The [+rowNumber+] placeholder is now also available within column templates.
  • + Parameters → rowTpl, colTpl: The new placeholder [+rowNumber.zeroBased+] (index of the current row, starts at 0) was added to row and column templates. It’s very useful sometimes.
  • * Refactoring:
    • * Column templates are processed only if they are used.
    • * The sortBy and sortDir parameters are processed only if they are used.
    • * The startRow and totalRows parameters are processed only if they are used.
    • * Some internal variables have been renamed.

Version 3.1

24 May 22:19
Compare
Choose a tag to compare
  • + Parameters → outputFormat: The new output format type htmlarray has been added. It is a one-dimensional array, which elements are completely processed rows. As with array, it makes sense to use the parameter only with resultToPlaceholder.

Version 3.0b

24 May 22:18
Compare
Choose a tag to compare
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.11 is required.
  • * The \ddTools:sort2dArray method is used for sorting instead of the local function.
  • * The \ddTools:getTemplateVarOutput method is used for getting field value instead of (MODX)EvolutionCMS.snippets.ddGetDocumentField.
  • * The following parameters have been renamed, also their description and order were changed:
    • * fieldstring.
    • * getFielddocField.
    • * getIddocId.
    • * splYrowDelimiter.
    • * splXcolDelimiter.
    • * numstartRow.
    • * counttotalRows.
    • * colNumcolumns.
    • * valsfilter.
    • * typographingtypography.
    • * formatoutputFormat.
    • * glueYrowGlue.
    • * glueXcolGlue.
    • * tplYrowTpl.
    • * tplXcolTpl.
    • * tplWrapouterTpl.
    • * totalPlaceholdertotalRowsToPlaceholder.
  • * Parameters → typography:
    • * Correction is no longer performed to the final result but to values individually.
    • * Now takes a comma-separated list of column indexes specifying the columns to correct.
  • * Parameters → rowTpl:
    • * The placeholder [+row_number+] has been renamed as [+rowNumber+].
    • * The placeholders of the form [+valX+] have been renamed as [+colX+].
  • * Parameters → outerTpl:
    • * The placeholder [+wrapper+] has been renamed as [+result+].
    • * The placeholders of the form [+rowY.valX+] have been renamed as [+rowY.colX+].
  • * Parameters → resultToPlaceholder: Now takes a placeholder name instead of a boolean value.
  • * Minor code style and other changes.

Version 2.18

24 May 22:18
Compare
Choose a tag to compare
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.10 is required.
  • + Parameters → tplWrap, tplY: The new placeholder [+resultTotal+] being used in the chunks holds the total number of RETURNED elements.
  • * Parameters → tplWrap:
    • * The error because of which the placeholder [+total+] used to be parsed correctly inside of a wrapping chunk only if placeholders had been set has been eliminated.
    • + The placeholders of the form [+rowY.valX+] (where Y — row number, X — column number) that contains all values are available.
  • * Please note the placeholder [+total+] that currently holds the total number of ALL elements.
  • * Minor code changes.

Version 2.17

24 May 22:18
Compare
Choose a tag to compare
  • + Parameters → vals: Filtration of all columns is now available.

Version 2.16.2

24 May 22:17
Compare
Choose a tag to compare
  • * Values contained in the integer type columns are being compared like integers while sorting.