Nesting Doctypes
# help-with-umbraco
d
What are the consequences of nesting doctypes? e.g. I would like Article Items nested below Articles Main. Also I can't seem to nest them anyway I get this error. https://cdn.discordapp.com/attachments/1248262325363015680/1248262325928988746/msedge_RTSY2mjYUs.mp4?ex=66630662&is=6661b4e2&hm=3a22386468e81d45d93d138c5fb548191535b2137e279eb1723a27003c3f7bae&
m
Nesting you inhiert all the properties from the ancestors
d
Ooh that's interesting. I don't think I have ever nested doctypes but I do use compositions a lot.
m
It was the only way to do that before compositions came about 😄
Personally, I use compositions for "things" I want to re-use, like a default grid; and I use nesting to have "types" of things, like a variant of a landing page.
d
Oh gosh now that is starting to sound familiar
m
I completely forgot you could still do this!
a
Im curious if anyone actually uses the inherit function.. Everytime I used it, it bit me in the back later 😛
c
Same! Every single time 🤣
o
Personally, I only use inheritance/nesting to make a variant of a DocType, (e.g. a
NewsLandingPage
under the normal
LandingPage
) that way I can use a different icon colour, creation rules and differ the available child pages.