Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3从另一个扩展获取内容_Typo3_Typoscript_Tt News - Fatal编程技术网

Typo3从另一个扩展获取内容

Typo3从另一个扩展获取内容,typo3,typoscript,tt-news,Typo3,Typoscript,Tt News,我有一个扩展名为“mbl_newsevent”,用于tt_新闻。newsevent ext有自己的TS,如果我启用它,它会在每个新闻上生成一个register按钮。现在newesevent ext生成一个按钮,其中包含一个包含当前tt_新闻id的url TS配置部分: plugin.tt_news.mbl_newsevent { registrationLink_typolink { title.data = LLL:EXT:mbl_newsevent/locallang

我有一个扩展名为“mbl_newsevent”,用于tt_新闻。newsevent ext有自己的TS,如果我启用它,它会在每个新闻上生成一个register按钮。现在newesevent ext生成一个按钮,其中包含一个包含当前tt_新闻id的url

TS配置部分:

plugin.tt_news.mbl_newsevent {
    registrationLink_typolink {
        title.data = LLL:EXT:mbl_newsevent/locallang.xml:registerLinkLabel
        parameter = {$powermail.plugin.pid}
        parameter.override.field = tx_mblnewsevent_regurl
        additionalParams.field = uid
        additionalParams.intval = 1
        additionalParams.wrap = &tx_powermail_pi1[eventUid]=|
            #this returns the correct ID of tt_news for example 99
    }
}
但是现在我需要在基本TS的另一个位置使用这个eventUid。我需要这个eventUid作为第二个菜单的参数

基本TS:

2 = TMENU
2 {
    wrap = <ul class="naviMainLevel2"> | </ul>

    NO {
        wrapItemAndSub = <li> | </li>
    }
    ACT = 1
    ACT {
        wrapItemAndSub = <li class="active"> | </li>                
            additionalParams.data = GP:tx_ttnews|tt_news
            additionalParams.intval = 1
            #Here is the part where i need the id from tt_news.mbl_newsevent
                #atm it returns &tx_events_pi1[newsUid]=0 correct id would be for example 99
                additionalParams.wrap = &tx_events_pi1[newsUid]=|
    }
    CUR = 1
    CUR < .ACT

}

那么,您可以使用通过GP:tx_ttnews|tt|u news定义的新闻的tx_events_pi1[newsud]=tt_news.mbl_news event?为什么不使用
additionalParams.stdWrap
&tx事件的附加换行符[newsud]=
temp.xyz = RECORDS
temp.xyz {
    tables = tt_news.mbl_newsevent 
    ...
}