Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Default Folders to Redirect View modes: 
User avatar
Member
Member
DahlinDev - 6/26/2013 11:07:14 PM
   
Default Folders to Redirect
I often used folders to store document types that are to be consumed in a repeater on the folders parent page.

The folder is just used to organize content in the content tree.

However, when I create the folder it does get it's own url. What I have been doing is going to the properties of the folder and unchecking "Show in Navigation" and "Show on Sitemap" I also set the redirect of the folder to the homepage of the site if anyone tries to browse directly to this url.

Is this the best practice? What are others doing for this scenario? It seems so tedious to go through these steps on every folder I create and the end users often forget this step.

Is it possible to somehow make this default for the Folder document type?

User avatar
Kentico Support
Kentico Support
kentico_janh - 6/27/2013 6:11:06 AM
   
RE:Default Folders to Redirect
Hello,

A folder is nothing else than standard document type as news or page menu item, so yes, it has its own url, however you don't have to approach those steps manually for each folder you create, but you can implement very simple handler (Document.Insert.After) where you check if the document type is cms.folder and if it is, then set those three properties automatically. Is it clear?

Best regards,
Jan Hermann