ASPX templates
Version 3.x > ASPX templates > Is default.aspx special? View modes: 
User avatar
Member
Member
scott - 7/29/2008 11:48:00 PM
   
Is default.aspx special?
I'm used to using default.aspx as the standard page. All navigation on our sites links to it on a menu level. As such I've been creating all the base pages in my test site with default.aspx. However, the root of the site seems to think it is default as well. So when I click on the root of the content navigation, the page tab says it thinks it is http://localhost/kenticocms/default.aspx
Why does the root of the site even need to be a page? Why when you create a folder does it create a page with that name? I don't want a page or I would have created a page... if I create a page called default in the root the site gets all confused and can't show the content correctly. Is this because I named the master page default? All very confusing...

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/30/2008 8:31:40 AM
   
RE:Is default.aspx special?
Hi,

we think it is the very useful structure of the content. The Root is “default” because it allows you to set one of the existing pages as default (in the Site Manager -> Settings -> Web Site -> Default Alias Path). You can use the link .../default.aspx in the same way as the page set in the Site Settings. I think it is more flexible than the static default page. Then, of course, you could not add your own page called default.aspx.

Best Regards,
Helena Grulichova

User avatar
Guest
scott - 7/30/2008 7:32:35 PM
   
RE:Is default.aspx special?
I don't think you're understanding what I'm saying.

I've created a blank aspx site.
I created a page template I wanted for all bottom level pages
I set the root of the site to use this template so that it would be inherited by all the pages.
I created a page called default.
I set the default page to be /default

Now there are two pages which say they are http://localhost/kenticocms/default.aspx Obviously this is impossible.

I rename the default page to home and now if I view the link http://localhost/kenticocms/ it goes nuts trying to redirect back and forward between two pages.

To fix this I have to set the default page to be /

However this means that content editors will need to click the root page to edit the default page, I think this is awkward but passable.

Does this make sense?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/20/2008 7:01:09 AM
   
RE:Is default.aspx special?
Hi,

I am sorry for the late answer. Thank you for more details you provide me.
I am trying to follow your instuctions.

1. I've created a blank aspx site.
2. I set the root of the site to use the template 'Root template ASPX' so that it would be inherited by all the pages.
3. I created a page called 'default'.
4. I set the default page to be '/default'.
The root and the page 'default.aspx' has the same URL now. It displays my page 'default.aspx' if the the URL is http://localhost/kenticocms/
In my opinion everything works correctly.
5. I rename the default page to home and now if I view the link http://localhost/kenticocms/ it goes nuts trying to redirect back and forward between two pages - this is obvious because of infinite loop. If the page 'default.aspx' is renamed and does not exist in a real and the settings from Site Manager say it have to find the page 'default.aspx' – then this causes the infinite loop.
6. If in the Site Manager is set '/' or null value it displays the root in the URL http://localhost/kenticocms/.

I am sorry if I do not understand what you mean exactly. You could edit the page, which is set in the Site Manager as default, in the same way as any other page.

Best regards,
Helena Grulichova