[TYPO3-english] accessing GET-Parameters in fluid templates

Nicolai Schirawski hinterindien at gmx.net
Wed Dec 5 16:29:41 CET 2012


Hi there,

I am searching for a possibility to access the GET-Parameters in my fluid template. 

What I managed so far: I extracted the GET-Parameter from URL via typoscript
temp = TEXT
temp.data = GP:tx_news_pi1|news

and could then successfully display this number in my template:
<f:cObject typoscriptObjectPath="path.to.ts" />

But this seems to lead nowhere. The number is just displayed. But I need to use it in some construction like: 
<f:if condition="{news.id} == {myGetParameter}">

Or am I on the wrong track? Is there some straightforward method to include a GET-Parameter into fluid templates?

Background: I have two ext:news-plugins on the same page, a list-view showing only the titles of the news, and a detail view. Now I want to highlight the list element that is shown in the detail view.


If someone has a hint for me, where to search, this would be very helpful

Thanks
Nicolai


More information about the TYPO3-english mailing list