Zum Inhalt springen

Injecting Get Parameter via typoscript into extbase plugin

Erstellt am 1. Juli 2012 · 1 Antwort · letzte Antwort am 3. Juli 2012

Tags: Frage

to3i ·

Hi,

I was trying to access get paramter information in typoscript and access it in extbase. So far without success.

This is my typoscript:

plugin.tx_mylittleextensionkey.widgets {
    myWidget = USER
    myWidget {
        userFunc = tx_extbase_core_bootstrap->run
        pluginName = Mylittleextensionpluginkey
        extensionName = Mylittleextensionkey
        controller = Mylittleextensiondataentry
        action = list
        switchableControllerActions {
                Mylittleextensiondataentry {
                            1 = list
                }
        }

        settings =< plugin.tx_mylittleextensionkey.settings
        persistence =< plugin.tx_mylittleextensionkey.persistence
        persistence.storagePid = 78
        view =< plugin.tx_mylittleextensionkey.view

        settings {
                recordId = 3
                category = TEXT
                category.data = GPvar:cat
        }
       }
}

I was trying to invoke it as follows:
http://localhost:8181/typo3/index.php?id=76&cat=19

I want to use the get variable cat in several plugins, so I am not using $this->arguments[cat] on php side. Therefore I do not want to use
http://localhost:8181/typo3/index.php?id=76&Mylittleextensionkey[cat]=19.

Any hints?

Thanks for your support in advance,

Tobi