When you say "We do not want users to access" what do you want to happen if they do?
I would add umbracoNaviHide and umbracoRedirect properties to the docType used in all the "folder" nodes ie "Products", "Internal" etc. (Actually it's goot to use them on all docTypes I think but not necessary). umbracoNaviHideshould be true/false and umbracoRedirectshould be Content Picker.
Then on the nodes you don't want people to access, tick the umbracoNaviHide and select a node for umbracoRedirect (probably the root but you may choose the first node in the subfolder). You'll need to make sure you XLST checks the navihide property when contructing links for menus, sitemaps etc. The redirect is built into Umbraco so you won't need to make any code changes.
The nodes you're "hiding" don't need templates assigned as they won't be rendered.
The umbracoNaviHide will be needed if you generate a site map or navgation menus using XLST. It's just to stop the nodes from appearing. Will actually you can use any peoperty to do this but umbracoNaviHideis a standard one that people use so if you install packages they should skip hidden pages.
Publish pages and Not folders/subfolders
Hi,
Our website has the following navigation structure:
http://www.mysite.com/products/internal/product1
http://www.mysite.com/products/external/product1
The nodes in Umbraco look like
Home
Products
>Internal
We do not want users to access http://www.mysite.com/products/ or http://www.mysite.com/products/internal/
Currently, the way it is structured is that we have created a doctype and template for "products". This is because all pages are identical
the nodes products
Apologise for the incomplete post. Wish I could edit and repost again.
Hi,
Our website has the following navigation structure:
http://www.mysite.com/products/internal/product1
http://www.mysite.com/products/external/product1
The nodes in Umbraco look like
Home
Products
> Internal
> product1
> product2
> External
> product1
We do not want users to access http://www.mysite.com/products/ or http://www.mysite.com/products/internal/
Currently, the way it is structured is that we have created a doctype and template for "products". This is because all pages are identical
the nodes products, internal, product1, external, product1 all have been assigned the same template.
Any help/suggestions to resolve this?
Thank you for your time and help.
Hi f10x,
When you say "We do not want users to access" what do you want to happen if they do?
I would add umbracoNaviHide and umbracoRedirect properties to the docType used in all the "folder" nodes ie "Products", "Internal" etc. (Actually it's goot to use them on all docTypes I think but not necessary). umbracoNaviHideshould be true/false and umbracoRedirectshould be Content Picker.
Then on the nodes you don't want people to access, tick the umbracoNaviHide and select a node for umbracoRedirect (probably the root but you may choose the first node in the subfolder). You'll need to make sure you XLST checks the navihide property when contructing links for menus, sitemaps etc. The redirect is built into Umbraco so you won't need to make any code changes.
The nodes you're "hiding" don't need templates assigned as they won't be rendered.
Hope that makes sense!
Hi, if there is an Admin/Moderator around request you to please delete the other threads.
I have no idea how so many identical threads got created and aplologise to all for the inconvenience caused.
Hi Gary,
Thank you for making time to reply.
I would like the page to redirect to a content page.
www.mysite.com/products/ or www.mysite.com/products/internal/ are just "folders" for organisation/categorisation purpose. They dont contain any content.
I shall try the umbracoRedirect option. Not sure I understand the umbracoNaviHide bit so shall stay away from it for now.
Thanks again Gary.
Hope it works :)
The umbracoNaviHide will be needed if you generate a site map or navgation menus using XLST. It's just to stop the nodes from appearing. Will actually you can use any peoperty to do this but umbracoNaviHideis a standard one that people use so if you install packages they should skip hidden pages.
is working on a reply...