Hallo,
ich möchte den Get-Parameter tx_commerce_pi1[catUid] auf leer prüfen.
In PHP würde das ja mit "" funktionieren. In TS funktioniert das leider nicht?
[globalVar = GP:tx_commerce_pi1[catUid] = "" ]
...
[global]
Hallo,
ich möchte den Get-Parameter tx_commerce_pi1[catUid] auf leer prüfen.
In PHP würde das ja mit "" funktionieren. In TS funktioniert das leider nicht?
[globalVar = GP:tx_commerce_pi1[catUid] = "" ]
...
[global]
Wenn du eine Variable mit Array hast (tx_commerce_pi1[catUid])
dann muss das so benutzt werden:
[globalVar = GP:tx_commerce_pi1|catUid = "" ]
[global]
[globalVar = GP:tx_commerce_pi1|catUid = ]
...
[global]
so funktionierts...
Oder
[globalVar = GP:tx_commerce_pi1|catUid > 0]
temp.x = TEXT
[else]
temp.x = TEXT
temp.x.value = juhu
[global]
Hallo
Ich habe ungefähr das Gleiche aber nicht als array. Meine URL ist so index.php?id=9&L=0&producecategory=1
und mein TS ist
[globalVar = GP:producecategory > 0]
baseWhereClause = COA
baseWhereClause{
10 = TEXT
10.data = GP:producecategory
10.wrap = tx_ososeamaerketplace_domain_model_producecategory.uid = |
}
[global]
wenn ich aber ohne producecategory also index.php?id=9&L=0 abfrage bekomme ich einen Oops Error und in der SQL steht strotzdem die BaseWhereClause (pt_extlist function)
Ohne globalVar:
baseWhereClause = COA
baseWhereClause{
10 = TEXT
10.data = GProducecategory
10.wrap = tx_ososeamaerketplace_domain_model_producecategory.uid = |
10.if.isTrue.data = GP:Producecategory
}