Search code examples
typo3typo3-6.2.xtypo3-extensions

TYPO3 typeNum arguments


I want to make a link from a template to a pageType, made for iCal download:

<f:link.action pageType="730" arguments="{event: event}" target="_blank" title="bla">iCal Download</f:link.action>

In typoscript

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
        }
    }
}
}

In my iCalendarAction in the IcalleventController I never receive the arguments. No matter what I type there, not by parameter, neither by $this->request->getArguments()

I guess I need to adjust the typoscript. Any help would be welcome.


Solution

  • Thanks for your comments. Indeed the extensionname, pluginname, action, controller were needed in the link.action.

    The thing is that the config extension which holds this, uses a custom extension that defines things like custom content elements. (I did not create this, so I got confused by it). Therefore the generated link was not the same (for extensionname, pluginname, action and controller) as defined in the pagetype. By explicitly defining them in the html template (link action), any argument is now received in the ical template.