Releases: DivanDesign/EvolutionCMS.snippets.ddGetDocumentField
Releases · DivanDesign/EvolutionCMS.snippets.ddGetDocumentField
Version 2.15
Version 2.14
- + OutputterObject → Parameters →
outputterParams->emptyResult: Regardless of the type in which the parameter is set, the result will always be converted tooutputterParams->format. So you no longer need to define this parameter if you just want an empty object.
Version 2.13
- + OutputterObject → Parameters →
outputterParams->templates: The new parameters. Allows you to use templates for some fields. Templates will be used before final conversion of results. So you don't need to care about characters escaping for JSON e. g. See README → Examples.
Version 2.12
- * Parameters →
outputter→ Valid values →'object': Has been renamed from'json'(with backward compatibility). - + OutputterObject → Parameters:
- +
outputterParams->format: The new parameter. Allows:- + Return result as a native PHP object or array (it is convenient to call through
\DDTools\Snippet::runSnippet):- +
'objectAuto'—stdClassorarraydepends on result object - +
'objectStdClass'—stdClass - +
'objectArray'—array
- +
- + Return result as a string:
- +
'stringJsonAuto'—stringJsonObjectorstringJsonArraydepends on result object - +
'stringJsonObject' - +
'stringJsonArray' - +
'stringQueryFormatted'— Query string - +
'stringHtmlAttrs'— HTML attributes string (e. g.width='100' height='50')
- +
- + Return result as a native PHP object or array (it is convenient to call through
- +
- *
\ddTools::getTplis used instead of$modx->getTpl(means a bit less bugs). - README:
- * Examples: HJSON is used for all examples.
- + Links → GitHub.
- + Composer.json:
- +
support. - +
autoload.
- +
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.
Version 2.11.1
- * Attention! (MODX)EvolutionCMS.snippets.ddTypograph >= 2.5 is required.
- * Fixed an error when the snippet result is empty.
- *
\DDTools\Snippet::runSnippetis used to run ddTypograph without DB and eval. - + README → Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
Version 2.11
- * Attention! PHP >= 5.6 is required.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.48 is required.
- + You can just call
\DDTools\Snippet::runSnippetto run the snippet without DB and eval (see README → Examples). - + Parameters →
dataProviderParams,outputterParams,securityFields: HJSON is supported. - +
\ddGetDocumentField\Snippet: The new class. All snippet code was moved here. - + README → Links → Packagist.
- + CHANGELOG_ru.
Version 2.10.5
- *
\ddGetDocumentField\DataProvider\Document\DataProvider::get: Returns only existing resource fields. - * Refactoring (MODX)Evolution.libraries.ddTools including.
Version 2.10.4
- *
\ddGetDocumentField\DataProvider\Document\DataProvider::get: Fixed wrong outputting of alternative resource fields. - + README → Links.
Version 2.10.3
\ddGetDocumentField\Input::paramsBackwardCompatibility: Fixed wrong CMS event logging.
Version 2.10.2
- * Snippet → Parameters →
removeEmptyFields: Only empty strings ('') are considered as “empty”. - * Composer.json:
- +
homepage. - +
authors. - *
require:- *
dd/evolutioncms-libraries-ddtools: Renamed fromdd/modxevo-library-ddtools. - *
dd/evolutioncms-snippets-ddtypograph: Renamed fromdd/modxevo-snippet-ddtypograph.
- *
- +