Skip to content

Releases: DivanDesign/EvolutionCMS.snippets.ddGetDocumentField

Version 2.15

15 Jul 14:53

Choose a tag to compare

  • + OutputterString → Parameters → outputterParams->removeEmptyFields: The new optional parameter. Allows to prevent empty fields to be removed from the snippet result.

Version 2.14

13 Jul 09:05

Choose a tag to compare

  • + OutputterObject → Parameters → outputterParams->emptyResult: Regardless of the type in which the parameter is set, the result will always be converted to outputterParams->format. So you no longer need to define this parameter if you just want an empty object.

Version 2.13

12 Jul 17:36

Choose a tag to compare

  • + 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

12 Jul 14:09

Choose a tag to compare

  • * 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' — stdClass or array depends on result object
        • + 'objectStdClass'stdClass
        • + 'objectArray'array
      • + Return result as a string:
        • + 'stringJsonAuto'stringJsonObject or stringJsonArray depends on result object
        • + 'stringJsonObject'
        • + 'stringJsonArray'
        • + 'stringQueryFormatted'Query string
        • + 'stringHtmlAttrs' — HTML attributes string (e. g. width='100' height='50')
  • * \ddTools::getTpl is 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

27 Dec 02:33

Choose a tag to compare

  • * Attention! (MODX)EvolutionCMS.snippets.ddTypograph >= 2.5 is required.
  • * Fixed an error when the snippet result is empty.
  • * \DDTools\Snippet::runSnippet is used to run ddTypograph without DB and eval.
  • + README → Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.

Version 2.11

26 Mar 18:15

Choose a tag to compare

  • * Attention! PHP >= 5.6 is required.
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.48 is required.
  • + You can just call \DDTools\Snippet::runSnippet to 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

29 Sep 14:56

Choose a tag to compare

  • * \ddGetDocumentField\DataProvider\Document\DataProvider::get: Returns only existing resource fields.
  • * Refactoring (MODX)Evolution.libraries.ddTools including.

Version 2.10.4

29 Sep 09:32

Choose a tag to compare

  • * \ddGetDocumentField\DataProvider\Document\DataProvider::get: Fixed wrong outputting of alternative resource fields.
  • + README → Links.

Version 2.10.3

05 Jul 20:44

Choose a tag to compare

  • \ddGetDocumentField\Input::paramsBackwardCompatibility: Fixed wrong CMS event logging.

Version 2.10.2

11 May 19:14

Choose a tag to compare

  • * Snippet → Parameters → removeEmptyFields: Only empty strings ('') are considered as “empty”.
  • * Composer.json:
    • + homepage.
    • + authors.
    • * require:
      • * dd/evolutioncms-libraries-ddtools: Renamed from dd/modxevo-library-ddtools.
      • * dd/evolutioncms-snippets-ddtypograph: Renamed from dd/modxevo-snippet-ddtypograph.