Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Can I somehow test for member login and a specific member group in my template?
I need to show a partial view in my template, only if user belong to a specefic member group, and if current pageid is xxxx
Thanks ;-)
Try this
@if (Members.IsLoggedIn() && User.IsInRole("Role Name") && CurrentPage.id = xxx )
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
member login and mvc view
Hi,
Can I somehow test for member login and a specific member group in my template?
I need to show a partial view in my template, only if user belong to a specefic member group, and if current pageid is xxxx
Thanks ;-)
Try this
@if (Members.IsLoggedIn() && User.IsInRole("Role Name") && CurrentPage.id = xxx )
is working on a reply...