Unable to create document types (uSiteBuilderV6API - Umbraco 6.1.6)
Hello,
Firstly, I'd like to say that I love uSiteBuilder and have been happily using it for some time without issue.
Today I have been trying to set up a new Umbraco project in Visual Studio 2012 and add some document types via uSiteBuilder. I have done this a fair few times before with no problems although mostly with Umbraco 4.x and only once before with Umbraco 6.x.
When I deploy the project dll to the bin folder of the website, I am not seeing my document types listed under the doctypes node in the settings section. Could anyone enlighten me as to anything I may have forgotten to do?
To set up the project I have.
Set up Umbraco 6.1.6 with a MSSQL database
Recompiled the uSiteBuilder dll from the V6API branch with the 6.1.6 dll files from the bin folder of Umbraco
Created a doctype which looks like this:
using System; using System.Collections.Generic; using System.Linq; using System.Web;
using Vega.USiteBuilder;
namespace project.eu.DocumentTypes {
[DocumentType(
Name = "Homepage", AllowedChildNodeTypes = new Type[] {
typeof(ContentFolder), typeof(GenericPage)
}, IconUrl = "house.png"
)] public class HomePage : Vega.USiteBuilder.DocumentTypeBase {
// Navigation [DocumentTypeProperty(UmbracoPropertyType.TrueFalse, Name = "Hide in navigation", Tab = "Navigation")] public string umbracoNaviHide { get; set; }
}
}
The project builds fine as usual and I'm having some trouble understanding why this might not be working.
Any help/suggestions at all would be greatly appreciated.
Did you try this with the old v1 version of uSiteBuilder or did you use the new v2 version of uSiteBuilder?
Source code of uSiteBuilder has been moved to GitHub (https://github.com/spopovic/uSiteBuilder) and the downloads are available through NuGet (http://www.nuget.org/packages/uSiteBuilder/).
Unable to create document types (uSiteBuilderV6API - Umbraco 6.1.6)
Hello,
Firstly, I'd like to say that I love uSiteBuilder and have been happily using it for some time without issue.
Today I have been trying to set up a new Umbraco project in Visual Studio 2012 and add some document types via uSiteBuilder. I have done this a fair few times before with no problems although mostly with Umbraco 4.x and only once before with Umbraco 6.x.
When I deploy the project dll to the bin folder of the website, I am not seeing my document types listed under the doctypes node in the settings section. Could anyone enlighten me as to anything I may have forgotten to do?
To set up the project I have.
The project builds fine as usual and I'm having some trouble understanding why this might not be working.
Any help/suggestions at all would be greatly appreciated.
Thanks,
Chris.
Hi Christopher,
Did you try this with the old v1 version of uSiteBuilder or did you use the new v2 version of uSiteBuilder?
Source code of uSiteBuilder has been moved to GitHub (https://github.com/spopovic/uSiteBuilder) and the downloads are available through NuGet (http://www.nuget.org/packages/uSiteBuilder/).
Regards,
Sasa
Hi,
Thats the problem solved, seems to work fine with V2 from GitHub.
Thanks very much for your comment.
Chris.
You are welcome Chris.
Regards,
Sasa
is working on a reply...