[TYPO3-mvc] URLs for Several Content Elements of the same Extension with Extbase on one Page
Steffen Ritter
info at rs-websystems.de
Fri Jul 30 07:34:05 CEST 2010
Am 29.07.2010 14:57, schrieb David Bruchmann:
> ----- Ursprüngliche Nachricht -----
> Von: Steffen Ritter <info at rs-websystems.de>
> Gesendet: Donnerstag, 29. Juli 2010 12:50:43
> An:
> CC:
> Betreff: Re: [TYPO3-mvc] URLs for Several Content Elements of the same
> Extension with Extbase on one Page
>
>> patch the dispatcher not say hey im pi1 pi2 etc but to set Plugin name
>> to: c{uid of the record}
>>
>
>
> Hi Steffen,
>
> thanks for the proposition.
> When I understand correct what you wrote you proposed this:
> cObj_uid[parameter]=value
Hey David,
Extbase "Urlbuilding" uses foolowing:
tx_ at controllerExtensionsName_@controllerPluginName
configuring your Plugin you do:
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY, <<-- controllerExtensionName
'Pi1', <<-- PluginName
....
);
The Plugin-Name is needed for initial-Configuration of the Framework.
But afterwards you may reset it (untested):
Tx_myExt_OwnDispatcher extends Tx_Extbase_Dispatcher {
public function getPreparedController($request) {
if(is_array($this->cObj->data)= {
$request->setPluginName('c' . $this->cObj->data['uid']);
}
return parent::getPreparedController($request);
}
}
regards
Steffen
More information about the TYPO3-project-typo3v4mvc
mailing list