Skip to content

Releases: DivanDesign/EvolutionCMS.snippets.ddGetDocumentField

Version 2.15

Choose a tag to compare

@Ronef Ronef released this 15 Jul 14:53
  • + OutputterString → Parameters → outputterParams->removeEmptyFields: The new optional parameter. Allows to prevent empty fields to be removed from the snippet result.

Version 2.14

Choose a tag to compare

@Ronef Ronef released this 13 Jul 09:05
  • + 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

Choose a tag to compare

@Ronef Ronef released this 12 Jul 17:36
  • + 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

Choose a tag to compare

@Ronef Ronef released this 12 Jul 14:09
  • * 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

Choose a tag to compare

@Ronef Ronef released this 27 Dec 02:33
  • * 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

Choose a tag to compare

@Ronef Ronef released this 26 Mar 18:15
  • * 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

Choose a tag to compare

@Ronef Ronef released this 29 Sep 14:56
  • * \ddGetDocumentField\DataProvider\Document\DataProvider::get: Returns only existing resource fields.
  • * Refactoring (MODX)Evolution.libraries.ddTools including.

Version 2.10.4

Choose a tag to compare

@Ronef Ronef released this 29 Sep 09:32
  • * \ddGetDocumentField\DataProvider\Document\DataProvider::get: Fixed wrong outputting of alternative resource fields.
  • + README → Links.

Version 2.10.3

Choose a tag to compare

@Ronef Ronef released this 05 Jul 20:44
  • \ddGetDocumentField\Input::paramsBackwardCompatibility: Fixed wrong CMS event logging.

Version 2.10.2

Choose a tag to compare

@ddGoupBot ddGoupBot released this 11 May 19:14
  • * 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.