Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • f10x 21 posts 18 karma points
    Nov 12, 2009 @ 01:28
    f10x
    0

    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

     

  • f10x 21 posts 18 karma points
    Nov 12, 2009 @ 01:33
    f10x
    0

    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.

     

  • Gary 20 posts 44 karma points
    Nov 12, 2009 @ 06:42
    Gary
    0

    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!

  • f10x 21 posts 18 karma points
    Nov 12, 2009 @ 06:43
    f10x
    0

    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.

     

  • f10x 21 posts 18 karma points
    Nov 12, 2009 @ 06:50
    f10x
    0

    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.

  • Gary 20 posts 44 karma points
    Nov 12, 2009 @ 07:19
    Gary
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft