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, ...Content pane not found - token replacementContent pane not found - token replacement
Previous
 
Next
New Post
5/4/2012 12:40 PM
 

I have been reviewing the use of and replacements of Tokens for the logo. I have a Skin I am developing and put in the code as demonstrated by the ASCX Skinning for Professional Skinners tutorials. 

When i loaded the page up, I got the following error:

Unhandled error loading module.DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot locate ContentPane for Skin 

The Code I am using is below:

ASCX:

<body>
    <div class="main">  <!-- browser  --->
    <dnn:LOGIN runat="server" id="dnnLOGIN" />
        <div id="wrap">  <!-- site  --->
        <div class="nav" runat="server" ID="topnav" visible="true">
            <!-- Logo section   --->
            <div id="Logo"><a title="Specialty Engine Components" href="/"><img src="<% =SkinPath %>images/logo-sec.png" width="240" height="80" alt ="Specialty Engine Components" /></a></ div> <!-- Logo --->
        </div>
        <div class="nav-outer" runat="server" ID="navouter" visible="true"></div>  
        <!-- begin mainbody --> 
        <div class="ContentPane" runat="server" ID="ContentPane" visible="true"></div>
       
            <!-- end content holder -->
        <div class="newsbox" runat="server" ID="news_box" visible="true"></div>
        </div>
        <div class="footerpane" runat="server" ID="footer_pane" visible="true">
            <div class="footer" >
                <div class="footer-text">
                    <p>Copyright © 2012, Street Muscle. All Rights Reserved.</p>
                    <p class="page-footer">
                        <a href="http://www.streetmuscleonline.com/" target="_blank"></a>created by Frustrated
                        Incorporated.</p>
                </div>
            </div>
        </div>
    </div>
</body>

-------------------------------------------------------

CSS:

html, body
{
    height: 100%;
}


body
{
    padding: 0;
    margin: 0;
    background-image: url('images/body_bg.jpg');
    background-repeat:repeat-x;
    font-family: Arial, Helvetica, sans-serif;
    color: #666;
    font-size: 10pt;
}


.main
{
    width: 100%;
    height: 100%;
}




    #wrap
    {
    width: 1005px;
    margin: auto;
    padding: 40px 0 0 0;
    }


.cleared
{
    display: block;
    clear: both;
    float: none;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0;
    height: 0;
}


/* begin Menu  */


#logo
{
    position: absolute;
    top: 10px;
    left: 15px;
    border: 1px orange solid;
    width: 355px;
}


#logo a img
{
    border:0;
}


.nav-outer
{
    float:left;
    width: 77%;
    margin-left: -16px;
    height: 80px;
}


/* ContentPane */


.ContentPane
{
    float: left;
    padding-top: 60px;
    width: 1005px;
    height: auto;
    background-color: white;
}


.newsbox
{
    float: left;
    width: 1005px;
    margin-top: 20px;
    height: 30px;
    background-color: white;
}


.footerpane
{
    margin: 0 auto;
    width: 1005px;
}


.footer
{
    float:left;
    margin-top: 20px;
    margin-bottom: 0;
    width: 1005px;
}


.footer-text p
{
    padding: 0;
    margin: 0;
    text-align: center;
}



Could someone please tell me what I did wrong?

Before I added the line:

<div id="Logo"><a title="Specialty Engine Components" href="/"><img src="<% =SkinPath %>images/logo-sec.png" width="240" height="80" alt ="Specialty Engine Components" /></a></ div> 

It did not have this problem.  The line above is working, I do see the image linked logo, but maybe I missed something here... 

Appreciate all suggestions greatly


 
New Post
5/4/2012 12:44 PM
 

I think this is because the NAV div is not closed.

<div class="nav" runat="server" ID="topnav" visible="true">
            <!-- Logo section   --->
            <div id="Logo"><a title="Specialty Engine Components" href="/"><img src="<% =SkinPath %>images/logo-sec.png" width="240" height="80" alt ="Specialty Engine Components" /></a></ div>

