문제

I can disable fields in the Page TS Config depending on the selected content type. For example:

TCEFORM.tt_content.header.types.gridelements_pi1.disabled = 1

When I try to set a default value for a specific content type this does not work:

TCAdefaults.tt_content.header_layout.types.gridelements_pi1 = 100

Does anybody know how to achive, settings a default value for a specific page type?

도움이 되었습니까?

해결책

It seems not possible to set the default value for a specific content element. PageTS reference doesn't mention such an option.

It is possible to manipulate the options array to some extent: See here for possible actions: http://docs.typo3.org/TYPO3/TSconfigReference/PageTsconfig/TCEform/Index.html#pagetceformconfobj

You could experiment with the option itemsProcFunc but I have no idea if it'S useful.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top