[TYPO3-dev] 6.2 Extbase Issue with Fluid link.action and Backend Plugin
Alexander Bigga
linux at bigga.de
Thu Apr 24 08:58:56 CEST 2014
Hi Till,
with the new PropertyManager, there are plenty of things to rewrite.
E.g. the @dontvalidate annotation is now @ignorevalidation.
Isn't it possible to disable it in 6.2 anymore? I'm still in 4.7 and the
"rewrittenPropertyMapper" is usually disabled here.
In slub_events, I rewrote the code and activated it:
plugin.tx_slubevents {
features {
# uncomment the following line to enable the new Property Mapper.
rewrittenPropertyMapper = 1
}
}
What's your features.rewrittenPropertyMapper setting?
Best regards,
Alexander
Am 23.04.2014 22:54, schrieb g4-lisz at tonarchiv.ch:
> I still couldn't get it to work.
>
> It must be some issue with the new PropertyManager.
>
> The error is printed in/Mvc/Controller/ActionController.php if
> $referringRequest = $this->request->getReferringRequest() is NULL.
>
> When does this happen?
>
> My object "klinik" is valid, because it does work with other actions...
>
> Calling an action in TS using bootstrap also stopped working:
>
> 5 = LOAD_REGISTER
> 5.clinicName {
> cObject = USER
> cObject {
> userFunc = tx_extbase_core_bootstrap->run
> pluginName = Fe_spitalinfo
> extensionName = Hplusinfo
> pluginKey = hplusinfo
> controller = Klinik
> action = headerName
> switchableControllerActions {
> Klinik {
> 1 = headerName
> }
> }
> }
>
> This worked with 4.6. Now I also get the error "An error occurred while
> trying to call
> Tx_Hplusinfo_Controller_KlinikController->headerNameAction()".
> For some reason the PropertyManager doesn't accept the "klinik" object
> as an argument any more. The URL looks like this:
> index.php?id=27&tx_hplusinfo_fe_spitalinfo[klinik]=4
>
> I have several plugins on the same page. All of them need "klinik" as
> argument. Could it be a problem if I have two plugins with the same
> controller but different default actions on the same page?
>
> But, again, this worked with T3 4.6
>
> I have no idea what to do...
>
> Any help would be much appreciated.
>
> Till
>
>
>
> On 04/22/2014 05:09 PM, g4-lisz at tonarchiv.ch wrote:
>> He there,
>>
>> I have an issue with a extbase backend plugin, which had been working
>> under 4.6.
>>
>> My fluid backend List template shows a edit link like this:
>>
>> <f:for each="{kliniks}" as="klinik">
>> ....
>> <f:link.action action="edit" arguments="{klinik: klinik}">Edit</f:link.action>
>> </f:for>
>>
>> So there's nothing special.
>>
>> When I try do edit the "klinik" object, I get this error:
>> "An error occurred while trying to call
>> Tx_Hplusinfo_Controller_KlinikController->editAction()."
>>
>> Nothing else, so I have no idea where to start with debugging.
>>
>> Here is the editAction:
>> /**
>> * Displays a form for editing an existing Klinik
>> *
>> * @param Tx_Hplusinfo_Domain_Model_Klinik $klinik the Klinik to display
>> * @return string A form to edit a Klinik
>> */
>> public function editAction(Tx_Hplusinfo_Domain_Model_Klinik $klinik) {
>> $this->view->assign('klinik', $klinik);
>> }
>>
>> When I put function editAction(... klinik = NULL) {...} then there is no
>> error and I get a empty form. So there must by something wrong with
>> passing the "klinik" object to the action.
>> Is there a change in the extbase / fluid API for backend plugins?
>>
>> Cheers,
>> Till
>>
>>
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list