wet-boew / wet-boew

Web Experience Toolkit (WET): Open source code library for building innovative websites that are accessible, usable, interoperable, mobile-friendly and multilingual. This collaborative open source project is led by the Government of Canada.
https://wet-boew.github.io/wet-boew/index-en.html
Other
1.6k stars 660 forks source link

mega menu and two column issue #5749

Closed pliz22 closed 10 years ago

pliz22 commented 10 years ago

I am having an issue here, maybe code would be useful, but i will try to describe it first. i am using WET 4.0.3, a mega menu and a two column display. when the link that i click on exists both in the mega menu and the two column then the mega menu is not parsed correctly. here is what works correctly: click a link in mega menu on a page that is not two column, that page loads up and the mega menu is parsed and the current page is highlighted in the mega menu with nav current. click a link in mega menu on a page that is two column BUT THAT link does not exist in the two column thing, then the mega menu is parsed and the current page is highlighted in the mega menu with nav current. here it does not work: click a link in mega menu on a page that is two column AND THE LINK exists in the two column thing, then the mega menu is NOT parsed, the current page is instead highlighted in the two column with nav current. am i explaining correctly or would code be needed?

pjackson28 commented 10 years ago

@pliz22 I wasn't able to reproduce the issue. I put the same link in the top menu and the side menu and both were identified as current. Could it be that somehow the link changed in the mega menu in the third scenario? Could you please post the URLs for each of the links in question?

pliz22 commented 10 years ago

which file and or line does the nav current get done in? i'd like to figure out how it does that and maybe fix my problem.

i notice, for example, that in the mega menu the link "address and direct deposit change catid 5000" will be wb-navcurrent, even though the current page URL is a different one, "direct deposit change foreign catid 5555" 5555 is a subset (child) of 5000, and this is how the breadcrumb is structured. how or why is cat.aspx?catid=5000 set to wb-navcurrent when the URL of the page is cat.aspx?catid=5555? how does it know this?

pliz22 commented 10 years ago

i think i will post the source of the page and the mega menu as i am getting it from the browser i have compared line by line the source of a page that is working and the source of a page that is not working.

i'm not sure how the github markdown works so here is the index.html, cut and paste into an IDE

<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
    <head>
        <meta charset="utf-8" />
        <!-- WET 4.0.3 -->
        <title>Canada Pension Plan and Old Age Security (CPP/OAS)</title>
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <!-- Meta data -->
        <meta name="description" content="Web Experience Toolkit (WET) includes reusable components for building and maintaining innovative Web sites that are accessible, usable, and interoperable. These reusable components are open source software and free for use by departments and external Web communities" />
        <meta name="dcterms.title" content="Content page - Web Experience Toolkit" />
        <meta name="dcterms.creator" content="French name of the content author / Nom en français de l'auteur du contenu" />
        <meta name="dcterms.issued" title="W3CDTF" content="Date published (YYYY-MM-DD) / Date de publication (AAAA-MM-JJ)" />
        <meta name="dcterms.modified" title="W3CDTF" content="Date modified (YYYY-MM-DD) / Date de modification (AAAA-MM-JJ)" />
        <meta name="dcterms.subject" title="scheme" content="French subject terms / Termes de sujet en français" />
        <meta name="dcterms.language" title="ISO639-2" content="eng" />
        <!-- Meta data-->
        <!--[if gte IE 9 | !IE ]><!-->
        <link href="../dist/assets/favicon.ico" rel="icon" type="image/x-icon" />
        <link rel="stylesheet" href="../dist/css/wet-boew.min.css" />
        <!--<![endif]-->
        <link rel="stylesheet" href="../dist/css/theme.min.css" />
        <!--[if lt IE 9]>
        <link href="../dist/assets/favicon.ico" rel="shortcut icon" />
        <link rel="stylesheet" href="../dist/css/ie8-wet-boew.min.css" />
        <link rel="stylesheet" href="../dist/css/ie8-theme.min.css" />
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js"></script>
        <script src="../dist/js/ie8-wet-boew.min.js"></script>
        <![endif]-->
        <!-- CustomScriptsCSSStart -->

        <link rel="stylesheet" href="../custom/59039.css" />

        <link rel="Stylesheet" href="../custom/custom.css" />
        <!--[if lte IE 8]>
        <link rel="Stylesheet" href="../custom/custom-ie.css" />
        <![endif]-->
        <!--[if gt IE 8]><!-->
        <link rel="Stylesheet" href="../custom/custom-notie.css" />
        <!--<![endif]-->

        <link href="../custom/sitemapstyler/sitemapstyler.min.css" media="screen" rel="stylesheet" type="text/css" />

        <!-- CustomScriptsCSSEnd -->
        <noscript><link rel="stylesheet" href="../dist/css/noscript.min.css" /></noscript>
    </head>

<body vocab="http://schema.org/" typeof="WebPage" 

        class="b59039"

 >

        <ul id="wb-tphp">
            <li class="wb-slc">
                <a class="wb-sl" href="#wb-cont">Skip to content</a>
            </li>

            <li class="wb-slc visible-md visible-lg">
                <a class="wb-sl" href="#wb-info">Skip to institutional links</a>
            </li>

<li class="wb-slc visible-md visible-lg">
                <a class="wb-sl" href="#wb-sec">Skip to secondary menu</a>
            </li>

        </ul>

        <header role="banner">
            <div id="wb-bnr">
                <div id="wb-bar">
                    <div class="container">
                        <div class="row">

<object id="gcwu-sig" type="image/svg+xml" tabindex="-1" role="img" data="../dist/assets/sig-en.svg" aria-label="Government of Canada"></object>
<ul id="gc-bar" class="list-inline">

    <li><a href="http://www.canada.gc.ca/menu-eng.html" rel="external">Canada.gc.ca</a></li>
    <li><a href="http://www.servicecanada.gc.ca/eng/home.shtml" rel="external">Services</a></li>
    <li><a href="http://www.canada.gc.ca/aboutgov-ausujetgouv/depts/menu-eng.html" rel="external">Departments</a></li>

    <li id="wb-lng"><h2>Selection</h2>
    <ul class="list-inline">

        <li><a lang="fr" href="?lang=fr&amp;catid=10372">Français</a></li>

    </ul>
</li>

</ul>

                            <section class="wb-mb-links col-xs-12 visible-sm visible-xs" id="wb-glb-mn">
                                <h2>Menu</h2>
                                <ul class="pnl-btn list-inline text-right">
    <li><a href="#mb-pnl" title="Menu" aria-controls="mb-pnl" class="overlay-lnk btn btn-xs btn-default" role="button"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Menu</span></span>
    </a></li>
</ul>
<div id="mb-pnl"></div>

                            </section>

                        </div>
                    </div>
                </div>

                <div class="container">
                    <div class="row">
                        <div id="wb-sttl" class="col-md-5">
                            <a href="wppa.aspx">
    <span>CRT-ORC</span>
</a>

                        </div>
                        <object id="wmms" type="image/svg+xml" tabindex="-1" role="img" data="../dist/assets/wmms.svg" aria-label="Symbol of the Government of Canada"></object>

                        <section id="wb-srch" class="visible-md visible-lg">
                            <h2>Search</h2>
                            <form action="sasearch.aspx" method="get" role="search" class="form-inline">

    <div class="form-group">
        <label for="gcwu-srch">search.project</label>
        <input id="gcwu-srch" class="form-control" name="gcwu-srch" type="search" value="" size="27" maxlength="150" />
    </div>

    <button type="submit" id="wb-srch-sub" class="btn btn-default">Search</button>

</form>

                        </section>

                    </div>
                </div>
            </div>

<nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" typeof="SiteNavigationElement" data-ajax-fetch="Menu.aspx?ssd=tsxurqumh1xuu42yrhg31f5i" data-trgt="mb-pnl" >
    <div class="pnl-strt container visible-md visible-lg nvbar">
    <h2>Menu</h2>
    <div class="row">
        <ul class="list-inline menu" role="menubar">

            <li><a href="#" class="item">Canada Pension Plan and Old Age Security (CPP/OAS)</a></li>
            <li><a href="#" class="item">Page management</a></li>
            <li><a href="prjs.aspx" class="item">Projects</a></li>

            <li><a href="adms.aspx" class="item">Administration</a></li>

            <li><a href="llg.aspx?lgo=1" class="item">Logout</a></li>

        </ul>
    </div>
    </div>
</nav>

            <nav role="navigation" id="wb-bc" property="breadcrumb">
                <h2>You are here:</h2>
                <div class="container">
    <div class="row">
        <ol class="breadcrumb">
            <li><a href="../wppa.aspx">Home</a></li><li><a href="cat.aspx?catid=1297">Canada Pension Plan and Old Age Security (CPP/OAS)</a></li><li><a href="cat.aspx?catid=1297">Notices</a></li><li>agaga</li>
        </ol>
    </div>
</div>

            </nav>

        </header>

        <div class="container">
            <div class="row">

<main role="main" property="mainContentOfPage" class="col-md-9 col-md-push-3">

            <h1 id="wb-cont" property="name">agaga</h1>

<form method="post" action="#" id="ctl00">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTgwODU2NDAwM2Rk1qfOBv4szBZpYUbnyfm28/jvfu+Eqti36wi4G9n+1kI=" />
</div>

<div class="aspNetHidden">

    <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="0FA7EC4B" />
</div>

    <div class="clear"></div><p><a href="#test.test">link to test</a></p>
<p>&nbsp;</p>
<p><a id="test.test" name="test.test"></a>blablabla</p><br />

</form>

            <dl id="wb-dtmd" property="dateModified">
    <dt>Last Updated:</dt>
    <dd><time>2012-11-17</time></dd>
</dl>

        </main>

    <nav id="wb-sec" role="navigation" typeof="SiteNavigationElement" class="col-md-3 col-md-pull-9 visible-md visible-lg"><h2>Notices</h2><ul class="list-group menu list-unstyled"><li><a class="list-group-item" href="cat.aspx?catid=10372">agaga</a></li><li><a class="list-group-item" href="cat.aspx?catid=10212">Testing</a><ul class="list-group list-unstyled"><li><a class="list-group-item" href="cat.aspx?catid=10213">child one</a></li></ul></li><li><a class="list-group-item" href="http://www2.gibson.com/Products/Electric-Guitars/Les-Paul/Gibson-USA/Les-Paul-Standard.aspx">Standard (catid 10226)</a></li></ul></nav>

            </div>
        </div>

        <footer role="contentinfo" id="wb-info" data-ajax-replace="Footer.aspx?ssd=tsxurqumh1xuu42yrhg31f5i" data-trgt="ft" class="visible-sm visible-md visible-lg"><div id="ft"></div></footer>

        <!--[if gte IE 9 | !IE ]><!-->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js"></script>
        <script src="../dist/js/wet-boew.min.js"></script>
        <!--<![endif]-->
        <!--[if lt IE 9]>
        <script src="../dist/js/ie8-wet-boew2.min.js"></script>
        <![endif]-->

        <!-- CustomScriptsStart -->

        <script src="../custom/sitemapstyler/sitemapstyler.min.js" type="text/javascript"></script>

        <!-- CustomScriptsEnd -->
    </body>
</html>
pliz22 commented 10 years ago

and here is the source from the mega menu

