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 ONlyOwnItems ConfigureUDT ONlyOwnItems Configure
Previous
 
Next
New Post
9/28/2008 9:55 PM
 

Sabastian or anyone else that can help,

The OnlyOwnItems xsl predefined code ... I would like to change so that instead of the current user only being able to view things entered by the current user.  Therefore it uses the field of Createdby to define what the user is able to view.  I would like work off of a field I have set up called UserID.  I want to be the only one to posts things to the database and determine who can see them by the entery that I make in the UserID field.  Since I am the one creating the entries in the database, I am the only one that can view them in the existed predefined xsl code so it doesn't work the way I need.

Thanks in advance for your time.

 
New Post
9/29/2008 4:55 AM
 

You don't need to work with OnlyOwnItems.xsl here. Create a column "UserId" or UserName, which is also unique. Apply a filter  
[UserId] = [User:UserId]
or
[UserName] ='[User:Username]'

 
New Post
9/29/2008 4:58 AM
 

another option would be to use a column "owner" of type user profile link, which allows you to select the user by username and verify existance.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/29/2008 9:28 AM
 

That worked perfectly!

 

Thank you so much.

 

Now if I could hit you up for one more small thing.  If I want the superuser to see all records when I log in can I add an "or" type of statement to that filter?

 
New Post
9/29/2008 9:52 AM
 

sure, append " OR [user:username] = 'host' "


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUDT ONlyOwnItems ConfigureUDT ONlyOwnItems Configure


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