Bug #20974
closedConditions regarding type don't work
0%
Description
This condition:
[globalVar = GP:type=X]
has no impact in Frontend. In the TSOB it reflects changes correctly.
Probably related: config.linkVars = type has no effect either when manually setting type=X in the URL (meaning the links still point to type=0)
To clarify my situation, i have multiple rendertypes which i configured sth. like this:
config { global config }
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
page {}
rendertypeX = PAGE
rendertypeX.typeNum = X
rendertypeX.10.childTemplate = ###WHATEVER###
rendertypeX{}
I need the conditions to fill the TV-childtemplates with type-dependent TS-Objects like this:
lib.navMain < whatever.ts
[globalVar = GP:type=1]
lib.navMain >
lib.navMain < another.ts
[end]
And so on.
(issue imported from #M15406)
Updated by Ben N over 14 years ago
Most simplified testcase:
page = PAGE
page {
typeNum = 0
10 = TEXT
10.value = page with type0
}
page2 = PAGE
page2 < page
page2 {
typeNum = 1
10.value = page2 with type1
}
[globalVar = GP:type=0]
page.20 = TEXT
page.20.value = Only visible for type0
[global]
[globalVar = GP:type=1]
page2.20 = TEXT
page2.20.value = Only visible for type1
[global]
If you set conditions in TSOB everythings fine. Frontend ingnores condition.
Please note that the above code DOES WORK for TYPO3 Version 4.3.4 but NOT for TYPO3 4.4.1.
I assume the new compare-options for conditions broke this...
Updated by Michel Tremblay about 14 years ago
Cannot reproduce on TYPO3 4.4.1 and trunk versions, using the testcase provided. Everything seems ok...
Updated by Ben N about 14 years ago
Okay, i'll check again this week on a fresh install...
Updated by Dmitry Dulepov about 13 years ago
- Category deleted (
Communication) - Status changed from Needs Feedback to Closed
- Target version deleted (
0)
No feedback provided within 90 days. Closing the issue.