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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Simple Accordion Tab Code PLEASE!Simple Accordion Tab Code PLEASE!
Previous
 
Next
New Post
9/23/2015 6:54 PM
 
Is there any way to get his to work as an accordion? 
<dnn:MENU menustyle="Accordion" runat="server" />dnn:MENU>

I already have a long-hand aproach hard coded in the skin file , but it looks like id have to create several additional skins to differentiate NodeSelectors between rootMenu items (4 of them).

Is there a way, using the same skin file on any given page, that can I tell which rootMenu item I am on, loop thru it's first level of child pages as tabs, while listing their children in an expandable accordion part as it goes?

At the very least is there and conditional statements i can use on the skin file that writes/doesn't write blocks of menu code? Any help is greatly appreciated

 
New Post
9/25/2015 10:20 PM
 
So just in case someone is where i was. Heres what i did.

I brought in the jquery

`<%@ Register TagPrefix="dnn" TagName="JQUERY" Src="~/Admin/Skins/jQuery.ascx" %>`

Set this
`
$(function() {
$( "#lobNavs" ).accordion({
collapsible: true,
heightStyle: "content",
active: curNode\\I set a var in the page tag to ooen to specific tag
});
});
`

and used this menu code.

``

and styled is accordingly. Gave me what i needed, kinda....

I still need to be able to show/not show content based on the root parent. Which was an important part of what i need to include on the skin/ascx file. I have this but it only works on a single page(which is the parent)

`<% if (PortalSettings.ActiveTab.TabName.Equals("Wealth Management")) { %>`

This works too, but again, only for the single page

`<% if (DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings().ActiveTab.ParentId.Equals(480)) { %>`

When I find this out ill post that too. Happy DNNing!
 
New Post
9/27/2015 7:17 PM
 
theodro gomez wrote:

"...At the very least is there and conditional statements i can use on the skin file that writes/doesn't write blocks of menu code? Any help is greatly appreciated..."

I have several answers here that work for this part of my question....opened DNN just a little more for me and hopefully for you.

The DNN ascx if/else() statements look like this:

<% if (singleConditionExample)  { %>
     Hello World");

<% } else if (multipleConditionsHere() || multipleConditionsHere() && multipleConditionsHere())   { %>    // standard operators. you get the idea.
     elseifConditionsHere");

<% } else { %>
     Else Msg");

<% } %>

As for getting DNN page tabId, tabName, ParentId, these went into the if() conditions.

//CURRENT PAGE ROOT PARENT FROM DNN BREADCRUB

PortalSettings.ActiveTab.BreadCrumbs[0]

//CURRENT DNN PAGE NAME

PortalSettings.ActiveTab.TabName.Equals("Wealth Management")

//CURRENT DNN PAGE PARENT ID

DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings().ActiveTab.ParentId.Equals(480)

If you want to write them to the page:

<%=PortalSettings.ActiveTab.BreadCrumbs(0).FullUrl%>

I'm certain there is more to learn and when I do learn more, as it relates to getting DNN page id, breadbrumbs, etc...i will update this answer.

Cheers!


 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Simple Accordion Tab Code PLEASE!Simple Accordion Tab Code PLEASE!


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