Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 952 karma points
    Jan 25, 2010 @ 08:13
    Tom
    0

    Get Nodes For a Member

    Hi Guys,

    I'm trying to work out how i'd retrieve a list of node protected node ids.. I need to filter Umbraco Examine's results so once it has completed it's search then find out if a member is logged in and if they are then that's fine and all nodes from the search can be displayed.. but if they're not logged in i need to remove the nodes by ID that are protected..

    Cheers,

    Tom

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 25, 2010 @ 09:16
    Dirk De Grave
    1

    Can't you just use the umbraco.library.IsLoggedOn()/IsProtected() method for each node you're iterating in xslt (or even from your c# code)?

     

    Cheers,

    /Dirk

  • Aaron Powell 1708 posts 3044 karma points c-trib
    Jan 25, 2010 @ 10:56
    Aaron Powell
    0

    Actually I'd suggest that you use the ASP.NET Membership Provider stuff to work it out. It should provide you with what you need - http://our.umbraco.org/wiki/how-tos/membership-providers

  • Tom 713 posts 952 karma points
    Jan 26, 2010 @ 23:36
    Tom
    0

    Hi Slace,

    At looking at it I could think of 2 approaches..

    1. use getUser and then use Access.HasAccces(n.Id, m.UniqueId); If node is protected

    2. Get the member groups.. then i was thinking of trying to find a way to get all nodes available to that group display them using some linq or something but am not sure how to get a list of nodes belonging to a specific group programatically..

    will keep looking

  • 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