Discussion:
[TYPO3-english] CoolURI and sf_event_mgt
Robert Hafenried
2017-10-30 22:36:41 UTC
Permalink
Hi,

I create nice looking urls with the title of the event for the pages.

I have moved 'tx_sfeventmgt_pievent[controller]' and 'tx_sfeventmgt_pievent[action]' to <predefinedparts></predefinedparts>.

Now I have the problem that the download link for the calendar (ical) gets the same form as the page link. The download link is structured as follows:

tx_sfeventmgt_pievent[event]=XX tx_sfeventmgt_pievent[action]=icalDownload tx_sfeventmgt_pievent[controller]=Event

Is there any way to set a special rule for this particular link in CoolURI?
Thanks for every hint.

Robert
Mikel
2017-10-31 11:20:37 UTC
Permalink
Hi Robert,

if you have several controller actions to handle, you can’t set them as a predefined part.
Set the action to the uriparts. Or even better if you want to customize the path segment as a valuemap.

E.g.
<valuemaps>
<valuemap>
<parameter>tx_sfeventmgt_pievent[action]</parameter>
<value key="download">icalDownload</value>
<value key="detail">show</value>
</valuemap>
</valuemaps>
Mikel
Robert Hafenried
2017-10-31 21:15:35 UTC
Permalink
Perfect!

Thanks a lot. CoolURI is really a nice extension.

Regards
Robert

Loading...