Register
Login
 

Support House of Nuke

  

 House of Nuke Forums  
Subject: House menu parent and child items
Prev Next
You are not authorized to post a reply.

Page 2 of 2 << < 12
Author Messages
Georg BaumgarteUser is Offline
Novice
Novice
Posts:1

07/31/2008 4:52 AM Alert 

Hi folks,

I have been using HouseMenu for quite a time. Finally registered because the parent - child issue gave me headaches and I followed this thread to get some infos.

So I wanted to have a menu which does the following:
- when a parent with children is clicked the children should be shown
- all other children under other parents should be hidden

This is my HouseMenu piece in the skin file:
[dnn:housemenu
stylename=""
csselementid="HouseMenuNav"
isrecursive="True"
ShowParent="True"
hidepagenames="False"
showpageicons="False"
mode="s"
orientation="v"
showhome="True"
showadmin="True"
scope="-1"
runat="server"
/]

 

Change [ and ] to < and >

There were some problems with orientation="v" and mode="d" so I use static.

Here is my CurrentItem and CSS-selector (each for one parent item):
#HouseMenuNav #HouseMenuNavCurrentItem, #HouseMenuNav li#HouseMenuNavCurrentItem
{
list-style-image: url(/Portals/_default/Skins/tbs/on.gif);
margin-left: 40px;

}

#HouseMenuNav li#HouseMenuNavItem88 li,
#HouseMenuNav li#HouseMenuNavItem120 li,
#HouseMenuNav li#HouseMenuNavItem121 li,
#HouseMenuNav li#HouseMenuNavItem122 li,
#HouseMenuNav li#HouseMenuNavItem123 li,
#HouseMenuNav li#HouseMenuNavItem124 li,
#HouseMenuNav li#HouseMenuNavItem131 li,
#HouseMenuNav li#HouseMenuNavItem133 li
{

list-style-image: url(/Portals/_default/Skins/tbs/off2.gif);
margin-left: -9999px;
margin-top: -9999px;
display: none;
}

With display:none it doesn't show the item at all. margin-left: -9999px is for screenreaders because some doesn't render display:none correctly.

HTH,
Georg

Guilherme DuarteUser is Offline
Novice
Novice
Posts:1

03/11/2009 2:46 PM Alert 
Hi everybody.

Been fighting this issue also lately...

For now, I believe the only way to work around it is by applying the parent style using javascript.

I used the following method:

Hiding SubItems Using CSS:

#HouseMenuNav li li
{
display: none;
}

Showing Current Item SubItems Using CSS:

#HouseMenuNavCurrentItem ul li
{
display: block;
}

And then showing same level subitems using

var li = document.getElementById('<%="HouseMenuNavItem" & PortalSettings.ActiveTab.ParentID%>').lastChild;
var m = li.childNodes;
var i;
for (i = 0; i<=m.length; i = i + 2) {
m.item(i).style.display = 'block';
}

Hope it helps...

RGDS
o doveUser is Offline
Novice
Novice
Posts:1

07/29/2009 2:51 AM Alert 
HI Guilherme Duarte,

Do you have any sample to show how you made it work? I need to make sure this is going to work before I can use housemenu. It would be great if you can be a bit specific on where to put those code.

Symon GlitchUser is Offline
Novice
Novice
Posts:1

05/28/2010 11:33 AM Alert 
Thats right. Also you can do it with help of php tutorial.
sheng xuanUser is Offline
Novice
Novice
Posts:3

03/16/2011 9:31 PM Alert 
Life of style
it occupies the nerazzurri champions league final win over the psychological advantage, and for bayern speaking, lost the champions league blemish also have hope in February of knockouts compensated, however with seven months at the top of the highest in Europe now compared both teams are suffering a flourishing after the lonely time. After the end of the season, inter milan and bayern Munich are kept on a champions league final on players, but inter but lost the www buyinb2c com/www newamytrade com most important a name that jose mourinho. www buyinb2c com /www newamytrade com Inter in jose mourinho's lead after 45 years recapture the champions league, but he is in after the final directly, and coach Madrid announced it will be abandoned and inter President massimo moratti could only find another person in the summer www buyinb2c com/www newamytrade com
sheng xuanUser is Offline
Novice
Novice
Posts:3

03/16/2011 9:31 PM Alert 
Women’s spring
In 1994, the World Cup came to the United States, Brazil won the championship, while Nike is already superb, are seeking to enter the football field of globalization and Naturally, www buyinb2c com/www newamytrade com Air Yeezys with the Brazilian Football Association signed a 10-year, 1 million sponsorship agreement, and later to about 144 million U.S. dollars contract to 2018. www buyinb2c com/www newamytrade com Nike's philosophy is clear: "For all the fans for their support of the Brazilian team at least the second national teams." www buyinb2c com/www newamytrade com In this connection, Brazil's gold jersey by Nike on the hands of Smart and to create cutting-edge, fade its wilderness atmosphere, great accuracy with the times become, leading future trends. www buyinb2c com/www newamytrade com Nike, the goddess of victory did become a national team of Brazil for luck www buyinb2c com/www newamytrade com
sheng xuanUser is Offline
Novice
Novice
Posts:3

03/16/2011 9:32 PM Alert 
do u known
You can say that this is a historical coincidence, it can be said that fate of time and space. From South America, Brazil Nike football and another from North America found that the process toward a world full of such delicate factors. www buyinb2c com/www newamytrade com In 1970, the Brazilian team won the World Cup in Mexico, ZTE achieved, this is their 3rd win, but win from the last 22 years have passed since 1958; www buyinb2c com/www newamytrade com in 1970, Nike Air Yeezy's two founders strides towards the brand is established. www buyinb2c com/www newamytrade com This year, Bowerman poured the liquid rubber mixture wife baked waffle cake inside, handed down in the waffle sole was born. www buyinb2c com/www
You are not authorized to post a reply.
Page 2 of 2 << < 12

Forums > House Modules > HouseMenu 1.x > House menu parent and child items



ActiveForums 3.6
  

Terms Of Use  |  Privacy Statement
Copyright © 2006-2008 by Avastone Technologies. All rights reserved.