[TYPO3-mvc] Backend Module and PID ?

S.Korth s.korth at dms-arts.com
Fri Aug 13 09:59:12 CEST 2010


Xavier Perseguers schrieb:
> Hi Sascha,
> 
>> first time building a backend module. An action gets called
>> and creates a new 'recipe' object (it's a recipe database).
>>
>> Problem:
>>
>> When using the recipe repository
>> ($this->recipeRepository->add($recipe);) the new object get saved with
>> PID '0', and not like i configured it.
>> (plugin.tx_recipes.persistence.storagePid = 4)
>>
>> Anyone knows how to handel that problem ?
> 
> Where did you put your TS? Because perhaps you did not notice that 
> TypoScript in templates is for frontend output...
> 
> Xavier


Hey Xavier,


this works:
plugin.tx_recipes.persistence.storagePid = 4
module.tx_recipes.persistence.storagePid = 4


this doesn't work:
plugin.tx_recipes.persistence.storagePid = 4


But i thought that the module setup do the job on its own (persistence < 
plugin.tx_recipes.persistence):

# Module configuration
module.tx_recipes {
	settings < plugin.tx_recipes.settings
	persistence < plugin.tx_recipes.persistence
	view < plugin.tx_recipes.view
	view {......}
}


Iam new to Module dev., but why does (persistence < 
plugin.tx_recipes.persistence) not work ? Its the same config like the 
example Blog.


Thanks,
Sascha


More information about the TYPO3-project-typo3v4mvc mailing list