[TYPO3-templavoila] How to determine the currently used template via TypoScript
John de Stigter
John.de.Stigter at bedrijvenweb.nl
Thu Aug 16 14:09:21 CEST 2007
> I have modified lib.stdheader.10.1 to be a graphical header.
> Furthermore, I've set Header 1 as default header.
> In one of my FCE I want to have lib.stdheader.10.1 a little
> bit different.
> So I'm going to try your hint with LOAD_REGISTER.
>
So you have a content item nested in a FCE and you want to modify the
output of that header?
You can do that pretty easy by placing this in your TypoScript template:
tt_content.templavoila_pi1 {
10 = LOAD_REGISTER
10.nestedItem = 1
30 = RESTORE_REGISTER
}
lib.stdheader.stdWrap.postCObject = TEXT
lib.stdheader.stdWrap.postCObject {
value = [HELLO WORLD]
if.isTrue.data = register:nestedItem
}
In this example the text "[HELLO WORLD]" will be added to the header if
the content item is nested within a FCE.
Cheerios,
RJ
More information about the TYPO3-project-templavoila
mailing list