Releases: DivanDesign/EvolutionCMS.snippets.ddGetFileInfo
Releases · DivanDesign/EvolutionCMS.snippets.ddGetFileInfo
Version 2.5.1
🇬🇧
- * Refactoring and other small changes.
- *
\ddTools::getTplis used instead of$modx->getTpl(means a bit less bugs). - * Attention! PHP >= 7.4 is required (not tested with older versions).
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.
🇷🇺
- * Рефакторинг и другие небольшие изменения.
- *
\ddTools::getTplиспользуется вместо$modx->getTpl(стало чуть меньше багов). - * Внимание! Требуется PHP >= 7.4 (не тестировался с более старыми версиями).
- * Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.60.
Version 2.5
- * Attention! PHP >= 5.6 is required.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.49 is required.
- * Parameters:
- +
tpl_placeholders: Can also be set as HJSON. - *
sizeUnitFormat- * Was renamed from
sizeNameFormat(with backward compatibility). - + Values are case insensitive.
- * Was renamed from
- +
- + You can just call
\DDTools\Snippet::runSnippetto run the snippet without DB and eval (see README → Examples). - +
\ddGetFileInfo\Snippet: The new class. All snippet code was moved here. - + README:
- + Documentation → Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
- + Links.
- + Text improvements.
- + README_ru.
- + Composer.json:
- +
homepage. - +
support. - +
authors.
- +
Version 2.4
- + The ability to return the MIME content type for a file (see the
tplparameter). - * Parameters →
tpl: Wrong[+file+]placeholder was fixed. - + README, CHANGELOG: Style improvements.
- + README → Documentation → Parameters description →
tpl_placeholders: Text improved.
Version 2.3
- + If
filedoesn't contain base path, the snippet will add it. - *
fopenis not used anymore because@operator doesn't always work. - *
filesizeis used only for local files, not for URLs.@steel used because not only URLs will generate errors.
Version 2.2.1
- * Critical variable name error was fixed.
Version 2.2
- * Attention! PHP >= 5.4 is required.
- * Attention! MODXEvo >= 1.1 is required.
- * Attention! MODXEvo.libraries.ddTools >= 0.18 is required.
- + Added JSON and Query string formats support for the
tpl_placeholdersparameter (with backward compatibility). - + Added support of the
@CODE:keyword prefix in thetplparameter. - * The following parameters were renamed (with backward compatibility):
- *
docField→file_docField. - *
docId→file_docId. - *
sizeType→sizeNameFormat. - *
sizePrec→sizePrecision. - *
placeholders→tpl_placeholders.
- *
- * The
sizeNameFormatparameter changes:- * User-friendly values.
- + Added
EnFullvalue. - * Is equal to
EnShortby default.
Version 1.0
- + The first release.