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?
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.
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.
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
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.
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
Oh no! Now I have to try that. But tomorrow. Thanks, Dirk.
Jeb.
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.
is working on a reply...