[TYPO3-mvc] ajax plugin storagePid

Stefan Isak stefanisak at googlemail.com
Tue Aug 10 23:23:28 CEST 2010


Hey,

The problem is that your plugin settings (e.g. FlexForm values) are not accessible from within your ajaxCall.
So you had to define your storagePid with some additional typoscript.

Assuming you have a second typeNum defined to handle your Ajax Requests, this example may help you:

myAjax = PAGE
myAjax {
       config {
               disableAllHeaderCode = 1
               xhtml_cleaning = 0
	       debug = 0
               admPanel = 0
	       additionalHeaders = Content-type:application/x-www-form-urlencoded; charset=UTF-8
       }

       typeNum = 123456
       10 = COA_INT
       10 {
               10 = USER_INT
               10 {
                       userFunc = tx_extbase_dispatcher->dispatch
                       pluginName = Pi1
                       extensionName = myextension
                       switchableControllerActions {
                               1.controller = MyController
                               1.actions = index
                       }
                       persistence.storagePid = 123     
               }
       }
}

Cheers
Stefan

On 04.09.2010, at 16:04, hannes wrote:

> Hallo,
> I have following problem: I have configured a new extbase plugin which is called by an ajax request.
> This request should return some data which i get from the repository. The problem is that the repository
> dowsn't find any datasets, which i defined in the backend.
> I suggest that the storagepid is not set correctly, but I don't know how to set it for this plugin?
> 
> I would be thankful for every help,
> Mfg Hannes
> _______________________________________________
> 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