<!DOCTYPE html>
<html lang="en">
    <div class="pnl-strt container visible-md visible-lg nvbar">
        <h2>Menu</h2>
        <div class="row">
            <ul class="list-inline menu" role="menubar">

                <li><a href="#" class="item">Canada Pension Plan and Old Age Security (CPP/OAS)</a>
                    <ul class="sm list-inline" role="menu">
                            <li style="display:inline-block"><a href="cat.aspx?catid=1297"><span class="glyphicon glyphicon-chevron-right mrgn-rght-sm" />Landing page</a></li>
                            <li style="display:inline-block"><a href="sasearch.aspx"><span class="glyphicon glyphicon-chevron-right mrgn-rght-sm" />Advanced search</a></li>
                            <li style="display:inline-block"><a href="newc.aspx"><span class="glyphicon glyphicon-chevron-right mrgn-rght-sm" />What's new</a></li>

                            <li style="display:inline-block"><a href="pending.aspx"><span class="glyphicon glyphicon-chevron-right mrgn-rght-sm" />Pending</a></li>
                            <li style="display:inline-block"><a href="expired.aspx"><span class="glyphicon glyphicon-chevron-right mrgn-rght-sm" />Expired</a></li>

                            <li style="display:inline-block"><a href="docs.aspx"><span class="glyphicon glyphicon-chevron-right mrgn-rght-sm" />Files</a></li>
                            <li style="display:inline-block"><a href="docsimgs.aspx"><span class="glyphicon glyphicon-chevron-right mrgn-rght-sm" />Images</a></li>

                            <li style="display:inline-block"><a href="updatecategory.aspx"><span class="glyphicon glyphicon-chevron-right mrgn-rght-sm" />Manage</a></li>

                        <br />
                        <li style="font-size:80%" class="col-xs-2"><a href="cat.aspx?catid=1300">Emergencies<span class="srts7">expired/ hidden&nbsp;</span></a></li>

                        <li style="font-size:80%" class="col-xs-2"><a href="cat.aspx?catid=1297">Notices</a><ul><li><a href="cat.aspx?catid=10372">agaga</a></li><li><a href="cat.aspx?catid=10212">Testing</a></li><li><a href="http://www2.gibson.com/Products/Electric-Guitars/Les-Paul/Gibson-USA/Les-Paul-Standard.aspx">Standard</a></li></ul></li>

                        <li style="font-size:80%" class="col-xs-2"><a href="cat.aspx?catid=1296">Procedures</a><ul><li><a href="cat.aspx?catid=3644">Address and Direct Deposit Change</a></li><li><a href="cat.aspx?catid=6729">Allowance and Allowance for the Survivor</a></li><li><a href="cat.aspx?catid=7635">Appeals</a></li><li><a href="cat.aspx?catid=3651">Applications, Forms and Letters</a></li><li><a href="cat.aspx?catid=3655">Authentication and Releasing Information</a></li><li><a href="cat.aspx?catid=3646">Call Escalation</a></li><li><a href="cat.aspx?catid=4352">Call Handling for Referrals</a></li><li><a href="cat.aspx?catid=5268">Capturing Transactions</a></li><li><a href="cat.aspx?catid=6848">Child Rearing Provision </a></li><li><a href="cat.aspx?catid=6850">Children (benefit)</a></li><li><a href="cat.aspx?catid=3647">Complaints</a></li><li><a href="cat.aspx?catid=6851">Credit Splitting</a></li><li><a href="cat.aspx?catid=3648">Death </a></li><li><a href="cat.aspx?catid=6854">Death (benefit)</a></li><li><a href="cat.aspx?catid=7034">Deductions from Payments</a></li><li><a href="cat.aspx?catid=1360">Direct Deposit Change - Domestic</a></li><li><a href="cat.aspx?catid=3649">Disability</a></li><li><a href="cat.aspx?catid=6467">Documentation</a></li><li><a href="cat.aspx?catid=6128">Earnings and Contributions</a></li><li><a href="cat.aspx?catid=5635">Employment History</a></li><li><a href="cat.aspx?catid=2962">Energy Cost Benefits</a></li><li><a href="cat.aspx?catid=3650">Estimates</a></li><li><a href="cat.aspx?catid=3303">General Enquiry</a></li><li><a href="cat.aspx?catid=6855">Guaranteed income Supplement</a></li><li><a href="cat.aspx?catid=9561">Incapacity Provision</a></li><li><a href="cat.aspx?catid=7864">Incarcerated Clients</a></li><li><a href="cat.aspx?catid=4995">Increase in Benefit Rates </a></li><li><a href="cat.aspx?catid=10016">Integrity Activities</a></li><li><a href="cat.aspx?catid=5014">International Social Security Agreements</a></li><li><a href="cat.aspx?catid=7818">IVR - Interactive Voice Response System </a></li><li><a href="cat.aspx?catid=7602">Language Change</a></li><li><a href="cat.aspx?catid=6778">Legal Status</a></li><li><a href="cat.aspx?catid=5252">Legislation - Enquiries</a></li><li><a href="cat.aspx?catid=3796">Lost, Misplaced or Stolen Personal Information or Identity Documents </a></li><li><a href="cat.aspx?catid=2953">Mailing Errors</a></li><li><a href="cat.aspx?catid=6906">Marital Status</a></li><li><a href="cat.aspx?catid=2900">Media Enquiries</a></li><li><a href="cat.aspx?catid=2588">Mobile Outreach Services</a></li><li><a href="cat.aspx?catid=1549">Name Change</a></li><li><a href="cat.aspx?catid=2073">New Horizons for Seniors Program (NHSP)</a></li><li><a href="cat.aspx?catid=5943">Notes and Warnings</a></li><li><a href="cat.aspx?catid=6856">Old Age Security (pension)</a></li><li><a href="cat.aspx?catid=3652">Online Services</a></li><li><a href="cat.aspx?catid=6857">Options</a></li><li><a href="cat.aspx?catid=3623">Overpayment Recovery</a></li><li><a href="cat.aspx?catid=3653">Payments</a></li><li><a href="cat.aspx?catid=7189">Penalties</a></li><li><a href="cat.aspx?catid=6858">Pension Sharing</a></li><li><a href="cat.aspx?catid=5609">Portability </a></li><li><a href="cat.aspx?catid=3654">Post Mortem Applications</a></li><li><a href="cat.aspx?catid=9972">Postal Disruptions</a></li><li><a href="cat.aspx?catid=8901">Post-Retirement (benefit)</a></li><li><a href="cat.aspx?catid=5168">Private Companies Advertising Services Related to the Canada Pension Plan or Old Age Security</a></li><li><a href="cat.aspx?catid=6799">Processing Time Frames</a></li><li><a href="cat.aspx?catid=3529">Release of a Suspended OAS Account</a></li><li><a href="cat.aspx?catid=4456">Renewal of Income Tested Benefits</a></li><li><a href="cat.aspx?catid=6846">Residence </a></li><li><a href="cat.aspx?catid=6859">Retirement (pension)</a></li><li><a href="cat.aspx?catid=1555">Searching for a Client / National Searches</a></li><li><a href="cat.aspx?catid=3040">Social Insurance Number (SIN) - Enquiries</a></li><li><a href="cat.aspx?catid=3656">Statement of Contribution</a></li><li><a href="cat.aspx?catid=6680">Survivor (pension)</a></li><li><a href="cat.aspx?catid=3657">T4 and Taxation</a></li><li><a href="cat.aspx?catid=7817">Voice Response (IVR)<span class="srts4">hidden</span></a></li><li><a href="cat.aspx?catid=2767">Work Item Inventory Distribution System (WIID)</a></li></ul></li>

                        <li style="font-size:80%" class="col-xs-2"><a href="cat.aspx?catid=1295">References</a><ul><li><a href="cat.aspx?catid=1307">Acts, Regulations, and Policies</a></li><li><a href="cat.aspx?catid=1338">Appeals</a></li><li><a href="cat.aspx?catid=1305">Applications, Forms, and Letters</a></li><li><a href="cat.aspx?catid=1348">Calendars</a></li><li><a href="cat.aspx?catid=1342">Codes and Screens</a></li><li><a href="cat.aspx?catid=1306">Description of Benefits and Provisions</a></li><li><a href="cat.aspx?catid=1301">Documentation and Evidence</a></li><li><a href="http://www.bankofcanada.ca/en/rates/exchange.html">Exchange rates</a></li><li><a href="cat.aspx?catid=1826">External Referrals and Links</a></li><li><a href="cat.aspx?catid=1339">Glossary</a></li><li><a href="cat.aspx?catid=1345">Guides & Manuals</a></li><li><a href="cat.aspx?catid=1341">Income</a></li><li><a href="cat.aspx?catid=1350">International</a></li><li><a href="cat.aspx?catid=3013">Language of documentation </a></li><li><a href="cat.aspx?catid=10228">New Reference</a></li><li><a href="cat.aspx?catid=9098">Online Services</a></li><li><a href="cat.aspx?catid=1346">Rates<span class="srts4">hidden</span></a></li><li><a href="cat.aspx?catid=4063">Rates - CPP</a></li><li><a href="cat.aspx?catid=4041">Rates - OAS</a></li><li><a href="cat.aspx?catid=1302">Samples</a></li><li><a href="cat.aspx?catid=1347">Taxes and Tax Rates</a></li></ul></li>

                        <li style="font-size:80%" class="col-xs-2"><a href="cat.aspx?catid=1298">Regions</a><ul><li><a href="http://service-wiki.prv/mediawiki/index.php/Community_Services_Available_Locally">Community Services Available Locally</a></li><li><a href="http://offices-bureaux.prv/opd/index.cfm?APP=SEARCH&amp;ACT=SEARCH_GEO&amp;LANG=E">Office Profiles - Search for a SCC</a></li><li><a href="cat.aspx?catid=2731">Postal Delivery and Payments</a></li><li><a href="cat.aspx?catid=5373">Processing Centre E-mail Addresses</a></li><li><a href="cat.aspx?catid=1734">Program and Procedure Changes</a></li><li><a href="cat.aspx?catid=7165">Provinces and Territories - Referral Information</a></li><li><a href="cat.aspx?catid=5434">Provincial - Territorial Benefits</a></li><li><a href="cat.aspx?catid=7161">Return Addresses</a></li><li><a href="cat.aspx?catid=1735">Service Canada/ Government of Canada/Media issue/ Awareness</a></li><li><a href="cat.aspx?catid=1733">Systems and On-Line Services</a></li><li><a href="cat.aspx?catid=5435">zArchive<span class="srts4">hidden</span></a></li></ul></li>

                        <li style="font-size:80%" class="col-xs-2"><a href="cat.aspx?catid=1299">Staff Toolkit</a><ul><li><a href="cat.aspx?catid=8130">Address Change<span class="srts4">hidden</span></a></li><li><a href="cat.aspx?catid=1802">All Staff Communiqués</a></li><li><a href="cat.aspx?catid=3803">Call Centres<span class="srts4">hidden</span></a></li><li><a href="cat.aspx?catid=3012">Call Handling</a></li><li><a href="cat.aspx?catid=2744">CRT User Guide </a></li><li><a href="cat.aspx?catid=8821">Detailed Call Tracking</a></li><li><a href="cat.aspx?catid=1311">Employee Information</a></li><li><a href="cat.aspx?catid=10370">Hidden flag test<span class="srts4">hidden</span></a></li><li><a href="cat.aspx?catid=1310">Learning<span class="srts4">hidden</span></a></li><li><a href="cat.aspx?catid=8625">Mailroom Support</a></li><li><a href="cat.aspx?catid=4243">National Training Coordination</a></li><li><a href="cat.aspx?catid=4364">Office Profiles User Guide</a></li><li><a href="cat.aspx?catid=7061">Special Projects / International Operations (IO) Enquiry Line 613-957-1954</a></li><li><a href="cat.aspx?catid=1312">Telephone Usage</a></li></ul></li>

                    </ul>
                </li>
                <li><a href="#" class="item">Page management</a>
                <ul class="sm list-inline"><li><a href="createin.aspx?catid=10372">Add a child item</a></li><li>2 columns from 1297</li><li><a href="cat.aspx?catid=10372&amp;refresh=10372">Refresh from database</a></li><li><details><summary role="menuitem">Authors</summary><ul role="menu"><li><a role="menuitem">Author, original:  julia.bootsma</a></li><li><a role="menuitem">Author, updated:  pierre.lizotte</a></li><li><a role="menuitem">Author, approver:  </a></li></ul></details></li><li><a href="update.aspx?catid=10372">Update and move to pending</a></li><li><a href="expire.aspx?catid=10372">Expire this item</a></li><li><a href="?catid=10372&amp;moving=10372">Move this item</a></li><li><a href="?catid=10372&amp;preview=preview" target="_blank">Preview window</a></li></ul>
                </li>
                <li><a href="prjs.aspx" class="item">Projects</a></li>

                <li><a href="adms.aspx" class="item">Administration</a></li>
                <li><a href="llg.aspx?lgo=1" class="item">Logout</a></li>
            </ul>
        </div>
    </div>
