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 ListUDT - Columns By RoleUDT - Columns By Role
Previous
 
Next
New Post
11/22/2008 5:53 AM
 

Hi,

 

I use UDT and everything worked fine till I faced pretty simple requirement:

In some scenrio, only subset of table's columns should be shown (accroding to the role of a user).

 

Please, advise how to support such a requirement with UDT.

 

 

 
New Post
11/22/2008 6:22 AM
 

Hi Mark, this is quite simple to achive and there are 2 options: 

  1. mark the colums, which shall be hidden as "private" in Manage Table". Create a shadow copy of your module (using "Copy existing module") and set permission "show private columns" in settings for this module for the desired roles
  2. another option is creating a custom XSL to present the copy of your module:
    1. go to Manage UDT, section Display options
    2. select "custom XSL" and click "generate XSL"
    3. this will open a wizard where you can modify the HTML layout, generate XSL based on it and save it as file to use
    4. save settings

For details, how to create custom XSL Style Sheets, please read the manual.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/22/2008 6:36 AM
 

1. Replace "Private" by "visible". Provate columns is a new feature in form and List, the upcoming successor of the UDT.

Furthermore you can handle this in XSL, even without using the visible feature:

<xsl:if test="contains(//udt:Context/udt:UserRoles,'|NameOfRole|')">

    <xsl:value-of select="udt:NameOfColumnToHide"/>

</xsl:if>

 

 
New Post
11/22/2008 8:32 AM
 

Thank you all for such an instant reply.

I think I managed to implement it with "visibility" of columns and "display all columns" sertting in UDT.

 

Although, I have another issue with UDT.

I've set a UDT with 2 columns: image and URL (to a page in portal).

In HTML Template for the UDT, I used "<td>[Title_UDT_Caption]</td>" token and what I've got is actual "path" of the page:

Let's say, I'm adding "Event" page under "Today" enrty in portal's menu, then I've got " Today Event" in the UDT and not "Event" only.

 

Any ideas what I do wrong?

 

 

 
New Post
11/22/2008 5:12 PM
 

It is not a bug, it is a feature.

Goto Manage UDT and edit the URL column, and enable "Abbreviated URL"

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUDT - Columns By RoleUDT - Columns By 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