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, ...How do I display the name and link of the Active Page's Root level Parent?How do I display the name and link of the Active Page's Root level Parent?
Previous
 
Next
New Post
2/6/2018 10:43 PM
 
​I am trying to add some code I found on the web in my .ascx file to display a link to the Root Parent from any child or grandchild page. I am using DNN 9.1.1, 
<a href="<%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).FullUrl %>"><%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).TabName %></a>

But I am getting some weird issues. With the code added, while in the edit mode, it makes a class="DNNAjaxPanel" div disappear. this div is used to help when you drag a module into a Content Panel. It is the div just above this div class="DNNEmptyPane dnnSortable dnnModuleManager ui-sortable"

Use the Inspect Element feature of your browser and you will see what I mean.

I this a bug with DNN 9.1.1 or can I not use the code in my ascx file?

Thanks,
Craig

 
New Post
2/7/2018 2:49 PM
 

I will try to add a screen shot with the div class="DnnAjaxPanel" that is there BEFORE I use the code.

When I ADD the code to my skin ascx file it makes the div class="DnnAjaxPanel" disappear. Then when I add a module to that Content Pane it makes all the modules go to that one Pane no matter what other content pane they are currently in.

Is this a bug with DNN 9.1.1 or can I not use the code in my skin ascx file?

 
New Post
2/8/2018 12:18 AM
 
please note that any DIV elements marked as " runat = server " are processed by DNN prior to issuing the page.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/8/2018 12:36 AM
 
Here is what I have at the top of my Skin ascx file:
<%@ Control language="C#" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
<%@ Register TagPrefix="dnn" TagName="JQUERY" Src="~/Admin/Skins/jQuery.ascx" %>
<%@ Register TagPrefix="dnn" TagName="META" Src="~/Admin/Skins/Meta.ascx" %>
<%@ Register TagPrefix="dnn" TagName="MENU" Src="~/DesktopModules/DDRMenu/Menu.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>

Then I have this down farther in my Skin ascx file:




Then in my include dept-submenunav.ascx file I have:


The Code is showing the Root Level Parent correctly on the page visually, but when I am in the DNN Admin mode, the code is causing issues. When I try to add a new module to a Content Pane it makes all the modules go to that one Content Pane no matter what other content pane they are currently in.

The code is causing issues because it makes the div class="DNNAjaxPanel" disappear.

PLEASE TEST by adding the code below to a C# skin ascx file. Then login to DNN admin and try to add a few modules in different content panes and see what happens.
<%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).TabName %>

Then, use the Inspect Element feature of your browser and you will see that the div class="DNNAjaxPanel" has disappeared. If you Inspect Element of a Skin ascx page that doesn't have the code and you will see the div class="DNNAjaxPanel" is there.

Note: the div class="DNNAjaxPanel" is the div just above the div class="DNNEmptyPane dnnSortable dnnModuleManager ui-sortable"

Is this a issue or bug with DNN 9.1.1?

Thanks,
Craig
 
New Post
2/8/2018 6:52 PM
 

Some of the above code didn't post correctly. I am reposting with the missing code:

Here is what I have at the top of my Skin ascx file:
<%@ Control language="C#" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
<%@ Register TagPrefix="dnn" TagName="JQUERY" Src="~/Admin/Skins/jQuery.ascx" %>
<%@ Register TagPrefix="dnn" TagName="META" Src="~/Admin/Skins/Meta.ascx" %>
<%@ Register TagPrefix="dnn" TagName="MENU" Src="~/DesktopModules/DDRMenu/Menu.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>

Then I have this down farther in my Skin ascx file:
 <!-- Start : SubMenu -->
<!--#include file = "includes/dept/dept-submenunav.ascx" -->
<!--// End : SubMenu -->

Then in my include dept-submenunav.ascx file I have:
<nav class="wssubmenu clearfix">
           <ul class="wssubmenu-list">
              <li class="wsli-submenu">
                   <div class="submenuheaderwrap">
                        <div class="submenuheader">
                           <ul>
                               <li><a href="<%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).FullUrl %>"><%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).TabName %></a></li>
                            </ul>
                        </div>
                    </div>
                   <div class="submenu-wrap clearfix">
                       <div class="submenu_full">
                           <div class="second-level-list">
                                <!-- ul submenu items -->
                                <dnn:MENU runat="server" menustyle="navs/sub-menu" NodeSelector="+0,0,2"/>
                               <!--// end ul submenu items -->
                            </div>
                        </div>
                   </div><!-- end submenu-div-->
                </li><!-- end li Parent-->
           </ul>
       </nav>

The Code is showing the Root Level Parent correctly on the page visually, but when I am in the DNN Admin mode, the code is causing issues. When I try to add a new module to a Content Pane it makes all the modules go to that one Content Pane no matter what other content pane they are currently in. 

The code is causing issues because it makes the div class="DNNAjaxPanel" disappear.

PLEASE TEST by adding the code below to a C# skin ascx file. Then login to DNN admin and try to add a few modules in different content panes and see what happens.
<a href="<%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).FullUrl %>"><%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[0]).TabName %></a>

Then, use the Inspect Element feature of your browser and you will see that the div class="DNNAjaxPanel" has disappeared. If you Inspect Element of a Skin ascx page that doesn't have the code and you will see the div class="DNNAjaxPanel" is there.

Note: the div class="DNNAjaxPanel" is the div just above the div class="DNNEmptyPane dnnSortable dnnModuleManager ui-sortable"

Is this a issue or bug with DNN 9.1.1?

Thanks,
Craig

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How do I display the name and link of the Active Page's Root level Parent?How do I display the name and link of the Active Page's Root level Parent?


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