[TYPO3-templavoila] How to determine the currently used template via TypoScript

Dmitry Dulepov [typo3] dmitry at typo3.org
Tue Aug 14 09:14:08 CEST 2007


Peter Kraume wrote:
> is it possible to determine the currently used template / FCE via
> TypoScript?
> I want to implement TypoScript depending on that.

Yes. There are fields named tx_templavoila_ds and tx_templavoila_to in 
"pages" and "tt_content" table. They contain uid field of DS and TO for 
pages and content correspondingly.

To find if tt_content record uses FCE, you just examine its CType field. 
If it is templavoila_pi1, than it is FCE.

-- 
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs


More information about the TYPO3-project-templavoila mailing list