Copied to clipboard

Flag this post as spam?

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


  • kunta 10 posts 30 karma points
    Apr 04, 2012 @ 19:57
    kunta
    0

    umbraco 4.7 newbie questions about converting website

    Hi there,
    I'm a brand newbian to Umbraco with a test instance of Umbraco 4.7 running with the intent of converting an existing site to 4.7. I'm running into trouble with:

    webform routing...how is this done?

    lets say i have a url like this mydomain.com/folder/folder1/folder2/folder3/file.aspx  -- how does that work in Umbraco. I see how to create a template but how about creating "folders" that are part of a url?

    Is there any support for ASP.NET 4.0 REST web services?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 04, 2012 @ 20:44
    Jeroen Breuer
    0

    Umbraco uses a hierarchical tree. In the tree you can create nodes and child nodes. If you want "folders" that are part of the url you only need to create a child node. For example create this tree:

    - folder1
       - folder2
            - folder3

    If you want to open folder3 you can go to mydomain.com/folder1/folder2/folder3.aspx 

    Jeroen

  • kunta 10 posts 30 karma points
    Apr 04, 2012 @ 21:04
    kunta
    0

    Jeroen thanks for your reply...what i don't understand is what are you calling "folder1"?

    do i need to create a "document type" and matching "template" for each folder?

    i guess i don't understand why i would need a "template" for "folder" since the "folder" is simply part of the url path...the folder has no viewable content -- except for the last folder which contains the aspx file.

  • kunta 10 posts 30 karma points
    Apr 05, 2012 @ 00:00
    kunta
    0

    I'm going to bump this...

    I tried this but it does NOT work.

    1.) I create a doc type "folder1"  (no base type)
    2.) I create a sectond doc type "folder2" (no base type)
    3.) I create a third doc type "myfile" of base type "textpage" 

    I go back to content section to add nodes as such

    "folder1" at same level as home. "folder2" as a child of "folder1" and finally "mypage.aspx" as a child of "folder2" What do i get -- three urls as such:

    mydomain.com/folder1.aspx
    mydomain.com/folder2.aspx
    mydomain.com/folder2/mypage.aspx 

    This is not what i want  -- i want "mydomain.com/folder1/folder2/mypage.aspx" Am i the only one that has urls beyond the first level?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 05, 2012 @ 11:14
    Jeroen Breuer
    0

    You can probably fix this by going to the web.config appSettings and do this:

    <add key="umbracoHideTopLevelNodeFromPath" value="false" />

    By default this is true, but if you change it to false folder1 will also be added to your url.

    Jeroen

  • kunta 10 posts 30 karma points
    Apr 05, 2012 @ 18:21
    kunta
    0

    thanks Jeroen! I'm going to give it a shot and reply back

  • kunta 10 posts 30 karma points
    Apr 06, 2012 @ 00:03
    kunta
    0

    I can confirm that your suggestion works exactly as expected. Thanks Jeroen!!

Please Sign in or register to post replies

Write your reply to:

Draft