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, ...One Skin for Front End and One Skin for Edit Mode ?One Skin for Front End and One Skin for Edit Mode ?
Previous
 
Next
New Post
3/29/2009 4:40 PM
 

Your first problem is solvable if you know ASP.NET (to add to your skin), not with default DNN.

Since a skin is just a user control you can add a placeholder in an "empty" skin file.
Then from code you load the right skin "user control" (ascx file) in that placeholder, depending on the user.

The anwer to the second question is: no, DNN always injects these tags.

(I'm don't see why these would be a problem, if you need spans you can add display inline in your skin)

 
New Post
3/29/2009 5:28 PM
 

Great.

Thank you for the help.

 
New Post
4/1/2009 10:49 PM
 

Hello Timo,

I understand what you mean.

You create an empty placeholder and then populate it with the skin of choice.

How do you get the user info from the skin user control?

 

Thanks.

Didier

 
New Post
4/2/2009 11:31 AM
 

some thing like:

 

        Select Case UserController.GetCurrentUserInfo().Username
            Case "Administrator"
                'do something
            Case "Timo Breumelhof"
                'Do something else
        End Select

 
New Post
4/2/2009 11:38 PM
 

Hello,

I am using SkinA Package for a page and when I am logged in I want to use MinimalExtropy.

Here is my code for the file  /Portals/_default/Skins/SkinA/index.ascx

<% if (UserController.GetCurrentUserInfo().UserID == -1)
   {%>

..........................SKINA .............................

<% }
   else
  { %>
  <asp:PlaceHolder ID="phAdminSkin" runat="server"></asp:PlaceHolder>
<%
       phAdminSkin.Controls.Add(LoadControl("~/Portals/_default/Skins/MinimalExtropy/index.ascx"));
   }
    %>

 

It doesn't seem to do anything.

 

Is it the correct way to do it?

 

Thanks.

 

Didier

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...One Skin for Front End and One Skin for Edit Mode ?One Skin for Front End and One Skin for Edit Mode ?


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