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, ...Skin Per RoleSkin Per Role
Previous
 
Next
New Post
10/15/2011 5:34 AM
 
I am currently investigating Dot Net Nuke 6 as a CMS solution for a new project , I have a requirement that I need to be able to configure skins on a role basis , and when the user that falls under a respective  role logs in  , then the respective skin should load up at runtime. Its a must have for this project and if I cannot achieve this then DNN would not be a solution for us.
 
New Post
10/15/2011 7:33 AM
 
There are 3 thing you can do.

A. Create a clone of a page and give one role acces to one page and the other role another page.
Both pages can have the same (cloned) content, but a different skin.

B. If the different between the Roles skins is only CSS and not the HTML of the skin you can use a (free) extension we created that lets you load a style sheet for a specific role.
http://www.40fingers.net/WeblogsNews/...

C. There are ways to dynamically load the skin based on all kinds of properties, but you would have to add some .NET code to your skin.
Further explained here:
http://www.kalyani.com/2009/12/dotnet...
 
New Post
10/16/2011 5:13 PM
 

A. Create a clone of a page and give one role acces to one page and the other role another page.
Both pages can have the same (cloned) content, but a different skin. - This will have too much maintainenace overhead

B. If the different between the Roles skins is only CSS and not the HTML of the skin you can use a (free) extension we created that lets you load a style sheet for a specific role.
http://www.40fingers.net/WeblogsNews/... -    - I am not sure how this can do a CSS per role , could you please explain a bit more.

C. There are ways to dynamically load the skin based on all kinds of properties, but you would have to add some .NET code to your skin.
Further explained here:
http://www.kalyani.com/2009/12/dotnet...  - This seems to  no longer be available .
 
New Post
10/17/2011 2:01 AM
 
Ok, I corrected the link at C.

With our 40FINGERS Style Helper skin object you would load the individual CSS files using the IfRole Filter.

Load a stylesheet for administrators
<fortyfingers:STYLEHELPER ID="FFSH1" IfRole="Administrators" AddCssFile="css/Admin.css" runat="server" />

Load a stylesheet for Role1
<fortyfingers:STYLEHELPER ID="FFSH2" IfRole="Role1" AddCssFile="css/Role1.css" runat="server" />

Load a stylesheet for everybody but administrators
<fortyfingers:STYLEHELPER ID="FFSH1" IfRole="!Administrators" AddCssFile="css/NotAdmin.css" runat="server" />

You can also use multiple comma separated roles BTW; IfRole="Role1,Role2,Role3"

HTH
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin Per RoleSkin Per 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