Project

General

Profile

Actions

Bug #22223

closed

Conditions in PageTSconfig does not work!

Added by Claus Harup over 14 years ago. Updated over 14 years ago.

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

0%

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

Description

I have taken the following from http://typo3.org/documentation/document-library/core-documentation/doc_core_tsconfig/4.3.2/view/1/2/ and it does not seem to work:

[treeLevel = 1]
TCEFORM.tt_content.section_frame.disabled = 1
[GLOBAL]

And the following:

[globalVar = GP:id = 10]
TCEFORM.pages.nav_title.disabled = 1
[global]

does not work either, although I can see the configuration is set in Info -> Page TSconfig -> TCEFORM. on page id 10

Strange!!!!

It gets even more strange when I add the same configuration through extTables.php (minus the condition) it works!!!!!

(issue imported from #M13720)

Actions #1

Updated by Susanne Moog over 14 years ago

The first one works, you just have to pay attention that the treeLevel condition starts counting at 1 not at 0, so perhaps you just looked at the wrong level.

Actions #2

Updated by Claus Harup over 14 years ago

Hi Susanne

I still cant get it working - I added the configuration to the page set to rootLevel and checked 3 levels down - not working!

Any ideas?

Actions #3

Updated by Claus Harup over 14 years ago

Hi again

I solved it :-)

Can you give me a hint for configuration for special doktypes though.
I would like to remove some items of tt_content when editing certain doktypes.

Actions #4

Updated by Benni Mack over 14 years ago

Hey Claus,

what you're looking for would be

TCEFORM.tt_content.text.header.disabled = 1

where text is the CType field. Thus, the line above says that the header field will not be shown if you select a Content Element with the type "text".

Please, if you have further question, use the mailing lists, as you get quicker help for such problems, or have a look at the documentation.

Actions

Also available in: Atom PDF