-
-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
globalVar / routeEnhancers #848
Comments
And what should I change? |
If I knew that, I would suggest it to you :) |
nothing I can do within EXT:news, I am closing the issue |
See https://forge.typo3.org/issues/88252 But i looks like things like Condtions for other Extensions still working. TYPO3 9.5.9 |
Trying to get this to work again:
Tried something like this without any success.
Somebody able to help? |
since this issue was closed already, stackoverflow might be a better place to get an answer? |
Google brings me here, so no. For anybody interested, take a look here: Spoiler: it's not possible out of the box. |
[request.getQueryParams()['tx_news_pi1']['preview'] > 0] OR [request.getQueryParams()['tx_news_pi1']['news'] > 0] does it work? |
i have tested it and should actually work |
see also https://forge.typo3.org/issues/89176 |
@georgringer @xerc See #1216 |
Sorry for posting in closed thread. I was looking for a solution and came here. I didn't find it in this thread, but I figured it out so I'm posting a solution. Maybe somebody still needs this or will land here like me. This is the right syntax how to get array values using getPageArguments: |
@w010 Or use |
or shorter |
Yes but then I needed it using explicitly getPageArguments for some reasons.
[Update, just for archiving] Actually, It turned that it does not, It spams error log when that argument is not specified. |
Exactly. This is the reason I introduced the traverse operation. It allows to traverse any array (this includes of course GET/POST). |
When I use routeEnhancers, I no longer have access to:
[globalVar = GP: tx_news_pi1|news > 0]
and must use:
[request.getQueryParams () ['tx_news_pi1'] ['news']> 0]
If I use Insertdata to generate a variable(TS) with GP: tx_news_pi1|news, it will not be null.
Thanks
The text was updated successfully, but these errors were encountered: