Discussion:
[TYPO3-english] FlUID and Get Paramater
Christian Tauscher
2014-07-30 14:00:12 UTC
Permalink
Hallo.

I'd like to reakt inside a fluid Template on a Get-Parameter.

<f:if condition="{myGetParameter} == 1">
...

It this possible?

Do you know a ViewHelper for this task?

Thank you for your help,


Christian.
bernd wilke
2014-07-30 15:13:41 UTC
Permalink
Post by Christian Tauscher
Hallo.
I'd like to reakt inside a fluid Template on a Get-Parameter.
<f:if condition="{myGetParameter} == 1">
...
It this possible?
Do you know a ViewHelper for this task?
you might use cObject with a matching typoscript to get the GPVar.

or, depending on your fluid-usage, you might define a fluid variable
like that.

page.10 = FLUIDTEMPLATE
page.10.variable {
mygpvar = TEXT
mygpvar.data = GP:mygetparam
}

bernd
--
http://www.pi-phi.de/cheatsheet.html
Christian Tauscher
2014-07-31 09:43:37 UTC
Permalink
Am 30.07.2014 um 17:13 schrieb bernd wilke:> page.10 = FLUIDTEMPLATE
Post by bernd wilke
page.10.variable {
mygpvar = TEXT
mygpvar.data = GP:mygetparam
}
Not as elegant as fluid itselfe but works!

Thankyou

Christian
Jigal van Hemert
2014-07-31 11:45:59 UTC
Permalink
Hi,
Post by Christian Tauscher
Not as elegant as fluid itselfe but works!
It's a good separation between data and presentation.
--
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org
Continue reading on narkive:
Loading...