简体   繁体   English

Typo3如何获得 <li> 包裹在错字链接列表中

[英]Typo3 how to get a <li> wrapped around an typolink link list

Hi I try to get the following out-put when including a .lib with 嗨,当我包含.lib时,我尝试获得以下输出

<f:cObject typoscriptObjectPath="lib.faqList"/>

in my fluid template. 在我的流体模板中。 I get the links out put but not in the desired: 我得到了链接,但没有放在期望的链接中:

`<ul>
<li>
<a href="#" target="_blank">some text here</a>
</li>
</ul>
`

So this is the lib.faqList I tried to wrap in several ways but can not get it working also tried with {} and wrap stdWrap linkWrap etc. So how should thsi be done. 因此,这是我尝试以几种方式包装的lib.faqList,但无法使其正常工作,还尝试了{}并包装了stdWrap linkWrap等。因此,应该怎么做。 I now get the ul and the links without the li? 我现在得到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]

` `

Watch on you code, I see many bracet where they not belong... 看一下您的代码,我看到许多bracet不属于它们的地方...

## 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]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM