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...
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.
Continue discussion
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...
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.