TYPO3:是否可以在项目符号列表组件的描述中包含链接?

TYPO3: Is it possible to include links in a description with the bullets list component?

使用 Typo3 8.7.19,我被要求在一个页面中包含一组 link 到 documents/videos,所以我想到了一个描述列表。每个标题都是 link(s) 的标题,而描述是应呈现为

的实际 links
<a href="http://something.linky" rel="noopener noreferrer">http://something.linky</a>

所以所有的东西都应该变成这样

<dl>
    <dt>A title for this link</dt>
    <dd><a href="http://something.linky" rel="noopener noreferrer">http://something.linky</a></dd>
</dl>

Looking at the documentation,在这个组件上应该把每个描述都写成

Term 1|Description 1
Term 2|Description 2
Term 3|Description 3

但我不确定是否有任何方法可以使用此模式包含 links,或者我是否必须求助于使用默认文本组件。

当您编辑流体模板时,这是可能的。

首先外包默认的流体模板。

然后编辑此模板:

Partials/Bullets/Type-2.html

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:ce="http://typo3.org/ns/TYPO3/CMS/FluidStyledContent/ViewHelpers" data- namespace-typo3-fluid="true">
 <f:if condition="{bullets}">
   <dl class="ce-bullets">
     <f:for each="{bullets}" as="definitionListItem">
       <f:for each="{definitionListItem}" as="termDescription" iteration="termDescriptionIterator">
        <f:if condition="{termDescriptionIterator.isFirst}">
            <f:then>
                <dt>{termDescription}</dt>
            </f:then>
            <f:else>
                <dd>{termDescription}</dd>
            </f:else>
        </f:if>
     </f:for>
   </f:for>
  </dl>
 </f:if>
</html>

只需添加一个

<f:format.html>{termDescription}</f:format.html>

大约

{termDescription}

那你就可以在描述列表里写这个了

Term1 | <LINK 1>Your description</LINK>
Term2 | <a href="http://something.linky" rel="noopener noreferrer">http://something.linky</a>