【问题标题】:Add Lib Content to Main Section TYPO3 6.2 Typoscript将 Lib 内容添加到主要部分 TYPO3 6.2 Typoscript
【发布时间】:2017-08-08 22:58:24
【问题描述】:

有人可以帮我通过打字稿在页面的主要部分添加一个库

TS:

[globalVar = TSFE:id = 314]
includeLibs.voucher = fileadmin/php/shop_init.php
lib.phpscript = USER
lib.phpscript.userFunc = voucher->init
[global]

模板:

<div class="main-section">
        <f:render section="Main" />

       <f:cObject typoscriptObjectPath="lib.phpscript" />  
    </div>

现在内容显示在主要部分之后,但我需要在主要部分:/

这个的ts代码是什么??

提前谢谢!

【问题讨论】:

    标签: typo3 typoscript


    【解决方案1】:

    你必须添加

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

    在标签之间的模板中

    <f:section name="main"></f:section>
    

    您可以在文件夹中找到模板:

    your_extension\Resources\Private\Templates\
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多