I'm quite new to using Umbraco in fact I've only just started using it a few days ago and I have a few questions that I'd like answered. I've done a fair bit of searching around and couldn't really find what I was looking for so I'm hoping this thread might help.
Firstly, I'm having some problems with setting the default page. When I call the root address ie. http://site/ it used to call a page called homepage.aspx. However since then I have deleted it and created another page with a different name. This is at the top of the heirarchy in the Content area in Umbraco which I understand dictates which file is called. However I can call it directly like this http://site/home.aspx/ and I receive the page. Whenever I call http://site/ I get some random blank default.aspx page which I never noticed before.
There is a default.aspx page in the wwwroot folder where the CMS is. I've tried removing that but all I get is an error. I've tried making a page in Umbraco called default but this doesn't work either. I've even tried editing the default.aspx page but all I get is an error. I can't seem to move it at all. So how can I get my new page to be the main default page that is loaded when the site root is called?
The second thing I want to ask about is can Umbraco support ASP.NET App_Themes? I'd like to give the user the option of changing between themes and I'm used to doing that with ASP.NET Themes. If not is there some other way of achieving something similar?
Umbraco's default page is always taken as the first node in the content tree*, so if you have something else there it'll be the first one displayed. If you move home up the content tree it'll be hit first.
*Tihs is only true if you don't specify a domain in your content tree, host headers will allow you to specify a starting point that's not the first name. I think there's another way but I'm ont 100% sure
Umbraco doesn't generate any HTML itself so I'm not sure what you're looking at App_Themes to achieve. If you delete all the master pages from a site you'll get blank reponses since you have no HTML defined. There is a Skinning engine in Umbraco 4.6+ but I'm not across it so I'm not sure of the best way to use it.
In regards to the default page I'm aware that the first node in the content tree is always hit. However I've moved the Home page to the very top of the Content tree even out of the extra folder that it's in and still no good. Could you perhaps explain a little bit more about what you mean with host header? It's stored on a seperate machine but it's in the local network so http://site/ of course refers to that location.
With App_Themes I can easily change the stylesheet/theme of the entire website by storing them in the ASP.NET App_Themes folder. If you've never used ASP.NET Themes before you may not understand what I'm talking about.
Have you done a republish of the site (not a reload from cache but an actual Publish), IIRC it can freak out a bit if the sort order doesn't match the order of the nodes in the XML. As for host headers I'm referring to setting www.mysite.com on the node. This specifies the root of www.mysite.com and any nodes under it are part of that site. It's most useful when you have multiple websites in a single Umbraco install.
As I said Umbraco doesn't generate HTML for you so any concept of theming is something that you have to introduce yourself. Take a look at the Skinning Guide (http://umbraco.codeplex.com/releases/view/59025) as it may give you some starting points. I have written theme engines for Umbraco, it's not hard but it really comes down to what you're developing for your client.
I'm not sure what you mean by a republish of the site? Every new file that I have made I have published but are you talking about the entire site? How do you do this in Umbraco?
The skinning option looks interesting this might be what I'm looking for. What I really want to do is have the user be able to select a theme at runtime which is effectively changing the stylesheet.
Couple of questions about Umbraco
Hi,
I'm quite new to using Umbraco in fact I've only just started using it a few days ago and I have a few questions that I'd like answered. I've done a fair bit of searching around and couldn't really find what I was looking for so I'm hoping this thread might help.
Firstly, I'm having some problems with setting the default page. When I call the root address ie. http://site/ it used to call a page called homepage.aspx. However since then I have deleted it and created another page with a different name. This is at the top of the heirarchy in the Content area in Umbraco which I understand dictates which file is called. However I can call it directly like this http://site/home.aspx/ and I receive the page. Whenever I call http://site/ I get some random blank default.aspx page which I never noticed before.
There is a default.aspx page in the wwwroot folder where the CMS is. I've tried removing that but all I get is an error. I've tried making a page in Umbraco called default but this doesn't work either. I've even tried editing the default.aspx page but all I get is an error. I can't seem to move it at all. So how can I get my new page to be the main default page that is loaded when the site root is called?
The second thing I want to ask about is can Umbraco support ASP.NET App_Themes? I'd like to give the user the option of changing between themes and I'm used to doing that with ASP.NET Themes. If not is there some other way of achieving something similar?
Thanks for any help or advice.
Umbraco's default page is always taken as the first node in the content tree*, so if you have something else there it'll be the first one displayed. If you move home up the content tree it'll be hit first.
*Tihs is only true if you don't specify a domain in your content tree, host headers will allow you to specify a starting point that's not the first name. I think there's another way but I'm ont 100% sure
Umbraco doesn't generate any HTML itself so I'm not sure what you're looking at App_Themes to achieve. If you delete all the master pages from a site you'll get blank reponses since you have no HTML defined. There is a Skinning engine in Umbraco 4.6+ but I'm not across it so I'm not sure of the best way to use it.
Thanks for your reply.
In regards to the default page I'm aware that the first node in the content tree is always hit. However I've moved the Home page to the very top of the Content tree even out of the extra folder that it's in and still no good. Could you perhaps explain a little bit more about what you mean with host header? It's stored on a seperate machine but it's in the local network so http://site/ of course refers to that location.
With App_Themes I can easily change the stylesheet/theme of the entire website by storing them in the ASP.NET App_Themes folder. If you've never used ASP.NET Themes before you may not understand what I'm talking about.
Have you done a republish of the site (not a reload from cache but an actual Publish), IIRC it can freak out a bit if the sort order doesn't match the order of the nodes in the XML.
As for host headers I'm referring to setting www.mysite.com on the node. This specifies the root of www.mysite.com and any nodes under it are part of that site. It's most useful when you have multiple websites in a single Umbraco install.
As I said Umbraco doesn't generate HTML for you so any concept of theming is something that you have to introduce yourself. Take a look at the Skinning Guide (http://umbraco.codeplex.com/releases/view/59025) as it may give you some starting points.
I have written theme engines for Umbraco, it's not hard but it really comes down to what you're developing for your client.
I'm not sure what you mean by a republish of the site? Every new file that I have made I have published but are you talking about the entire site? How do you do this in Umbraco?
The skinning option looks interesting this might be what I'm looking for. What I really want to do is have the user be able to select a theme at runtime which is effectively changing the stylesheet.
is working on a reply...