Site structure
Version 5.x > Site structure > How to auto arrange the pages View modes: 
User avatar
Member
Member
Harish - 3/2/2011 3:21:16 AM
   
How to auto arrange the pages
Hi All,

I want to auto arrange the page under the parent node.

Please check with this image for better understand
User image

For example when we created blog post, it will automatically goes under the month node. no need to create that one manually.

Like that now I want to create one doctype which will automatically goes under selected (input) section.

if it is not there it need to create automatically.

Thanks,
Naga Harish.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/2/2011 9:29:51 AM
   
RE:How to auto arrange the pages
Hello,

To achieve this you will need to create a custom aspx page and link to it.

On that new page you will need to display the form with the <cms:CMSForm .. > control. You need to set the path to this custom page in CMSSiteManager / Development / Document Types / <your doc type> field "New page:" in the General tab. You can see a sample implementation of the CMSForm control in \CMSModules\Content\CMSDesk\Edit\Edit.aspx.

There you will need also to do all necessary things to place the new document in the correct location.

Best regards,
Boris Pocatko

User avatar
Member
Member
Harish - 3/2/2011 9:46:07 AM
   
RE:How to auto arrange the pages
Thanks for your reply.

I have idea of creating form page(Aspx) in doctype. I worked this before.
But any sample code or hit to play with tree nodes. (creating nodes and ...)

Thanks,
Naga Harish.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/2/2011 10:03:44 AM
   
RE:How to auto arrange the pages
Hello,

Examples on handlig documents with API can be found in our documentation.

Best regards,
Boris Pocatko