我想创建一个从模板到 pageType 的链接,用于 iCal 下载:
<f:link.action pageType="730" arguments="{event: event}" target="_blank" title="bla">iCal Download</f:link.action>
在打字稿中
tx_myext_icalendar = PAGE
tx_myext_icalendar {
typeNum = 730
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
metaCharset = utf-8
additionalHeaders = Content-Type:text/calendar;charset=utf-8
disablePrefixComment = 1
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
vendorName = Me
extensionName = SiteMe
pluginName = Events
switchableControllerActions {
Icalevent {
1 = iCalendar
}
}
}
}
在 IcalleventController 中的 iCalendarAction 中,我从未收到过参数。无论我在那里输入什么,不是通过参数,也不是通过 $this->request->getArguments()
我想我需要调整打字稿。欢迎任何帮助。