Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Jun 09, 2011 @ 13:48
    Anthony Candaele
    1

    Method not found

    Hi,

    I just installed the package and created a mixin: 'SEO'

    Then I tried to add the mixin to a document type by selecting the document type in the "structure" tab.

    But I get this error:

    Method not found: 'Void umbraco.cms.businesslogic.ContentType.AddPropertyType(umbraco.cms.businesslogic.datatype.DataTypeDefinition, System.String, System.String)'.

    Is this a bug?

    Greetings,

    Anthony

  • Peter Cort Larsen 345 posts 796 karma points
    Jun 09, 2011 @ 15:00
    Peter Cort Larsen
    0

    Hi,

     

    I get the same err. I am using 4.7

  • Peter Duncanson 426 posts 1329 karma points c-trib
    Jun 09, 2011 @ 16:21
    Peter Duncanson
    0

    Hmm could be, we build it in 4.5 and don't think the API had changed with regard to PropertyTypes. Will take a look and get back to you.

  • Matt Brailsford 2241 posts 10932 karma points MVP 6x c-trib
    Jun 09, 2011 @ 18:02
    Matt Brailsford
    2

    Hi Guys,

    I've just released a version 1.2 which should fix this issue.

    Looks like, for some reason, the method signature for DocType.AddPropertyType has changed between 4.5 and 4.7 (4.5 returning void, and 4.7 returning a property type). This was causing it to YSOD if compiled against one, and run in the other environment. I've managed to fix it to work in both now by using reflection to find / invoke the method at runtime.

    Let me know how you get on.

    Cheers

    Matt

  • Peter Cort Larsen 345 posts 796 karma points
    Jun 09, 2011 @ 19:37
    Peter Cort Larsen
    0

    Hi,

     

    It works, thank you.

  • Anthony Candaele 1197 posts 2049 karma points
    Jun 10, 2011 @ 09:08
    Anthony Candaele
    0

    Hi Matt,

    I installed package version 1.2 and the problems are solved here too.

    I wonder if the mixin document type can be an alternative for the 'site' document type like in this content tree structure:

    site
         en-US
                  page1
                  page2
                  ...
          nl-BE
                  page1
                  page2
                  ....

     

    I'm asking this question because a parent site document type with general site settings has some implications, especially for search engines and SEO (refer to blog article by Sebastiaan Janssen: the ultimate site structure setup)

    greetings,

    Anthony Candaele
    Belgium

  • epkele 1 post 21 karma points
    Feb 23, 2012 @ 14:36
    epkele
    0

    Hi,Matt Brailsford where can i download the 'version 1.2 ' .thanks

Please Sign in or register to post replies

Write your reply to:

Draft