Copied to clipboard

Flag this post as spam?

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


  • jeb 50 posts 20 karma points
    Mar 10, 2009 @ 20:01
    jeb
    0

    How Does Default.aspx Select a Page?

    I'm trying to be clever and uses dummy pages as folders in Umbraco and I'm getting results that I don't understand (perhaps I need to try harder to be more clever?).

    Do I have any control over which page is the home page? Is it always the first item in the tree below Content? Are there any rules?

    Thanks for your help.

    Jeb.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 10, 2009 @ 20:42
    Dirk De Grave
    0

    Hi,

    If you don't specify a page and just browse http://my.domain.com, you'll indeed get the page that represents the first node in the content tree.

    Most people tend to structure their site as:

    -Content
    --Home
    ---Folder-1
    ---Folder-2

    In this scenario, both http://my.domain.com and http://my.domain.com/home.aspx will take you to the first page.

    Regards,
    /Dirk

  • jeb 50 posts 20 karma points
    Mar 10, 2009 @ 20:49
    jeb
    0

    Thanks, Dirk. That's pretty much what I figured. I see that there is an XSLT equivalent of Server.Transfer but right now I need a result.

    Jeb.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 10, 2009 @ 21:53
    Dirk De Grave
    0

    Hi Jeb,

    You can however set a umbracoRedirect or a umbracoInternalRedirectId on the first page to redirect to another page though.

    More info at http://forum.umbraco.org/yafpostst8431Grouping-pages-into-a-subnav-but-without-an-intro-page-going-automatically-to-the-first-page.aspx

    Regards,
    /Dirk

  • jeb 50 posts 20 karma points
    Mar 10, 2009 @ 21:59
    jeb
    0

    Oh no! Now I have to try that. But tomorrow. Thanks, Dirk.

    Jeb.

  • jeb 50 posts 20 karma points
    Mar 11, 2009 @ 11:02
    jeb
    0

    Adding the magic attribute umbracoInternalRedirectId to the page that Umbraco thinks should be the home page (i.e. the one just below the root in the Content tree) does work but I had a little trouble setting it up.

    Firstly, it should be set to the numeric node id of the page you want to show. Kinda obvious, perhaps, but when things aren't working one can have doubts.

    Secondly, I found that I needed to hit the enter key when I had finished entering the node id. Just typing and saving was not enough. Is this normal?

    Thirdly, I republished the whole site, but I am not sure that this was necessary.

    My thanks to Dirk and Richard Neehouse.

    Jeb.

Please Sign in or register to post replies

Write your reply to:

Draft