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 ListFnL 6.x - XSL To Show/Hide Certain Columns...FnL 6.x - XSL To Show/Hide Certain Columns...
Previous
 
Next
New Post
4/21/2015 11:49 AM
 

I have an FnL module with certain required restrictions...

A select few have editing rights, then there are another select group that can view ALL fields, and lastly anyone not fitting into the first two categories should only be able to view SOME fields.

I flipped on the "Restricted" option to certain fields thinking that only those with View Restricted can see it, then I realized it only affects EDIT FORM view of the field in question. So instead I thought if trying to use the "Display On List" option. I am hiding the "Restricted Fields" from being displayed. However, I want certain users to be able to see the hidden fields (in display list mode).

I am using a custom XSL file so that I can get the formatting a certain way, but I don't know what XSL code to use to allow those users with "Display All Columns" permissions to see all the columns.

Help!

____________
Ben


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
4/21/2015 12:01 PM
 
Ben,

You should be able to use xsl:if statements based on the value of Context\UserRoles.

It might, however, be easier to have multiple instances of that module (might need to be separate pages) with different XSLT outputs and use the Page/Module visibility to restrict it to the desired users.
 
New Post
4/21/2015 12:14 PM
 

Ben,

Here's an example (with all angled brackets removed):

xsl:if test="contains(//udt:Context/udt:UserRoles,'|Administrators2|')"
td
xsl:value-of select="udt:E-Mail" disable-output-escaping="yes" /
/td
/xsl:if

 
New Post
4/21/2015 1:47 PM
 
Thank you! That was exactly what I needed!

Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListFnL 6.x - XSL To Show/Hide Certain Columns...FnL 6.x - XSL To Show/Hide Certain Columns...


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