[TYPO3] website structure / menu
JoH asenau
info at cybercraft.de
Thu Sep 6 01:40:42 CEST 2007
> So what I was thinking was a structure like this
>
> -> B
> /
> root -> A -> C
> \
> -> D
>
> with root having the common template for B,C,D and
> A an extra import.
> But my problem is that that way A inherits the template
> from root. On the other hand A has to be the father of
> B,C,D since it has to list its children..
>
> I'm sure there is a way out of this, like having A extra
> and letting it generate a menu of non children, but I could
> not find out how to do that.
Usually this is not about using TV or not.
It's a simple "condition" that can be setup using TypoScript regardless of
the templating approach:
page = PAGE
page {
# some default layout here
}
[treeLevel = 0]
page {
# do something in addition
# for the parent page
}
[else]
page {
# do something in addition
# for the child pages
}
[global]
Of course you can check for other treeLevels as well.
This way you got only one template setup at the root page.
Nothing to inherit. No redundancy.
And if you still have to change something for a very special page, it can be
done using an "extension template" for this one page.
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list