Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
130 stars 86 forks source link

[FEATURE] IconPicker or custom RenderType #488

Closed artur-grigoryan-cgn closed 2 years ago

artur-grigoryan-cgn commented 2 years ago

Hi, it would be amazing to get an IconPicker so i the user can use icons. Otherwise it could help to let me choose cusom RenderTypes so i could user the bw_icon extion. Thank you. :)

nhovratov commented 2 years ago

Hi, Mask only represents the capabilities of the TCA. If you wish to use an own renderType, then you can just use an input field and override the renderType with TCA overrides.

artur-grigoryan-cgn commented 2 years ago

Okay, i will try this! Is an IconPicker planned?

Danke. :)

nhovratov commented 2 years ago

As far as I know not. I think the best alternative right now is a select single with selectIcons enabled.

madeinnature commented 2 years ago

Hi Artur, we use bw_icons in our projects together with mask + mask_export like Nikita described as override or additional element in overrides.

artur-grigoryan-cgn commented 2 years ago

Hi madeinnature, so just: $GLOBALS['TCA']['tt_content']['columns']['tx_mask_icon']['config']['renderType'] = 'iconSelection'; in the tt_content.php? Doesn't seem to work.

nhovratov commented 2 years ago

Have you added mask as an extension dependency?

artur-grigoryan-cgn commented 2 years ago

I added Mask with composer req mask/mask

nhovratov commented 2 years ago

You need to add this also in your extension, in which you override the TCA

artur-grigoryan-cgn commented 2 years ago

i have added mask in composer.json of the project root and the ivs_elements. No effect.

nhovratov commented 2 years ago

Have you run composer update after adding it to ivs_elements? If not try that. This will update the extension loading order.

artur-grigoryan-cgn commented 2 years ago

yes :)

nhovratov commented 2 years ago

Hm, then I don't know. Anything else must be wrong. It's just these 2 steps:

That's it. This always works. Please verify the loading order in the PackageArtifact.php and the TCA in the lowlevel Configuration module.

artur-grigoryan-cgn commented 2 years ago

Okay, now it works. I deleted the project and pullt it again. Thank you for the great help!