Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend Layouts using Icon-Identifier cause Exception #385

Closed
kmzeitgleich opened this issue Feb 16, 2021 · 3 comments
Closed

Backend Layouts using Icon-Identifier cause Exception #385

kmzeitgleich opened this issue Feb 16, 2021 · 3 comments

Comments

@kmzeitgleich
Copy link

When using an Icon by Identifier instead of a path the fluid viewhelper rendering that icon will cause an exception

Example:
mod.web_layout.BackendLayouts {
home {
title = Home
icon = my-cool-default-icon
....
}

When opening the mask extension
TYPO3Fluid\Fluid\Core\ViewHelper\Exception
Folder "/my-cool-default-icon/" does not exist.

The Icon is registered with the standard approach of the IconRegistry ->registerIcon() function and it works perfectly fine.

Using the old way
icon = EXT:my_ext/Resources/Public/Images/BackendLayouts/my-cool-default-icon.png does work, but seems oldschool to me

@kmzeitgleich
Copy link
Author

Typo3 Version: 10.4.13
Mask Version: 6.4.4
PHP: 7.4.2

@nhovratov
Copy link
Collaborator

@kmzeitgleich
Hi!
I'm pretty sure icon identifier is not supported there. In the docs there is only one example with the full path: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/BackendLayout/Index.html

@georgringer
Copy link
Contributor

it was for sure working and I was hit by this issue also with every project but switching that to EXT:fo/bar.svg works in backend + in mask

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants