【问题标题】:TYPO3 9.5.0 - pageUid of f:link.page not reading t3://page?uid=80TYPO3 9.5.0 - f:link.page 的 pageUid 未读取 t3://page?uid=80
【发布时间】:2018-10-17 10:16:40
【问题描述】:

我有一个 TYPO3 9.5.0LTS 并使用引导程序包主题。似乎一切正常......除了......当我向轮播项目添加链接(内部或外部)时......没有任何东西被渲染。其他元素都很好。

我查看了 CalltoAction.html ...,发现 f:link.page 的 pageUid 没有读取 t3://page?uid=80。

当我 {records} ... 我得到链接 => 't3://page?uid=80' (16 chars)

当我在 CalltoAction.html 中测试时:

<p>{item.data.link}</p>
<f:if condition="{item.data.link}">
    <f:link.page pageUid="1" class="carousel-item-button btn btn-primary" additionalAttributes="{draggable:'false'}">
        <f:if condition="{item.data.button_text}">
            <f:then>
                <span>{item.data.button_text}</span>
            </f:then>
            <f:else>
                <span><f:translate key="readmore" extensionName="bootstrap_package" /></span>
            </f:else>
        </f:if>
    </f:link.page>
</f:if>
<f:if condition="{item.data.link}">
    <f:link.page pageUid="{item.data.link}" class="carousel-item-button btn btn-primary" additionalAttributes="{draggable:'false'}">
        <f:if condition="{item.data.button_text}">
            <f:then>
                <span>{item.data.button_text}</span>
            </f:then>
            <f:else>
                <span><f:translate key="readmore" extensionName="bootstrap_package" /></span>
            </f:else>
        </f:if>
    </f:link.page>
</f:if>

我在 FE 中得到以下结果:

<p>t3://page?uid=80</p>
<a draggable="false" class="carousel-item-button btn btn-primary" href="/"><span>Read more</span></a>
<span>Read more</span>

所以 f:link.page 的 pageUid 没有读取 t3://page?uid=80

我该如何解决这个问题?

【问题讨论】:

    标签: typo3 typo3-9.x


    【解决方案1】:

    f:link.page-VH 在参数pageUid 中需要一个整数 (uid)。

    t3://page?uid=80 顺便说一句,不是整数而是字符串。 f:link.typo3link-VH 可以处理的特殊字符串

    【讨论】:

    猜你喜欢
    • 2019-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-09
    • 1970-01-01
    • 1970-01-01
    • 2014-01-25
    相关资源
    最近更新 更多