【问题标题】:FLUIDTYPO3 Icons are missing (fluidcontent/flux, TYPO3 7.6 LTS)FLUIDTYPO3 图标丢失(fluidcontent/flux,TYPO3 7.6 LTS)
【发布时间】:2016-01-31 16:41:50
【问题描述】:

我们已经有了 .. TYPO3 后端的流体内容元素中缺少的图标... (here f.e.)。

现在有TYPO3 7.6.2 LTS和最新的fluidcontent 4.4.0

有时图标在那里,但只在特定位置,例如Page -> Columns -> Overview

但不在new content element - wizardpage properties(图片2+3)

new page content wizard 页面上,检查工具、Serverpath 我的目录../homepages/5/d11223344??/htdocs/mydir/typo3conf/ext/myext/Resources/Public/img/icons/MyIcon.svg

我还在以下文件夹中创建了一些图标:/typo3conf/ext/myext/Resources/Public/Icons/Content/Grid03ThreeCol.png for /typo3conf/ext/myext/Resources/Private/Templates/Content/Grid03ThreeCol.html - 。我试过 png 和 svg ... 什么都没有。

这是一个fluidtypo3-还是一个typo3问题? 你是怎么做到的?

【问题讨论】:

    标签: icons typo3 backend fluid


    【解决方案1】:

    经过fluidcontentor/和flux的几次更新...

    现在可以了!

    您的模板:

    /typo3conf/ext/yourextension/Resources/Private/Templates/Content/Grid02.html
    

    你的图标:

       /typo3conf/ext/yourextension/Resources/Public/Icons/Content/Grid02.svg
    

    ...图片..

    【讨论】:

      【解决方案2】:

      打开您的 /typo3conf/ext/myext/Resources/Private/Templates/Content/Grid03ThreeCol.html 文件并找到该图标路径。

      它将从下一行调用。按照以下代码修改您的图标路径:

      <flux:form id="" options="{group: '', icon: '../typo3conf/ext/myext/Resources/Public/Icons/Content/Grid03ThreeCol.png'}">
      

      从安装工具和后端清除缓存。然后检查,它会工作。

      【讨论】:

      • H vijay,感谢您的回答,但它对我不起作用:&lt;flux:form id="grid03" options="{Fluidcontent: {sorting: 103}, group: 'LLL:typo3conf/ext/myext/Resources/Private/Language/locallang.xlf:grid.grids', icon: '../typo3conf/ext/myext/Resources/Public/Icons/Content/Grid03ThreeCol.png'}"&gt; .. 缓存已清除,但我在新内容向导中看不到图标
      • 只需将 "myext" 替换为来自 'group''icon' 路径的扩展名:&lt;flux:form id="grid03" options="{Fluidcontent: {sorting: 103}, group: 'LLL:typo3conf/ext/myext/Resources/Private/Language/locallang.xlf:grid.grids', icon: '../typo3conf/ext/myext/Resources/Public/Icons/Content/Grid03ThreeCol.png'}"&gt; 它只会在您的组名(locallang.xlf:grid.grids)选项卡下的“新内容元素”中显示图像。它不会显示在“页面”选项卡的“流体内容类型”下。
      • 我知道 .. 当然,我已经将 myext 转换为我的扩展名,但它不起作用。我也试过这个,但它是一样的:... icon: '{f:uri.resource(path: \'img/icons/MyIcon.svg\')} ...
      • 编辑:哦,它有效。我在页面概述(列)中看到图标 - 而不是在我的组名选项卡下的“新内容元素”中......这很奇怪。
      • 是的,它真的很奇怪......它的默认 TYPO3 CMS 错误......等待下一个版本......希望它可以解决......如果你喜欢我的解决方案,那么请..upvote..
      猜你喜欢
      • 2015-04-06
      • 2019-02-22
      • 2016-12-02
      • 2023-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-26
      • 2019-05-12
      相关资源
      最近更新 更多