嗨我尝试使用
包含.lib时得到以下输出<f:cObject typoscriptObjectPath="lib.faqList"/>
在我的流体模板中。我把链接输出了但不是所需的:
`<ul>
<li>
<a href="#" target="_blank">some text here</a>
</li>
</ul>
`
所以这是lib.faqList我尝试用几种方式包装,但是无法使它工作也尝试使用{}并包装stdWrap linkWrap等所以应该如何完成。我现在得到ul和没有li的链接?
`## Linklist FAQ!! [Begin]
lib.faqList = COA
lib.faqList{
wrap = <ul>|</ul>
lib.faqList.10 = TEXT
lib.faqList.10.stdWrap = <li>|</li>
{lib.faqList.10.value = TYPO3 Association
lib.faqList.10.typolink.parameter = 29
}
lib.faqList.20 = TEXT
lib.faqList.20.stdWrap = <li>|</li>
{lib.faqList.20.value = TYPO3 Association
lib.faqList.20.typolink.parameter = http://association.typo3.org
}
lib.faqList.30 = TEXT
lib.faqList.30.stdWrap = <li>|</li>
{lib.faqList.30.value = TYPO3 Association
lib.faqList.30.typolink.parameter = 27
}
lib.faqList.40 = TEXT
lib.faqList.40.stdWrap = <li>|</li>
{lib.faqList.40.value = TYPO3 Association
lib.faqList.40.typolink.parameter = 98
}
}
## Link list [End]
`
答案 0 :(得分:1)
注意你的代码,我看到许多不属于他们的支撑......
## Linklist FAQ!! [Begin]
lib.faqList = COA
lib.faqList {
wrap = <ul>|</ul>
10 = TEXT
10 {
wrap = <li>|</li>
value = TYPO3 Association
typolink.parameter = 29
}
20 = TEXT
20 {
wrap = <li>|</li>
value = TYPO3 Association
typolink.parameter = http://association.typo3.org
}
30 = TEXT
30 {
wrap = <li>|</li>
value = TYPO3 Association
typolink.parameter = 27
}
40 = TEXT
40 {
wrap = <li>|</li>
value = TYPO3 Association
typolink.parameter = 98
}
}
## Link list [End]