Products

Solutions

Resources

Partners

Community

About

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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...database field in skin?database field in skin?
Previous
 
Next
New Post
11/21/2006 11:12 PM
 

Hi,

I would like to personalize a page on our site.  I would like to display the users.displayname field prominently on one page.  I made a copy of the skin so I could apply a custom skin for just the one page but I'm not sure how to display the field on the page.

Any ideas?

Thanks,

Bill

 
New Post
11/22/2006 5:07 PM
 
You need to put a skinobject into your skin.  A skinobject is a placeholder that tells DNN where to put a control and you would need a control to pull the username or sitename or whatever from the database.  If the skin is designed in HTML then you use tokens to indicate where the controls should be placed in the skin.  If you design your skin in ascx, you place the reference to the control in the skin.  In HTML the skinobject tokens are formatted like "[LOGIN]" There are already tokens available for HTML skins that will display the user.  Read the skinning documentation, it lists all the tokens for skinobjects that are built into the sytem.  yo may want to adjust your stylesheet and XML files to control the way it looks when it is displayed.
 
New Post
11/22/2006 5:26 PM
 

 

You could also place the following code into your skin without going through the trouble of creating a SkinObject:

<%= DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo().DisplayName %>


DotNetNuke Modules from Snapsis.com
 
New Post
11/22/2006 5:59 PM
 

Thanks for the reply Empulse.  I have a bunch of videos from DNNCreative that I have to review and I know skin objects are in there.

John, that piece of code was as slick as could be.  It worked perfectly!  Thank you.

 

Bill

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...database field in skin?database field in skin?


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