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, ...Pane Level Skinning?Pane Level Skinning?
Previous
 
Next
New Post
12/29/2006 2:42 PM
 
I need some help for skinning here is what I am looking to accomplish I have my left and content panes, I have a skin that I want to use (modified the colors in the DNN-Blue), and I want to have the left pane have a more grey theme. I have made two containers (modified the dnn-blue & dnn-grey).

How do I set the page up so that any modules in my left pane use the grey container?
 
New Post
12/29/2006 3:22 PM
 

I don't believe that you can easily do that with DNN, to set a default container for a pane, just a default container for a site, or a page.

Though, with some fancy CSS tricks you could setup the pane's containers to load differently based on the styles for each pane.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
12/29/2006 6:27 PM
 
Maybe you can use the technique described in this post
Or you could just define the two versions in your container.css or skin.css  like this:


#dnn_ContentPane .head
    {
    color:#FF0000;
    }

#dnn_RighttPane .head
    {
    color:#00FF00;
    }
 
New Post
12/30/2006 8:04 PM
 

I made that post Timo pointed to and can add a little more information to it:

Back then I was only doing HTML skinning and was relying on DNN to parse the files and create the ASCX upon upload. The stuff I wrote in that post was for HTML skins. Now I tend to use HTML just for the first skin upload and then I work on the ASCX files directly on the server from there on in.

Here is an example of the resulting code that you need to see in the ASCX file after parsing the HTML and XML files. If you only use ASCX to create your skins or you are modifying an existing ASCX skin, then you only need your version of this code. Note that the DNN Blue skin and container folders contain both the HTML/XML files and the parsed ASCX files. If you only modify the HTML/XML files then you will have to re-parse them on the skins page to see the change. If however you only modify the ASCX files then you can see the changes immediately upon page refresh. In this case, beware that you will lose your ASCX changes if you accidentally re-parse the skin using the original HTML files. It can therefore be a good idea to remove or rename the HTML files in the skin folder in this case.

This example I've given forces the default DNN Blue skin to use the "Text Header - Color Background" container in the "RightPane".

This is your "RightPane" table cell:

<div runat="server" id="RightPane" containertype="G" containername="DNN-Blue" containersrc="Text Header - Color Background.ascx"></div>

Note that by specifiying "G", it is using the "Global" or "Host" skin and container. To make this work on a skin uploaded as "Admin" or "Local", insert "L" instead of "G".

That should either help or further confuse things :)

P.s. I'm not home testing this, but off the top of my head, it is correct.

Regards,
Rob

 
New Post
12/31/2006 12:31 AM
 

Thanks for reminding me of this Rob.  I had forgotten all about that feature of the pane being able to assign the containers.

And one other thing to point out is that the ContainerType, ContainerName, and ContainerSrc are no longer needed.

There is legacy code to still do it that way, but there is also codenow  to just use the ContainerSrc property by itself. You still need to format it with the other properties though.

ContainerSrc="[G]Containers/DNN-Blue/Image Header - Color Background"

There is also the ability to assign it with a cookie if you wanted to, but the cookie assignment is portal wide.  To use a cookie it should be named _ContainerSrc and then the portalid appended to that. So for Portal 0 the cookie would be _ContainerSrc0

 


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Pane Level Skinning?Pane Level Skinning?


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