没有后端图标FLUID供电TYPO3 - 错误的路径? [英] No Backend Icons FLUID Powered TYPO3 - wrong path?

查看:229
本文介绍了没有后端图标FLUID供电TYPO3 - 错误的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用FLUID POWERED TYPO3后的第一步。

after my first steps with FLUID POWERED TYPO3.

最新版本 flux 7.1.2 fluidpages 3.1.2 fluidcontent 4.1.1 fluidcontent_core 1.0.2 vhs 2.1.4

我只有一个小问题...我看不到我在TYPO3后端的FLUIDPAGES或FLUX内容元素的图标。

I've got only a small issue ... I don't see my Icons for FLUIDPAGES or FLUX CONTENT ELEMENTS at TYPO3 Backend.

这是Fluidpages-Images的图标路径来自屏幕截图:

This is the Icon Path for Fluidpages-Images from Screenshot:

typo3conf/ext/mvz_neuhann/Resources/Public/Icons/Page/Standard.gif

我尝试使用或不使用baseURL没有任何反应。当我将路径粘贴到浏览器中时,图标是可见的:

但我的JS-Console说:

I try it with or without baseURL nothing happens. The Icon is visible, when I paste the path into my Browser: But my JS-Console says:

http://mvz.local/typo3/typo3conf/ext/mvz_neuhann/Resources/Public/Icons/Page/Standard.gif 404 (Not Found)

因为'<$ c我的网址后面是$ c> typo3 / '但为什么?我在本地服务器上,没有文件许可或某事,清除缓存,删除typo3temp。

Because of the 'typo3/' after my URL. But why? I'm on a local Server, no File Permissons or sth., Clear Cache, delete typo3temp.

没什么。我无法通过流量计或流量从我的提供商扩展中看到我的图标。我的FLUX图标也一样,标准图标是可用的,但是我的焊接形式的路径是怎样的?

Nothing. I can't see my Icons from my provider Extension via fluidpages or flux. It's the same with my FLUX Icons, the Standard-Icon is availible but how is the path at my flux form?

我试过:

<flux:form id="home05" options="{group: 'xy', icon: '{f:uri.resource(path: \'Public/Icons/Content/myicon.gif\')}'}">
// or
<flux:form id="home05" options="{icon: 'typo3conf/ext/my_extension/Resources/Public/Icons/Content/myicon.gif', group: 'xy'}">
//
<flux:form id="home05" options="{icon: 'EXT:my_extension/Resources/Public/Icons/Content/myicon.gif', group: 'xy'}">


推荐答案

在后端,Flux创建一个相对路径你的偶像。确切地说,它创建了 PATH_site 常量的相对路径。这意味着在你的iframe中,路径是完全错误的。这是后端映像的常见问题。有几种方法可以解决这个问题:

While in the backend, Flux creates a relative path to your Icon. To be precise, it creates a relative path to PATH_site constant. This means in your iframe, the path is plain wrong. This is a common issue with backend images. There's a few ways to solve this:


  1. f:uri创建一个自定义的绝对uri。资源 f:uri.image (绝对路径)


  • 正确转义的示例将是

< flux:form id =fluidpageoptions = {icon:'{f:uri.resource(路径:\'Icons / Content / myImage.gif \')}'}>

如果您还有其他问题,请参阅我们在GitHub上的bugtracker。

If you have further issues, please refer to our bugtracker on GitHub.

这篇关于没有后端图标FLUID供电TYPO3 - 错误的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