First I have a structure showed on Fig 1.0, The Members Area can only be accessed by the Website-User member group however the Video section cannot be accessed by the Website-User group but can be accessed by the Website-Video-User. So inorder to access the video page you need to have the Website-User and Website-Video-User groups. Under the videos folder I have several videos listed. I'll be assigning different member groups to access a certain video. on Fig 1.0 Test Video Entry 1 can only be accessed by members that are on the Video Access 1 member group, Test Video Entry 2 will be accessed by Video Access 2 member group and Video Access 3 will be for the test Video Entry 3.
I assigned member01 to have access to Test Video Entry 2 and 3 by giving it the Video Access 2 and 3 member group as shown on Fig 3.0. What I want to happen is that when member01 clicks on the Video link on the actual website, it will only display Test Video Entry 2 and test Video Entry 3 since those are the only pages that he/she has access to instead of displaying all of the nodes under the video folder. Right now Im using this xsl with paging from nibble.be to display all the nodes under the videos folder. How can I filter the display of nodes?
Hi curlybub, umbraco has some methods for you to do exactly what you're asking for and those areavailable as xslt extensions, so no additional coding required.
If you need to check whether a user is logged in and has access to a page, use
With the code that you've placed but I get an error saying:
System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.BusinessLogic.StateHelper.GetCookieValue(HttpContext context, String key) at umbraco.BusinessLogic.StateHelper.HasCookieValue(String key) at umbraco.cms.businesslogic.member.Member.CurrentMemberId() at umbraco.cms.businesslogic.member.Member.IsLoggedOn() at umbraco.library.IsLoggedOn()
Display only the pages that members have access to
Hi again,
I encountered another challenge with umbraco, which is to display only the pages that members are allowed to access.
Please see this link, http://i59.photobucket.com/albums/g294/Curlybub26/forums-question.jpg. I'll be referring to that image with this question.
First I have a structure showed on Fig 1.0, The Members Area can only be accessed by the Website-User member group however the Video section cannot be accessed by the Website-User group but can be accessed by the Website-Video-User. So inorder to access the video page you need to have the Website-User and Website-Video-User groups. Under the videos folder I have several videos listed. I'll be assigning different member groups to access a certain video. on Fig 1.0 Test Video Entry 1 can only be accessed by members that are on the Video Access 1 member group, Test Video Entry 2 will be accessed by Video Access 2 member group and Video Access 3 will be for the test Video Entry 3.
I assigned member01 to have access to Test Video Entry 2 and 3 by giving it the Video Access 2 and 3 member group as shown on Fig 3.0. What I want to happen is that when member01 clicks on the Video link on the actual website, it will only display Test Video Entry 2 and test Video Entry 3 since those are the only pages that he/she has access to instead of displaying all of the nodes under the video folder. Right now Im using this xsl with paging from nibble.be to display all the nodes under the videos folder. How can I filter the display of nodes?
You can use umbraco.library:hasaccess() and umbraco.library:isprotected()
Hi curlybub, umbraco has some methods for you to do exactly what you're asking for and those areavailable as xslt extensions, so no additional coding required.
If you need to check whether a user is logged in and has access to a page, use
Hope this helps.
Regards,
/Dirk
Hi Dirk,
Pardon my ignorance but where will I place that code statement that you've made? What part of the xslt that i'm currently using will i replace?
I tried to replace
With the code that you've placed but I get an error saying:
Thank you.
Regards,
Harry
Ron
A Big THANK YOU too all of you guys! :D
is working on a reply...
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.