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...Administration ...Administration ...I need coding helpI need coding help
Previous
 
Next
New Post
2/13/2013 7:55 AM
 
Opps, my code was stripped out. Let's try this again:

Dim strFullPageURL = DotNetNuke.Common.Globals.NavigateURL.ToString()

< %
if strFullPageURL = " http : // intranet / page1.aspx" or strFullPageURL = " http: // intranet / page2.aspx" then
% >
your code here
< %
end if
% >

Just be sure to remove the spaces I added.

Mark
 
New Post
2/13/2013 7:55 AM
 
Opps, my code was stripped out. Let's try this again:

Dim strFullPageURL = DotNetNuke.Common.Globals.NavigateURL.ToString()

< %
if strFullPageURL = " http : // intranet / page1.aspx" or strFullPageURL = " http: // intranet / page2.aspx" then
% >
your code here
< %
end if
% >

Just be sure to remove the spaces I added.

Mark
 
New Post
2/14/2013 3:06 PM
 

Thank you very much for the additional help! 

I do think I need to learn how to create a new skin instead of trying to edit the current one, because now the company has added a "Careers" page on which they want completely different content showing in the right rail than what shows on the rest of the site. And when I try to edit the current right rail skin to exclude/include certain content on the Careers page, I'm getting error messages on the entire site except the home page (which is the only page that doesn't use that RightColumn skin).

Could you point me to some tutorials on how to create multiple skins for the right rail and point each page to the correct skin?


 
New Post
2/14/2013 3:07 PM
 

I should have done this earlier - Here is the complete content of the working RightColumn.ascx file without any changes made to it that I need to make. It might shed some light:

<%@ Register TagPrefix="google" TagName="WIDGET" Src="~/Portals/_default/Skins/ika/GoogleWidget.ascx" %>

<div class="panel-container">
<div class="text-container">
    <h2>TALK TO AN <strong>EXPERT</strong></h2>
    <p>
        Click on the button to contact an expert.<br />
        Or email an expert to learn more. <a href="mailto:sales@ikasystems.com" class="mailto">sales@ikasystems.com</a>
    </p>
</div>
<a href=" showWidget();" title="Talk to an Expert" class="button orange">TALK TO AN EXPERT</a>
</div>
<google:WIDGET runat="server" />
<div class="divider"></div>

<div class="panel-container">
<div class="text-container">
    <h2><strong>Modular</strong> solutions</h2>
    <p>
       Focus on today's challenge now and build a path to address tomorrow's with rapidly implemented modular solutions that minimize risk while maximizing agility and efficiency.
    </p>
</div>
<a href="/ModularSolutions.aspx" title="Learn more" class="button blue">Learn more</a>
</div>
<div class="divider"></div>

<% If PortalSettings.Current.ActiveTab.BreadCrumbs(0).TabName <> "Enterprise Solutions" Then%>
<div class="panel-container">
<div class="text-container">
    <h2><strong>Enterprise</strong> solutions</h2>
    <p>
    Transform your business with end-to-end solutions that offer quick time to value and long-term flexibility.
    </p>
</div>
<a href="/EnterpriseSolutions.aspx" title="Learn more" class="button blue">Learn more</a>
</div>
<div class="divider"></div>
<% End If%>

<div class="text-container">


<!-- Start_Module_499 --><div id="dnn_ctr499_ModuleContent" class="DNNModuleContent ModOlsmarKonsultCarouselC">


<style type="text/css">
    #OK499 {height: 483px; width: 238px;}
    .OK499pics  {height: 483px; width: 238px; padding: 0px 0px 0px 0px; border: 0px solid #cccccc;px solid #cccccc; background-color: #eeeeee}
</style>

<div style="padding: 0px 0px 0px 0px;">
    <div id="OK499" style="height: 483px; width: 238px;">
          
                
                <img src='/portals/0/images/Testimonials/rightcolumn/TestimonialMcCallister.jpg'  class="OK499pics" /> 
                <!--[if IE]>
                    <img src='/Portals/0/Images/Testimonials/rightcolumn/TestimonialMcCallister.jpg' 
                        style="height: 483px; width: 238px; 
                            padding: 0px 0px 0px 0px; border: 0px solid #cccccc;px solid #cccccc; 
                            background-color: #eeeeee" /> 
                <![endif]-->
              
                <img src='/portals/0/images/Testimonials/rightcolumn/TestimonialOConnor.jpg'  class="OK499pics" /> 
                <!--[if IE]>
                    <img src='/Portals/0/Images/Testimonials/rightcolumn/TestimonialOConnor.jpg' 
                        style="height: 483px; width: 238px; 
                            padding: 0px 0px 0px 0px; border: 0px solid #cccccc;px solid #cccccc; 
                            background-color: #eeeeee" /> 
                <![endif]-->  
                    
    </div>
    
    
    
    
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.cycle/2.99/jquery.cycle.all.min.js"></script>     
    
    <script type="text/javascript">
        $('#OK499').cycle({
            fx: 'none'
           ,
            timeout: 0, delay: 0, pause: 1, random: 1
        });     
    </script>  
</div>
</div><!-- End_Module_499 --></div>

<div class="panel-container" style="margin-top: 10px;">
    <a href="/ThoughtLeadership/Testimonials.aspx" title="Read more" class="button orange">Read more</a>
</div>
<div id="RightPane" runat="server" class="panel-container"></div>

 
New Post
2/14/2013 3:23 PM
 

I just tried adding if/then code the way Mark suggested, and I got error messages on every site page again. It's probably something I'm doing wrong. There is an error notice in Visual Studio underneath each "L" in URL.

Dim strFullPageURL = DotNetNuke.Common.Globals.NavigateURL.ToString() 

<% if strFullPageURL <> "http://www2.ikasystems-test.com/ModularSolutions.aspx" or strFullPageURL <> "http://www2.ikasystems-test.com/ModularSolutions/CoreAdministrationSolutions.aspx" or strFullPageURL <> "http://www2.ikasystems-test.com/ModularSolutions/GovernmentServicesSolutions.aspx" or strFullPageURL <> "http://www2.ikasystems-test.com/ModularSolutions/MedicalManagementandAnalyticSolutions.aspx" then%> 

<div class="panel-container">
<div class="text-container">
    <h2><strong>Modular</strong> solutions</h2>
    <p>
       Focus on today's challenge now and build a path to address tomorrow's with rapidly implemented modular solutions that minimize risk while maximizing agility and efficiency.
    </p>
</div>
<a href="/ModularSolutions.aspx" title="Learn more" class="button blue">Learn more</a>
</div>
<div class="divider"></div>

<% End If%>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...I need coding helpI need coding help


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