Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 FCE引用类属性内字段uri的文件类型_Typo3 - Fatal编程技术网

Typo3 FCE引用类属性内字段uri的文件类型

Typo3 FCE引用类属性内字段uri的文件类型,typo3,Typo3,xI希望将插入文件的文件类型插入到a href类中: a href class“图标文件类型-” 我现在有这样的东西: 10 = TEXT 10.field = field_uri 10.wrap = icon-filetype-| 但是我得到了类中的洞url:D 谢谢你的时间 (顺便说一句,我使用这些网站作为参考,所以也许我给你一个开始: 及) 这是我使用的映射: <ul class="section-container"> <li> <a class="" h

xI希望将插入文件的文件类型插入到a href类中:

a href class“图标文件类型-”

我现在有这样的东西:

10 = TEXT
10.field = field_uri
10.wrap = icon-filetype-|
但是我得到了类中的洞url:D

谢谢你的时间

(顺便说一句,我使用这些网站作为参考,所以也许我给你一个开始: 及)

这是我使用的映射:

<ul class="section-container">
<li>
<a class="" href="#" target="_blank"><span>Item 1</span><span class="size"></span></a>
</li>
</ul>

未测试此代码:

10 = TEXT
10.field = field_uri
10.split {
   token = .
   # if you get an different part or some parts added, this optionsplit is wrong
   cObjNum = |*||*| 1 || 2 
   # render nothing means remove this part
   1 = TEXT
   1.value =
   # render only the filetype
   2 = TEXT
   2.current = 1
}
10.wrap = icon-filetype-|