Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: disable parent link in categories menu?

  1. #1
    PD24 is offline Junior Member
    Join Date
    Jun 2011
    Posts
    26

    Default disable parent link in categories menu?

    I have a flyout categories menu and i need to disable the parent links:

    Product 1 >>> Accessories >>> TZ130

    I need to disable the link for Accessories

    is there a way to do this in StoreFront or in the xml package?

    Regards
    PD24

  2. #2
    PD24 is offline Junior Member
    Join Date
    Jun 2011
    Posts
    26

    Default

    I need to do this for all parent elements with a child.

    Obviously if its just a parent element then i need to keep the link.

  3. #3
    PD24 is offline Junior Member
    Join Date
    Jun 2011
    Posts
    26

    Cool Solved

    For those looking for a solution:

    I placed the following code to the template.master file:

    Code:
    <script type="text/javascript">
        $(document).ready(function () {
            $("#accordion2 li:has(ul)").hover(function () { $(this).children("a").click(function () { return false; }); });
        });
    </script>
    My menu was called accordion2

    It waits till the DOM is ready then fires the code.

    Hope that helps!