[TYPO3] Templavoila: switching DS/TO on a page

Dmitry Dulepov dmitry at typo3.org
Mon Jul 2 15:26:43 CEST 2007


Hi!

Rino Razzi wrote:
> I have a problem about using different DS and TO on the same pagetree.
> I'me using typo3 4.1.1 and templavoila extension.

Good. Next time, please, post to templavoila list :)

> I'm making a double versione web site: one normal version and one 
> accessible version.
> The default access at the site is to the normal version. There you find 
> a link to accessible version.
> The accessible version shows the same content the normal version does 
> (the pagetree is the same) but using a completely different layout.
> So, the accessible version sould use different TS and TO and I have made 
> two DS and TO ("Normal [Template]" / "Normal [TO]" and "Accessible 
> [Template]"/ "Accessible [TO]" ).

You should have one DS and two TOs. There is no need to have extra DS.

> I thought to use a variable in the URL (Let's say "A" for "Accessible"), 
> checking the variable with conditions (like this: [globalVar = GP:A = 
> 1]) and switching DS and TO defined on the root page of the site from 
> "Normal" to "Accessible" or from "Accessible" to "Normal".
> My problem is here: how do I change DS and TO of a page in TypoScript? 
> Is it possible?

No.

> Is there a different way to manage my problem?

Yes. If you do not have print version, you can make accessible template 
dependent on main but mark it as "print version". Than you can add 
"print=1" to url to display that alternative template.

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


More information about the TYPO3-english mailing list