xI想要将插入文件的文件类型插入到href类中:
一个href类“icon-filetype - ”
我现在有这样的事情:
10 = TEXT
10.field = field_uri
10.wrap = icon-filetype-|
但是我得到了班级内的洞穴网址:D
了解时间
(顺便说一句,我使用这些网站作为参考,所以也许我给你一个开头: Typo3 FCE refer a field inside a container field 和http://typo3.org/extension-manuals/rs_linklayout/1.3.1/view/1/3/)
这是我使用的映射:
<ul class="section-container">
<li>
<a class="" href="#" target="_blank"><span>Item 1</span><span class="size"></span></a>
</li>
</ul>
答案 0 :(得分:0)
没有测试此代码:
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-|