Project

General

Profile

Actions

Bug #20974

closed

Conditions regarding type don't work

Added by Ben N over 14 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-08-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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...

Actions #2

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...

Actions #3

Updated by Ben N about 14 years ago

Okay, i'll check again this week on a fresh install...

Actions #4

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.

Actions

Also available in: Atom PDF