Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christopher 23 posts 96 karma points
    May 14, 2014 @ 18:52
    Christopher
    0

    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.

    Thanks,

     

    Chris.

  • Sasa Popovic 77 posts 367 karma points
    May 15, 2014 @ 10:18
    Sasa Popovic
    100

    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 

  • Christopher 23 posts 96 karma points
    May 15, 2014 @ 11:10
    Christopher
    0

    Hi,

    Thats the problem solved, seems to work fine with V2 from GitHub. 

    Thanks very much for your comment.

     

    Chris.

     

     

     

  • Sasa Popovic 77 posts 367 karma points
    May 15, 2014 @ 11:19
    Sasa Popovic
    1

    You are welcome Chris.

    Regards,
    Sasa 

Please Sign in or register to post replies

Write your reply to:

Draft