[Typo3] front page - one template, all other pages - another template?

Claus Faber claus.faber at attac.at
Wed Jun 29 20:19:02 CEST 2005


Hi Vlatko,

it does not work directly as typoscript code supports conditions though, but _not_ the condition [pid=<something>] (pity, though).

Try the following, we did this and it works:

1) set up the root template to display correctly the _other_ pages (your start page should have the wrong layout now).

2) make a first level page (like all the other first level pages), but set it as "not in menu" in the page header (for not getting it in any HMENU item, if you have it). name it the way you would name your startpage ("home" maybe).

3) With an extention template, set up this page as your start page. So it should look different than the others, and as you intended your start page.

4) Now comes the trick: the start page is _not_ your root page, so how can people access it when they surf to http://yoursite.com ? You go to the actual root page, edit the page header and change the type to "shortcut". As destination, you enter your desired start page.

The result: Whenever someone accesses the start page, he/she is redirected to the made-up start page.

In case you define a HMENU item for the start page, make sure to have the correct starting point (i.e. root page), as your start page (on the wrong place) probably has no subpages.

- Claus Faber (attac-austria)

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110129331/
					



More information about the TYPO3-english mailing list