lochmueller / calendarize

📆 Best TYPO3 Calendar ever 📆
http://typo3.org/extensions/repository/view/calendarize
74 stars 84 forks source link

Exception in redirect module #810

Open darthnorman opened 1 month ago

darthnorman commented 1 month ago

If you add a redirect, pointing to an event record, you get an error after saving:

You have to configure calendarize:defaultDetailPid to use the linkhandler function

I've added the configuration plugin.tx_calendarize.settings.defaultDetailPid = 65 (event detail pid) but to no success. There is no seperate linkhandler config, I use what's coming from calendarize. What am I missing?

lochmueller commented 1 month ago

What am I missing? I think nothing is missing. The reason could be, that I never test this function in the redirect module :-) The LinkHandling is for regular links. So there are two options: Disable the link option in redirect module or find another way to set the detailPid for these links. Any hints or tips? Feel free to contribute...

Regards, Tim

darthnorman commented 1 month ago

I think we found solution: Since calendarize includes the linkhandler tsconfig via ext_localconf, we simple remove that in our sitepackage by including a file that clears the linkhandler entry. By that it is not possible to use the linkhandler inside the redirect module.

We are adding it back later by including the tsconfig on the first page (not root page ID:0 basically). Thus, we are able to use linkhandler for any other link.