Open pjope opened 2 months ago
Hey Phil. I'm not sure why the selected icon is not saved correctly. Your config for the doktype 1000
looks a bit strange though:
--palette--;;title,
'tx_bwicons_icon'
--palette--;;external,
The quotes around tx_bwicons_icon
should not be necessary. The columnsOverrides
are not needed as well (the configuration is already done for this field).
Just an idea: If you want to restrict the icon field to only a specific doktype, TCEFORM
would be much easier:
# disable the icon field for pages
TCEFORM.pages.tx_bwicons_icon.disabled = 1
# enable the icon field for a specific page type
TCEFORM.pages.tx_bwicons_icon.types.1000.disabled = 0
Try again and let me know. Cheers!
Hello,
I added the plugin as described, and when I enable it for pages, everything works fine.
Now I tried to add the field only to a specific page doktype, without adding it to the others.
The icon picker is showing up, and I can pick an icon. It is displayed in the field after selection.
However, if I save the record now, nothing is saved to the database.
If I manually edit the record in the database and enter the icon string into the tx_bwicons_icon field, the icon picker field is correctly filled with the correct icon in TYPO3.
Greetings Phil