</html>
pliz22 commented 10 years ago

if there is any way any one has some moments to spare, it's driving me nuts, thanks

pjackson28 commented 10 years ago

@pliz22 I corrected your code posts. In the future, use three back ticks (reverse appostrophe's) followed by "html" right before the block of HTML and three back ticks after the HTML.

pjackson28 commented 10 years ago

@pliz22 I tried using query strings like you did and it worked fine with both the top and side menu as well (both get wb-navcurr). Was is the file name and query string that you are using that is causing the issue? Is that combination in the breadcrumb trail also? Could you try with v4.0.4 and see if it makes a difference?

pliz22 commented 10 years ago

i'm sorry, i think i may have mispresented, the issue is that the mega menu is not loading up. it stays the default menu, and in a small browser the button cannot be clicked on. i don't know if the issue is because of wb-navcurr exactly. but i have two pages that differ only by their placement in the

pjackson28 commented 10 years ago

There are a couple of possibilities. First check to see if there are any JavaScript errors in the error console. If there are any then that would prevent the menu from loading or the button from opening. A second possibility could be that the data-ajax-fetch URL is incorrect for you sub page. I looked at the URL "Menu.aspx?ssd=tsxurqumh1xuu42yrhg31f5i" and I can see how that could break if any of your pages are in directories (unless Menu.aspx is made available from every directory).

pliz22 commented 10 years ago

well, i changed the address, to ../content/ but it still works as before. the other suggestion lead me to something else, maybe i will find out what. there is a sitemapstyler.js in the page, and when i logout, to view the website as a normal anonymous user, it WORKS. so i removed the sitemapstyler.css and js, tried it again, but it still didn't work. so i logged out to view it again as an anonymous user, and it works.

so there is something... something somewhere in my code. i feel like i am on a lead once again. i will compare the two sources, between the content administration and anonymous view. there must be something in there.

thanks again, i will update further, maybe i will be able to close this

pjackson28 commented 10 years ago

Does AJAX work when you are logged in? Perhaps something is blocking the AJAXing from working which would prevent the menu from loading (since it loads the menu through AJAX).

pliz22 commented 10 years ago

well, i finally figured out my problem. there was an <li> with nothing clickable. you can't just put plain text in the mega menu, it has to have some kind of click property like an <a href> or a <details> or something. before the text was saying <li>Two columns inherited from 2222</li> all i did was change it to an href and put in <li><a href="2222">Two columns inherited from here</a></li> now it works