TYPO3 FluidTYPO3: Missed Flux Icons for Content Elements at TYPO3 Backend

大憨熊 提交于 2019-12-25 03:41:42

问题


Hi I'm using TYPO3 CMS 6.2.14 with FluidTYPO3 (flux 7.2.2, fluidcontent 4.3.2and vhs 2.3.3). Since the last few TYPO3 installations my Icons for Fluidcontent-Elements are missing in Backend?! I've didn't change the path or sth. else.

Here are my tries, nothing works:

<flux:form id="fce6" icon="../typo3conf/ext/mytemplates/Resources/Public/Icons/Content/Icon.gif" wizardTab="FCE" options="{Fluidcontent: {sorting: 106}}">
...
<flux:form id="fce6" options="{Fluidcontent: {sorting: 105}, group: 'FCE', icon: '{f:uri.resource(path: \'Icons/Content/Icon.gif\')}'}">
...
<flux:form id="fce6" options="{icon: '{f:uri.resource(path: \'Icons/Content/Icon.gif\')}'}">
...
<flux:form wizardTab="Bootstrap" id="tabs" icon="{v:extension.path.resources(path: 'Icons/icon-tabs.gif')}">

If I inspect the missing Icons in Backend with a developer tool (browser), the Icon is found, so I don't understand it.

../typo3conf/ext/mytemplates/Resources/Public/Icons/content/Icon.gif

Some sceenshots

-

The funny thing is, that the Icon is still there, if you're inside the Fluidcontent Element (FCE), see last screenshot (red bar icon):

EDIT :: I was looking in one of my older TYPO3-Projects and the Icons are still there: flux 7.2.1, fluidcontent 4.2.4 and TYPO3 6.2.15 Code:

<flux:form id="tabsvertical" options="{Fluidcontent: {sorting: 305}, group: 'FCE', icon: '{f:uri.resource(path: \'Icons/Content/Example.gif\')}'}">

See screenshot:


回答1:


Flux supports convention based icons since v.7.2.0.

It means, that for each your template you can have corresponding icon in Icons folder, which will be shown automatically.

Example:

Template file typo3conf\ext\my_ext\Resources\Private\Templates\Content\Grid-1.html should have an icon typo3conf\ext\my_ext\Resources\Public\Icons\Content\Grid-1.png.

See more in changelog.




回答2:


I spent some hours with TYPO3 6.2.15 and 7.5 to get icons running. The convention based icons did the job for 6.2.15. Rather than using a f:uri.resource(), which will not work. The flux form configuration is somehow rendered in a special container. E.g. for the "new content elements page". Try to put a var_dump() into the view helper. Best combined with an exit(). The container does not seem to be aware of the extension. That is for 6.2.15 and the current versions of fluid/flux. For 7.5 the 7.2.3 does not produce any reasonable results. I only get /typo3/ as icon path. But the 7.2.4 is expected to fix it.




回答3:


I use this Options Fields for Backend Icons and Grouping.

<flux:form.option.group value="Content" />
<flux:form.option.icon value="EXT:ext_name/Resources/Public/Icons/Content/HeroImage.svg" />

I also added the <flux:form.option name="settings.options"> as wrapper around the group and icon Definitions

I'm not using FluidContent but Flux Version 8.2 and TYPO3 8.7.15



来源:https://stackoverflow.com/questions/32851230/typo3-fluidtypo3-missed-flux-icons-for-content-elements-at-typo3-backend

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!