I've downloaded the vs 2010 project template and having a go at creating a site and already stuck!!
I've created a masterpage, used the default.master as the MasterPageFile, its in the masterpages directory, I build the site, all is good and everything gets copied to the umbraco file structure as I would expect.
However when I go into the site via the admin interface I cannot see the masterpage I just created??
I can however see the style and xslt file that I created?
I am using a code behind file for the masterpage, but the way i understand it, thats fine?
I have just discovered that if I go into the admin interface, click create new on the templates directory, give it the same name as my masterpage it picks up the file from the file system.
Templates (ASP.NET Master Pages) need to be created in the Umbraco back-office directly - as they are referenced in the database (used for document-types).
Once the template has been created - you can edit it in Visual Studio, no problem.
Yes this is expected behaviour. There is a relation between document types and templates that is stored in the database. So when you create a template on disk the database isn't modified and that's why you get that error. Most people create all their stuff in Umbraco btw.
Not bad for a 30 minute user to figure it out though...
MasterPages and visual studio
Hi
I'm new to umbraco, about 30 mins old in fact!
I've downloaded the vs 2010 project template and having a go at creating a site and already stuck!!
I've created a masterpage, used the default.master as the MasterPageFile, its in the masterpages directory, I build the site, all is good and everything gets copied to the umbraco file structure as I would expect.
However when I go into the site via the admin interface I cannot see the masterpage I just created??
I can however see the style and xslt file that I created?
I am using a code behind file for the masterpage, but the way i understand it, thats fine?
Thx
Steve
I have just discovered that if I go into the admin interface, click create new on the templates directory, give it the same name as my masterpage it picks up the file from the file system.
Is that the expected behaviour?
Thx
Hi Steve,
Templates (ASP.NET Master Pages) need to be created in the Umbraco back-office directly - as they are referenced in the database (used for document-types).
Once the template has been created - you can edit it in Visual Studio, no problem.
Cheers, Lee.
Thx Lee, much appreciated.
Hi Steve,
Yes this is expected behaviour. There is a relation between document types and templates that is stored in the database. So when you create a template on disk the database isn't modified and that's why you get that error. Most people create all their stuff in Umbraco btw.
Not bad for a 30 minute user to figure it out though...
Cheers,
Richard
is working on a reply...