Feature #33584

checkIF for each TypoScript content objects (cObjects)

Added by Michael Birchler over 7 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-02-01
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently the checkIf method is only for certain cObjects (HMENU, CASE, IMAGE, stdWrap)
valid, all other cObjects are ignored.

This behaviour makes no sense to me and the TypoScript code gets unnecessarily bloated.

Example:
  1. doesn't work
    10 = CONTENT
    10 {
    #ignored
    if.isTrue.data = GP:tx_ttnews|tt_news

table = tt_news
select {
}
renderObj = COA
renderObj {
10 = TEXT
10.field = title
}
}

works but code gets bloated
  1. works but code gets bloated
    10 = COA
    10 {
    10 = CONTENT
    10 {
    if.isTrue.data = GP:tx_ttnews|tt_news

table = tt_news
select {
}
renderObj = COA
renderObj {
10 = TEXT
10.field = title
}
}
}

Related issues

Duplicated by TYPO3 Core - Bug #63342: stdWrap.if rendered also when negative Closed 2014-11-26

History

#1 Updated by Michael Birchler over 7 years ago

A clean example:

10 = CONTENT
10 {
        #ignored
        if.isTrue.data = GP:tx_ttnews|tt_news

        table = tt_news
        select {

        }
        renderObj = COA
        renderObj {
                10 = TEXT
                10.field = title
        }
}

10 = COA
10 {
        #works
        if.isTrue.data = GP:tx_ttnews|tt_news

        10 = CONTENT
        10 {

                table = tt_news
                select {

                }
                renderObj = COA
                renderObj {
                        10 = TEXT
                        10.field = title
                }
        }
}

#2 Updated by Alexander Opitz over 4 years ago

  • Status changed from New to Needs Feedback

Hi,

does the problem still exists within newer versions of TYPO3 CMS (6.2.9)?

#3 Updated by Gerrit Code Review over 4 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36817

#4 Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36817

#5 Updated by Gerrit Code Review over 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36817

#6 Updated by Mathias Schreiber over 3 years ago

  • Status changed from Under Review to Closed

Also available in: Atom PDF