Typo3自定义扩展列表视图BE模板未加载标头

时间:2018-08-13 10:15:24

标签: typo3 typo3-8.x typo3-extensions

我使用创建了两个扩展 Extension Builder on Typo3 8.7.17

由于某些原因,在加载一个带有概述和头文件的扩展BE页面ddl时(例如,bootstrap / CSS等),但是在另一个模块上,仅加载了扩展视图的代码,而没有Bootstrap / CSS / jQuery等文件。

任何人都有想法

Good Page

Bad Page

上市代码如下?

<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />

This Template is responsible for creating a table of domain objects.

If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
  Resources:
    Private:
      Templates:
        List.html: keep

Otherwise your changes will be overwritten the next time you save the extension in the extension builder
<f:section name="content">
    Listing

    <f:for each="{requests}" as="request">
        <div>Stuff</div>
    </f:for>
</f:section>

1 个答案:

答案 0 :(得分:1)

您是否使用Fluid的后端viewhelper,在这种情况下使用f:be.pageRendererf:be.container viewhelpers?

PageRenderer:https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Be/PageRenderer.html 容器:https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Be/Container.html