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, ...TIP - Pane Names for NewbiesTIP - Pane Names for Newbies
Previous
 
Next
New Post
1/10/2007 9:22 AM
 

I just finished explaining this to a client, and I've probably explained this a dozen times in the last few months to new Skinners, so here's an attempt to head off problems for some of the newer folk:

The naming of panes in DNN skins is important.  The documentation and most tutorials or books say you MUST have a ContentPane.  That's not exactly true, it's just that without one, you'll break DNN.  The default location for DNN controls, especially admin controls, is the ContentPane.  So if you do not have a pane named ContentPane, then you won't be able to admin your portal, login, or just about anything else useful, INCLUDING CHANGE THE SKIN.

But let's extend this a little further.  The pane names ( the id="..." part of each tag ), for DNN's default skins, besides ContentPane, are TopPane, BottomPane, LeftPane and RightPane.  When starting out skinning, stick to these names.  Sure, you're going to put a Feedback module in the right pane, but don't name it FeedbackPane.  First you might not always want the Feedback module and then it gets confusing, but more important to beginners is that it won't match the default DNN template you get on a basic install.  If you name your panes differently, the modules in the default DNN template won't display.  If you leave the names the same, the module content already exists in those panes and it's much easier to check what your new skin will look like.

You're going to run into enough skinning problems when you start out.  So start by duplicating the existing working skins as much as possible.  Then when you know a little more about what you're doing, and why to do it, branch off in your own direction.  And by the way, if you're going to sell or give away your skins, keep the same naming conventions so you don't get innundated with support emails.

Hope it helps...

Jeff

 
New Post
1/10/2007 10:22 AM
 

That's good advice Jeff.  Thanks for sharing.

One minor thing I would add is that if you change your skin and you already have the modules assigned to a SkinPane that is no longer there, they will still show up for you in the ContentPane.

 


DotNetNuke Modules from Snapsis.com
 
New Post
11/8/2007 6:08 PM
 

That's Good Stuff,

Now here's a question that I don't see answered anywhere.  If you are creating an .ascx based skin, how does DNN know which of your elements are content panes.  Of course it knows to look for an allowable element type (div, p, td and span) with an id of "ContentPane".  But how does it know what other elements are also content panes (such as TopPane, TopPane2, BottomPane, BottomPane2, etc.).  Does it key of off the id?  Does DNN consider all allowable elements (p, td, span, div) with an ID as a content pane, or does the id have to have the word "pane" in it or what?

Thanks,

 
New Post
11/8/2007 6:44 PM
 

It's the runat="server" and there is no need for "pane" in the id

 
New Post
11/9/2007 10:29 AM
 

D'Oh ,

Of course, that makes perfect sense.  Thanks for the clarification.  That just doesn't seem to be documented anywhere.  But it does make sense.

Thanks Again.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...TIP - Pane Names for NewbiesTIP - Pane Names for Newbies


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