Project

General

Profile

Actions

Bug #102272

closed

custom doktype icons not visible in page tree

Added by Maik Hagenbruch about 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2023-10-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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

2024-03-06 typo3 missing page type icon tree.png (12.7 KB) 2024-03-06 typo3 missing page type icon tree.png Christian Weiske, 2024-03-06 13:31
2024-03-13 tree defs.png (86.9 KB) 2024-03-13 tree defs.png Christian Weiske, 2024-03-13 11:47
cattura.png (70.5 KB) cattura.png Riccardo De Contardi, 2024-06-20 21:05
alien.svg (1.05 KB) alien.svg Riccardo De Contardi, 2024-06-20 21:06
Bildschirmfoto 2024-06-21 um 10.08.07.png (22.8 KB) Bildschirmfoto 2024-06-21 um 10.08.07.png Georg Ringer, 2024-06-21 08:08
Actions #2

Updated by Christian Weiske 9 months ago

  • Is Regression set to Yes
Actions #3

Updated by Christian Weiske 8 months ago ยท Edited

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

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:

Actions #5

Updated by Georg Ringer 5 months ago

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

Actions

Also available in: Atom PDF