Copied to clipboard

Flag this post as spam?

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


  • Kim Bantz Rasmussen 81 posts 310 karma points
    Nov 04, 2013 @ 17:02
    Kim Bantz Rasmussen
    0

    MvcMemberLogin package - how to use?

    Hi,

    I can't get the partial view to render :( Any Ideas?

    Package:

    http://our.umbraco.org/projects/collaboration/mvcmemberlogin

    In view:

    @Html.Partial("formMemberLogin",@Model.Content)

    Error:

    The model item passed into the dictionary is of type 'Umbraco.Web.Models.XmlPublishedContent', but this dictionary requires a model item of type 'MvcLogin.MemberLoginModel'.

     

    Umbraco 6.1, MVC 

  • Musa Nasrullah 1 post 21 karma points
    Nov 04, 2013 @ 17:19
    Musa Nasrullah
    0

    The member authentication functionality is pretty easy to setup. You can check this out - http://24days.in/umbraco/2012/creating-a-login-form-with-umbraco-mvc-surfacecontroller/

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Nov 04, 2013 @ 21:19
    Andy Butland
    100

    If you are trying to render the form as a partial view directly, I believe you'll need:

    @Html.Partial("formMemberLogin", new MvcLogin.MemberLoginModel())
  • Kim Bantz Rasmussen 81 posts 310 karma points
    Nov 05, 2013 @ 08:55
    Kim Bantz Rasmussen
    0

    Thank you Andy, it worked!

    I'am always having trouble which Model to be used :)

    Best regards
    Kim 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies