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, ...Using Built-in DNN Tabs on Any PageUsing Built-in DNN Tabs on Any Page
Previous
 
Next
New Post
11/30/2011 1:24 PM
 
So, I've tried and tried to get this working, and hopefully someone here can help w/out just linking me to the sample code on the DotNetNuke site (which I've tried and failed at many times).

I'm trying to reuse code that's already in the DNN CE 6.1 version to produce simple tabbed content across sites (and this I could reuse on any DNN 6.x site once I get it right).

With the help of someone else, I'm close, but it's not working if I'm logged out of the site (and my account is an Admin account). Again, it works when I'm logged in, perfectly.

Once I'm logged out, the expected tab functionality is gone, and all divs display at once.

I'm told the problem is with the last script that starts with <script runat="server">... b/c you can't just paste that into an HTML module. I get that, so I put it in my skin file at the bottom, but when I do that, I get an error code and the skin won't load, so the site reverts to the old default DNN skin (think DNN 4).

The error reads in part: ...ascx(192): error BC30205: End of statement expected.

The file named in the error is my skin.ascx file, and the line (192) is the line below that reads:
protected override void OnInit(EventArgs e)

Here's the code I'm using in the HTML module:

<div class="dnnForm" id="tabs-demo">
<ul class="dnnAdminTabNav">
<li><a href="#tab1">Tab One</a></li>
<li><a href="#tab2">Tab Two</a></li>
<li><a href="#tab3">Tab Three</a></li>
</ul>
<div id="tab1">
<p>This is content for tab 1.</p>
</div>
<div id="tab2">
<p>This is content for tab 2.</p>
</div>
<div id="tab3">

<p>This is content for tab 3.</p>
</div>
</div>

Here's the code I'm using in the Skin file...

<script type="text/javascript">
jQuery(function ($) {
$('#tabs-demo').dnnTabs();
});
</script>

<script runat="server">
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
jQuery.RequestDnnPluginsRegistration();
}
</script>

Chad Voller -- MCP, DNN Aficionado
Leapwise Media
View my View Chad Voller's profile on LinkedIn
 
New Post
11/30/2011 1:41 PM
 

So, turns out my skin file is in VB, and the code I'm using is in C#.

What do I do now?


Chad Voller -- MCP, DNN Aficionado
Leapwise Media
View my View Chad Voller's profile on LinkedIn
 
New Post
11/30/2011 1:50 PM
 
you may specify language of code behind in your skin file,

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/30/2011 2:05 PM
 

Thanks Sebastian... guess I'm not sure what to do with that...

Currently, top of my skin file reads: 

<%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>

Do I just change "vb" to C# and skin.vb to skin.cs ?

Thanks,
Chad


Chad Voller -- MCP, DNN Aficionado
Leapwise Media
View my View Chad Voller's profile on LinkedIn
 
New Post
12/2/2011 3:58 AM
 
ckeck out page directive on default.aspx for proper syntax :)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Using Built-in DNN Tabs on Any PageUsing Built-in DNN Tabs on Any Page


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