Site structure
Version 4.x > Site structure > How do I get a page with a custom document type to display in the menu? View modes: 
User avatar
Member
Member
michielvoo - 5/12/2009 8:59:12 AM
   
How do I get a page with a custom document type to display in the menu?
I have created a document type, but I want it to behave just like Page (Menu item). This way I can allow only certain child elements.

For instance, in the corporate site example, a user can add a blog under the forums page. I want to prevent that.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/18/2009 6:37:34 AM
   
RE:How do I get a page with a custom document type to display in the menu?
Hi,

To display a custom document type in the menu web part, you need to list all document types in the Document types field. Documents of these types will be displayed in the menu.

If you do not want to create blog document type under Page Menu Item document type, you need to disable it as a child nod in Site Manager -> Development -> Document types -> edit the type -> child types. But this setting has general effect. So, there are these possible options:

- Create custom code which will check whether the user want to create the blog type under Forums page
- Tell the users that blogs are not allowed under Forums
- Use another document type for Forums page which will have disabled blog as a child type.

Best Regards,
Juraj Ondrus