Copied to clipboard

Flag this post as spam?

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


  • Simon Timms 16 posts 36 karma points
    Sep 30, 2009 @ 17:58
    Simon Timms
    0

    Creating Content Folders

    In the hopes of keeping my directory structure in umbraco clean I wanted to create folders.  I followed the wiki page which was most helpful in teaching me about redirecting from a folder to a page but I have this naming conflict issue.  For instance I have this structure

     

    Content
          |Folder1
              |page1
              |page2
         |page1

    Both /Folder1/page1 and /page1 are published as /page1.aspx.  Is there some way to set it so that /Folder1/page1 is published as /Folder1/page1.aspx?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Sep 30, 2009 @ 19:13
    Dirk De Grave
    0

    Yes, you'll have to make a small change to a settings in web.config. Look for the 'umbracoHideTopLevelNodeFromPath' key and set it's value to 'false' instead of 'true'

    Or, leave settings as is, and create an extra level in between Content and Folder1 (which is the recommended way btw)

    -Content

    --Home

    ---Folder1

    ----Page1

    ----Page2

    ---Page1

    using this approach, page1 will be accessible through /folder1/page1.aspx whereas page1 under home node will be accessible as /page1.aspx

    Cheers,

    /Dirk

  • Simon Timms 16 posts 36 karma points
    Sep 30, 2009 @ 19:25
    Simon Timms
    0

    Ah!  So umbraco, by default, pulls all content one level down up to the root level.  I will follow your second and recomended approach.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies