Releases: DivanDesign/EvolutionCMS.snippets.ddGetMultipleField
Releases · DivanDesign/EvolutionCMS.snippets.ddGetMultipleField
Version 3.3
- + Parameters →
outerTpl
,rowTpl
,colTpl
: Added the ability to use inline templates in snippet call, using'@CODE:'
prefix. - + Parameters →
rowTpl
,colTpl
: Additional data from theplaceholders
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):
- *
string
→inputString
. - *
docField
→inputString_docField
. - *
docId
→inputString_docId
.
- *
- * Refactoring: The snippet result will be returned in anyway (empty string for empty result).
Version 3.2
- + 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
andsortDir
parameters are processed only if they are used. - * The
startRow
andtotalRows
parameters are processed only if they are used. - * Some internal variables have been renamed.
Version 3.1
- + Parameters →
outputFormat
: The new output format typehtmlarray
has been added. It is a one-dimensional array, which elements are completely processed rows. As witharray
, it makes sense to use the parameter only withresultToPlaceholder
.
Version 3.0b
- * 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:
- *
field
→string
. - *
getField
→docField
. - *
getId
→docId
. - *
splY
→rowDelimiter
. - *
splX
→colDelimiter
. - *
num
→startRow
. - *
count
→totalRows
. - *
colNum
→columns
. - *
vals
→filter
. - *
typographing
→typography
. - *
format
→outputFormat
. - *
glueY
→rowGlue
. - *
glueX
→colGlue
. - *
tplY
→rowTpl
. - *
tplX
→colTpl
. - *
tplWrap
→outerTpl
. - *
totalPlaceholder
→totalRowsToPlaceholder
.
- *
- * 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+]
.
- * The placeholder
- * Parameters →
outerTpl
:- * The placeholder
[+wrapper+]
has been renamed as[+result+]
. - * The placeholders of the form
[+rowY.valX+]
have been renamed as[+rowY.colX+]
.
- * The placeholder
- * Parameters →
resultToPlaceholder
: Now takes a placeholder name instead of a boolean value. - * Minor code style and other changes.
Version 2.18
- * 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 ifplaceholders
had been set has been eliminated. - + The placeholders of the form
[+rowY.valX+]
(whereY
— row number,X
— column number) that contains all values are available.
- * The error because of which the placeholder
- * Please note the placeholder
[+total+]
that currently holds the total number of ALL elements. - * Minor code changes.
Version 2.17
- + Parameters →
vals
: Filtration of all columns is now available.
Version 2.16.2
- * Values contained in the integer type columns are being compared like integers while sorting.