Bug #102272
closedcustom doktype icons not visible in page tree
0%
Description
I tried to add new page types. For this i used this documentation.
https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/PageTypes/CreateNewPageType.html
I registered own icons and used them.
in the page tree toolbar on top i can see the new icons.
but in the page tree itself, beside the paget title, there is no icon (not a 'broken icon' too)
after that i tried it without my own icons. Instead i used typo3 known icons - that worked perfect.
after that i took the svg content from the registered icon and pasted it in a new file and use this file for my new icon.
This resulst in the same behaviour as described above.
Files
Updated by Christian Weiske 9 months ago
- File 2024-03-06 typo3 missing page type icon tree.png 2024-03-06 typo3 missing page type icon tree.png added
Same here with TYPO3 v12.4.9 - see screenshot.
Updated by Christian Weiske 8 months ago ยท Edited
- File 2024-03-13 tree defs.png 2024-03-13 tree defs.png added
The problem is that my svg icon file defined the size to be 1792x1792. When removing the width and height attributes in svg (and then clearing local storage in the browser) the icon appeared.
So the icon itself was loaded, but not scaled correctly by the tree.
Updated by Riccardo De Contardi 5 months ago
- File cattura.png cattura.png added
- File alien.svg alien.svg added
It is still reproducible on version 12.4.16 (not tested on 13).
I attach here the icon alien.svg I used, which has width="1792" height="1792" viewBox="0 0 1792 1792"
as SVG attributes.
The result is that in the area where the pages icon are dragged and dropped onto the pagetree the icon is displayed correctly, while it is not on the pageTree itself:
Updated by Georg Ringer 5 months ago
- File Bildschirmfoto 2024-06-21 um 10.08.07.png Bildschirmfoto 2024-06-21 um 10.08.07.png added
- Status changed from New to Closed
just tested that in v13 and it works. as the devs concentrate currently on v13 and the change can't be backported to v12 because this is a new implentation I am closing this issue - especially because there is an easy solution for v12