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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...conditional rendering of container skinsconditional rendering of container skins
Previous
 
Next
New Post
3/10/2007 2:11 PM
 
Christopher, that looks like some good re-usable code. Would you mind sharing the working .ascx contents?
 
New Post
3/10/2007 4:39 PM
 
Christopher
If that's what you were looking for you could get some other tips from this post.

About logging: you can check: Admin > Log Viewer
 
New Post
3/11/2007 3:51 AM
 
Hello Sam... Yes, I had some problem with posting the code.. But if you want the file, just send me an email and I mail the code back. I try to explaine more with this example..

1. Put this line before your html code in the skin/container:
<%
Dim isAdmin As Boolean
isAdmin = DotNetNuke.Security.PortalSecurity.IsInRoles(GetPortalSettings().AdministratorRoleName)
%>


2. Then throughout your skin/container, use something like this:
<%If isAdmin Then%>
Do the html that should show up in admin, ex actionbuttons
<%Else%>
Do the html that should show up for non admin
<%End If%>

//christopher
 
New Post
3/20/2007 1:43 AM
 

Hello,

        I have two views on my page.I want all operations of the  module should retain the same page view. If the page the module is on has a specific skin applied to it, other than the default skin, then any other actions within the module, adding/editing settings files, should maintain the same skin.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...conditional rendering of container skinsconditional rendering of container skins


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