Copied to clipboard

Flag this post as spam?

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


  • Anders 27 posts 47 karma points
    Jul 15, 2014 @ 01:36
    Anders
    0

    Member control

    Hello

    I have created my website and i only have the member functionality left now.

    I can't seem to find anything about membercontrol in umbraco 7 (i'm pretty new at .net and razor) and i have tried to use the default cshtml template for login.

    What i want to do is:

    - membersarea (already created)

    - assign role to members by default (so the membersarea can be protected by role)

    - login page with redirect and login/logout in the menu

    and that is pretty much it!

    Step by step guide would be very much appreciated!

    Best regards!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jul 15, 2014 @ 08:20
    Dennis Aaen
    0

    Hi Anders,

    Have you seen this documentation about public access public http://our.umbraco.org/wiki/reference/umbraco-client/context-menus/public-access

    Umbraco 7 have some code snippets for making a login form, and one of the other razor snippets is login status. The login status, should give you the logon / signout functionality. I have made a screenshot.

    Razor code snippets

    You can find the snippets, no matter if you´re using the Partial views or Partial view macros Hope this can help you further.

    /Dennis

  • 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