1
votes

I have typo3 8.7.16 .

I need to display on the page with id 3 the content in a format different from the rest of the pages. For this I use glovalvar, but this condition works on all pages, not only on the page with id 3

[globalVar = TSFE:id = 3]
    MAIN_WRAP >
    MAIN_WRAP = COA
    MAIN_WRAP{
      10 = CONTENT
      10{
        table = tt_content
        select.where = colPos = 0
      }


    }
    [global]
2

2 Answers

1
votes

I assume that you make a mistake in your expectations, I see the following optional faults:

  • The code you have above the condition but which is not shown here could seem to produce the same result as the code inside the condition. I write here intentionally seem as it's quite possible that the produced html is different but on the website it's currently looking the same.
  • The code in the condition might not be triggered at all as the object path might be wrong. Perhaps it must be like this or something similar:

    page.10.subparts.MAIN_WRAP >
    page.10.subparts.MAIN_WRAP = COA
    page.10.subparts.MAIN_WRAP {
    ...
    }

There still might be other reasons but if you have checked the mentioned reasons you should edit your question to show the context of your code in the question.

-1
votes

your TS looks not so bad. instead of [global] try [end]

http://www.thefox.ch/extdev/typo3/typoscript/conditions/