[TYPO3-mvc] Extbase project with complex database/repository structure
Gabriel Kaufmann | Typoworx
info at typoworx.de
Tue Aug 28 17:52:13 CEST 2012
Hello,
finally I've got it working... In my first draft of the extension I was
trying to use pi_flexform to have a flexible configuration. While
debugging the recent problem, I disabled the pi_flexform. Today I
figured out, that in tt_content database, the pi_flexform still was present.
Only a manual database update on tt_content for the given tt-content Uid
cleaned-up the mess!
This snipplet in pi_flexform.xml was the primary culprit:
> <switchableControllerActions>
> <TCEforms>
> <onChange>reload</onChange>
> <label>LLL:EXT:dg_test/Resources/Private/Language/locallang.xml:tx_dgtest_flexforms.bezeichner</label>
> <config>
> <type>select</type>
> <items>
> <numIndex index="0">
> <numIndex index="0">Product Selector</numIndex>
> <numIndex
> index="1">/Products->list;Products->show;Products->edit;Products->update/</numIndex>
> </numIndex>
> <numIndex index="1">
> <numIndex index="0">Booking System</numIndex>
> <numIndex
> index="1">Ressources->list;Ressources->show;Ressources->edit;Ressources->update</numIndex>
> </numIndex>
> </items>
> </config>
> </TCEforms>
> </switchableControllerActions>
To make this working again I would have to repeat all Controlers that
have been defined in ext_localconf.php on configurePlugin.
For any reason the configurePlugin Setup will completly be ignored. Is
there any way to configure the View of a Plugin more flexible?
Is it possible to configure the items-array for
switchableControllerActions by an itemsProcFunc using PHP?
Best regards
Gabriel
Am 28.08.2012 07:45, schrieb Sebastian Schreiber:
> Hello Gabriel,
> i you like you can send me your current status of your extension via
> email at me at schreibersebastian.de
> I will have look at it.
>
>
>
> Am 27.08.2012 23:58, schrieb Gabriel Kaufmann | Typoworx:
>>
>> Just to make clear again what I am currently trying to do (just in
>> case it's mismatch).
>>
>> I have the Products Controller and a List.html for Products. Within
>> this template I would like to call:
>>
>> <f:link.action action="create" controller="Subscriptions"
>> arguments="{subscriptions : subscriptions}">
>>
>> This action of course does not belong to the Products-Controller, but
>> my newly created Subscriptions-Controller!
>>
>>
>>
>>
>> Am 27.08.2012 23:36, schrieb Gabriel Kaufmann | Typoworx:
>>>
>>> Hello Valentin,
>>>
>>> thanks for the suggestion. I already tried that. But it throws the
>>> same error as usual. I'm really annoyed by that error.
>>>
>>> Will I have to consider something into the target controler
>>> ("SubscriptionsController")?
>>>
>>> The createAction inside that controller currently looks like this:
>>>
>>>> /**
>>>> * action create
>>>> *
>>>> * @param Tx_TnmBundlebooking_Domain_Model_Subscriptions
>>>> * @return void
>>>> */
>>>> public function
>>>> createAction(Tx_TnmBundlebooking_Domain_Model_Subscriptions
>>>> $newSubscriptions = NULL) {
>>>> #...
>>>> }
>>>
>>> Or may I need to add the Product-Model like I've seen that in the
>>> Blog-Example Extension (as follows)?
>>>
>>>> /**
>>>> * action create
>>>> *
>>>> * * @param Tx_TnmBundlebooking_Domain_Model_Products*
>>>> * @param Tx_TnmBundlebooking_Domain_Model_Subscriptions
>>>> * @return void
>>>> */
>>>> public function
>>>> createAction(*Tx_TnmBundlebooking_Domain_Model_**_Products**$products*,
>>>> Tx_TnmBundlebooking_Domain_Model_Subscriptions $newSubscriptions =
>>>> NULL) {
>>>> #...
>>>> }
>>>
>>> Is there something missing in my ProductsController from which
>>> Lists.html this should take place? May there be something else that
>>> is missing by Extension-Builder, that I have to add manually?
>>>
>>>
>>>
>>> Am 27.08.2012 10:58, schrieb Valentin Zickner:
>>>> <f:link.action action="create" controller="Subscriptions"
>>>> arguments="{subscriptions : subscriptions}">
>>>
>>> _______________________________________________
>>> TYPO3-project-typo3v4mvc mailing list
>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>>
>>
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
>
More information about the TYPO3-project-typo3v4mvc
mailing list