bitpatroon/typo3_tca2

Allows additional functions like conditions to if in pageTSConfig.

Installs: 1 923

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:typo3-cms-extension

v1.0.1 2021-03-31 19:59 UTC

This package is auto-updated.

Last update: 2021-04-14 13:03:29 UTC


README

Allows additional function like conditions to if in pageTSConfig

##USAGE

###Example 1

Conditionally add a new item 123 (myItem) on tt_content.layout.

[userFunc = MyFunc(params)]
TCEFORM.tt_content.layout {
    addItems {
        123 = myItem
    }
}
[global]

can be rewritten into

TCEFORM.tt_content.layout {
    addItems {
        123 = myItem
        123.userFunc = MyFunc(params)
    }
}

###Example 2

Conditionally disable layout 1 on tt_content.

[userFunc = MyFunc(params)]
TCEFORM.tt_content.layout {
    disabled = 1
}
[global]

can be rewritten into

TCEFORM.tt_content.layout {
    disabled = 1
    disabled.userFunc = MyFunc(params)
}