[BUGFIX] List & Detail view on same page 24/31924/2
authorJochem de Groot <jochemdegroot@roquin.nl>
Thu, 31 Jul 2014 15:25:32 +0000 (17:25 +0200)
committerJochem de Groot <jochemdegroot@roquin.nl>
Thu, 31 Jul 2014 15:40:21 +0000 (17:40 +0200)
Modified LinkViewHelper so that links to event detail will use Event as controller and eventDetail as action (instead of News and detail).

Resolves: #60531
Releases: 3.0
Change-Id: I7c8137f5631e8f1d3cb81d715bfb2b8eb61ffd58
Reviewed-on: http://review.typo3.org/31924
Reviewed-by: Jochem de Groot <jochemdegroot@roquin.nl>
Tested-by: Jochem de Groot <jochemdegroot@roquin.nl>
Classes/ViewHelpers/LinkViewHelper.php

index ff3b21a..cb48a61 100644 (file)
@@ -41,6 +41,10 @@ class Tx_RoqNewsevent_ViewHelpers_LinkViewHelper extends Tx_News_ViewHelpers_Lin
                 break;
             // normal news record
             default:
+
+                $tsSettings['link']['skipControllerAndAction'] = 1;
+                $configuration['additionalParams'] .= '&tx_news_pi1[controller]=Event&tx_news_pi1[action]=eventDetail';
+
                 if($settings['event']['detailPid']) {
                     $tsSettings['defaultDetailPid'] = $settings['event']['detailPid'];
                     $tsSettings['detailPidDetermination'] = 'default';