I have a small extension with a custom content element. Having a list and detail view.
Before i configured the route enhancers i had a url like this.
https://www.domain.de/index.php?id=9&tx_gfseminare_[uid]=1&tx_gfseminare_[action]=show&tx_gfseminare_[controller]=Standard
Here i could access the url parameters easily with
data = GP:tx_gfseminare_|uid
After the setup of the routeenhancer the url looks like following.
https://www.domain.de/personal-coaching/workshops/ipsum-dolor-sit-amet-consectetuer-adipiscing-elit-1
routeEnhancers:
GfSeminare:
type: Extbase
extension: GfSeminare
plugin: ''
routes:
- routePath: '{titel}'
_controller: 'Standard::show'
_arguments:
titel: 'seminar'
aspects:
titel:
type: PersistedAliasMapper
tableName: 'tx_gfseminare_kurse'
routeFieldName: 'tx_gfseminare_slug'
But i can not access the url-parameters anymore.
How can i access GET/POST-Parameters within typoscript?
Thanks in advance Niels
UPDATE:
I tried following with no result:
GP:tx_myext_uid,GP:tx_myext_[uid],GP:tx_myext_seminar,GP:tx_myext_[seminar],GP:tx_myext_|seminar,GP:tx_myext_|[seminar],GP:tx_myext_|uid,GP:tx_myext|uid,GP:tx_myext|seminar. Also combination with or without tx_ and so on. I never get any output
UPDATE (27.01.2020):
If i set plugin: Show in the route enhancer i get an output if i browse a old beautified url like https://mydomain.de/personal-coaching/workshops/ipsum-dolor-sit-amet-consectetuer-adipiscing-elit-1 with GP:tx_gfseminare_|seminar.
But now the urls get not beautified! I get normal URLs with parameters https://mydomain.de/personal-coaching/workshops?tx_gfseminare_%5Baction%5D=show&tx_gfseminare_%5Bcontroller%5D=Standard&tx_gfseminare_%5Bseminar%5D=3&cHash=9fd0c7039c8cfc3bf14da57f45791fdb
In summary:
- With "plugin: Show" -> result(browse an old beautified url) but no beautified urls anymore (normal parameters appended at url)
- With "plugin: ''" -> beautified urls but no result anymore
Also tried plugin: Pi1 with no result.
I´m totally frustrated because with TYPO3 8.x this was a 5 minute thing. Now i tried many many hours with no result for such an easy thing.
Also the manual describe many variants but no variant with an easy content element (where i have an reduced extension configuration). Maybe this is the problem. I don´t know. ATM i deactivated the route enhancer, have url with parameters but it works.
Hopefully anyone has an idea which works.
data = GP:tx_myext_uid
ordata = GP:tx_myext_[uid]
? - TYPO3UA