Should be:

 <div class="nav" runat="server" ID="topnav" visible="true"></div>
            <!-- Logo section   --->
            <div id="Logo"><a title="Specialty Engine Components" href="/"><img src="<% =SkinPath %>images/logo-sec.png" width="240" height="80" alt ="Specialty Engine Components" /></a></ div> 

 
New Post
5/4/2012 3:02 PM
 

Thanks for the help, that did take care of the error.  I have been struggling with layout for this. Basically I'm trying to get the Logo and the Nav blocks to be next to each other - horizontal > 

(LOGO)(Nav menu)
 (ContentPane)
 (NewsBox)
 (FooterPane)

With the code I have included here, I see the Logo, in the Top Right of the page, below that, with a Left margin of 240px, I see the Nav block.  
with your above suggestion included, I have come up with the following code: 

ASCX:

<body>
    <div class="main">  <!-- browser  --->
    <dnn:LOGIN runat="server" id="dnnLOGIN" />
        <div id="wrap">  <!-- site  --->
            <!-- Logo section   nav --->
            <div id="Logo"><a title="Specialty Engine Components" href="/"><img src="<% =SkinPath %>images/logo-sec.png" width="240" height="80" alt ="Specialty Engine Components" /></a></ div> <!-- Logo --->
            <div class="nav" runat="server" ID="topnav" visible="true"></div>
        <!-- begin mainbody --> 
        <div class="ContentPane" runat="server" ID="ContentPane" visible="true"></div>
       
            <!-- end content holder -->
        <div class="newsbox" runat="server" ID="news_box" visible="true"></div>
        </div>
        <div class="footerpane" runat="server" ID="footer_pane" visible="true">
            <div class="footer" >
                <div class="footer-text">
                    <p>Copyright © 2012, Street Muscle. All Rights Reserved.</p>
                    <p class="page-footer">
                        <a href="http://www.streetmuscleonline.com/" target="_blank"></a>created by Frustrated
                        Incorporated.</p>
                </div>
            </div>
        </div>
    </div>
</body>

---------------------------------------------------

CSS:

html, body
{
    height: 100%;
}

body
{
    padding: 0;
    margin: 0;
    background-image: url('images/body_bg.jpg');
    background-repeat:repeat-x;
    font-family: Arial, Helvetica, sans-serif;
    color: #666;
    font-size: 10pt;
}

.main
{
    width: 100%;
    height: 100%;
}

    #wrap
    {
    width: 1005px;
    margin: auto;
    padding: 40px 0 0 0;
    }

.cleared
{
    display: block;
    clear: both;
    float: none;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0;
    height: 0;
}


/* begin Menu  */

#logo
{
    position: absolute;
    width: 260px;
    background-color: Red; /* temp setting to see div Logo block behind logo*/
}

#logo a img
{
    border:0;
}

.nav
{
    margin-left: 240px;
    width: 760px ; 
    height: 80px ;
}

/* ContentPane */

.ContentPane
{
    float: left;
    padding-top: 60px;
    width: 1005px;
    height: auto;
    background-color: white;
}

etc...

Please forgive my ignorance here, I trying to teach myself by trial and error. 

1. How do I get the .nav section to be horizontally next to the logo?
I tried to float the logo and the nav sections-left  in the css, but that just screwed it up more.

2. After doing the tutorial and getting the logo image to function correctly, I don't seem to have any control on the style of this section in the CSS, under the section:

#logo
{
    position: absolute;
    width: 260px;
    background-color: Red;    /* temp setting to see div Logo block behind logo  -----  not working?*/ 


- if i remove this code, the skin does not change - reading from the ascx line, I assume. With the ascx line, is there a way to modify that block inside CSS?  

I appreciate your patience and any suggestions you can offer.


 
New Post
5/7/2012 3:01 AM
 

I would suggest using floats for that.

#Logo
{
   float:left;
}


.nav
{
    float:left
}


.ContentPane {
clear:both;}

 

BTW, I see you are using #logo, while this should be #Logo, I think your not using an xhtml doctype?
You really should, to avoid all kind of issues read more: http://www.40fingers.net/WeblogsNews/...

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Content pane not found - token replacementContent pane not found - token replacement


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