ervaude / fs_code_snippet

Extension for TYPO3 CMS to provide a code snippet content element
https://usetypo3.com
8 stars 7 forks source link

Readme content - adding futher languages #28

Open christen90 opened 4 months ago

christen90 commented 4 months ago

Hello ervaude, I had one finding regarding the readme.md

image

somehow this fits more to the structure $GLOBALS['TCA']['tt_content']['columns']['programming_language']['config']['items'][] = ['label' => 'Python', 'value' => \DanielGoerz\FsCodeSnippet\Enumeration\CodeSnippetLanguage::PYTHON];

than

https://github.com/ervaude/fs_code_snippet/blame/d272336093327ef7087c58fe4a69550d4aac632d/Readme.md#L49 $GLOBALS['TCA']['tt_content']['columns']['programming_language']['config']['items'][] = ['Python' => \DanielGoerz\FsCodeSnippet\Enumeration\CodeSnippetLanguage::PYTHON];

ervaude commented 4 months ago

Hi @christen90

this is related to a TYPO3 v12 FEATURE: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.3/Feature-99739-AssociativeArrayKeysForTCAItems.html#feature-99739-associative-array-keys-for-tca-items

I'll look into it when I release a version compatible with TYPO3 12 LTS