These changes give us the ability to prepare data in each row and outer wrap.
Prepare function can be a snippet name, function name or closure, each delimited by comma if string, or as an array of functions. Prepare functions can be defined in config file or as snippet parameter.
Function/snippet parameters is: $data, $modx, $_multiTV.
These changes give us the ability to prepare data in each row and outer wrap.
Prepare function can be a snippet name, function name or closure, each delimited by comma if string, or as an array of functions. Prepare functions can be defined in config file or as snippet parameter.
Function/snippet parameters is:
$data
,$modx
,$_multiTV
.Examples:
For rows prepare function
$data
array will contain all variable fields + next values:For prepareWrap additional values will be next:
Also this pullrequest adds functions
setStore($key, $value)
andgetStore($key)
for use in prepare functions.Examples: