[TYPO3-english] accessing GET-Parameters in fluid templates
Stephen Bungert
stephenbungert at yahoo.de
Wed Dec 5 16:50:16 CET 2012
As all you want to do is highlight the viewed news article in the article
list, you could also use JavaScript to check each list item, and if the
item's link href is the same as the current url give the item an extra class
so that you can style it differently.
Stephen.
"Nicolai Schirawski" <hinterindien at gmx.net> schrieb im Newsbeitrag
news:mailman.10822.1354721383.598.typo3-english at lists.typo3.org...
> 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