Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListFiltering and showing table entries based on user roleFiltering and showing table entries based on user role
Previous
 
Next
New Post
12/10/2006 12:12 AM
 
I am using an User Defined Table. I want to build a XSL file that will filter entries in the User Defined Table based on the role assigned to the current user. I want to get the roles this user is assigned to and test if it belongs to a specific special role. If so, I will show a certain content. Is it possible to do that with User defined tables? does it have a specific tag that allows me to pull that information from the user profile?
 
New Post
12/10/2006 6:54 AM
 
no, that is not possible this way. you can however create a reference to an existing module with appropriate xsl filtering, and use DNN permissions to display this only to users within a specific role.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/10/2006 8:24 AM
 

Sebastian is wrong.

You will find the roles of the user inside the xpath /udt:Context/udt:UserRoles. They are concated and surrounded by |.

Example: |role1|role2|role3|

You can test whether a user is in a certain role using:
<xsl:if test="contains(/udt:Context/udt:UserRoles,'|role1|'">

 
New Post
12/10/2006 8:33 AM
 

Stefan,

thank you for your correction. I must have overlooked this in the user documentation.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/10/2006 3:15 PM
 

It is described in the UDT3.3.7 documentation at page 40 inside the new xsl chapter.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListFiltering and showing table entries based on user roleFiltering and showing table entries based on user role


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out