Quick Nav:  Online Store   |   Login | Register

Hidden Children & Tab.HasChildren

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
David Meiser
<20 Posts
Posts:4


06/06/2008 2:52 PM  

Is there anyway to account for pages with hidden children?  Right now, my HasChildren class sets a background image - even for pages with (only) hidden children.

Thanks!

 

John Mitchell
Posts:3471


06/06/2008 3:26 PM  

No, unfortunately DNN sets the HasChildren property and I guess they don't take the hidden property into account.

You could probably use the :empty psuedo class to achieve what you want though.

Let me know if that doesn't work and I'll see if maybe I can reset the HasChildren back to false for any tabs that only have hidden children.

David Meiser
<20 Posts
Posts:4


06/06/2008 4:05 PM  

Unfortunately that won't work.  CSSMenu isn't generating an empty menu (

    ) - which is what I think you're referring to.

     

     

    For reference, my CSS decleration is: 

     

    #nav li.hasChildren {
         background-image: url(rt_arrow.gif);
         background-repeat: no-repeat;
         background-position: right;
    }

    Although, it occurs to me that if I could say something like, "If the

     

     

  • has class 'hasChildren' but isn't followed by '
      '" that would solve the issue.  I just don't think that CSS would allow me to do that (or, if it did, IE6/7 surely wouldn't support it).

       

       

  •  

     

     

    John Mitchell
    Posts:3471


    06/06/2008 6:20 PM  

    Ok, I added a check for the children being visible before setting the HasChildren flag.

    I have attached the DLL to this post.  All you need to do is place this DLL in your /bin folder.

    Let me know how it works.

    David Meiser
    <20 Posts
    Posts:4


    06/09/2008 8:32 AM  


    I just downloaded and tested it this morning.  It works great.

    Thanks for the quick response!

    John Mitchell
    Posts:3471


    06/09/2008 8:34 AM  
    Excellent, I'm glad it worked out.
    Shawn O'Connor
    <20 Posts
    Posts:12


    09/06/2008 10:09 PM  

    I believe I'm trying to do the exact same thing.  I've setup a background image (right arrow) for items that have "hasChildren" attribute -- however, it appears that the background image shows up for tabs that have "hidden" children just below them.

    Would you mind making that update available to me as well?  Thanks.


    Information Data Systems
    www.idsconsulting.com

    Web design services and hosting for dotnetnuke.
    Host Account
    <250Posts
    Posts:104


    09/07/2008 8:04 PM  
    Hi Shawn,
    No problem. I just sent you the latest build.
    Shawn O'Connor
    <20 Posts
    Posts:12


    09/07/2008 9:34 PM  
    I got it. Thank you very much!

    Information Data Systems
    www.idsconsulting.com

    Web design services and hosting for dotnetnuke.
    Jason
    <20 Posts
    Posts:7


    09/11/2008 8:51 AM  

    Sorry to bug you but I also need the new DLL, can you send it to me too.

    Also, my company needs to buy the source code, will this change be in the source package too?

    Thanks

    Jason
    <20 Posts
    Posts:7


    09/12/2008 10:24 AM  

    Hello again,

    It seems nobody answered my request yesterday. So let me explain the problem more preciselly.

    We apply a style to menu items to add a little arrow on the right of the label to indicate there is a submenu. We use {Tab.HasChildren} to know weither or not the style needs to be apply. Unfortunately, HasChildren doesn't detect hidden children and the arrows shows up sometimes when there are no children.

    I have been unable to find how to download an updated version of the DLL. The download link in the order page on this site doesn't allow me to download a new version. What should I do at this point to fix my problem?

    Thanks

    John Mitchell
    Posts:3471


    09/14/2008 7:09 PM  
    Hi Jason,
    I have sent you the latest build. Let me know if you didn't get it or if you have any questions on the new tokens.
    Jason
    <20 Posts
    Posts:7


    09/15/2008 10:22 AM  

    Thank you John, it works perfectly!

    Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
    Forums >Snapsis Product Support >CSS NavMenu > Hidden Children & Tab.HasChildren



    ActiveForums 3.7
    Powered by: Snapsis Software