cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding links in header messes up entire site?

gronfelt
Champ in-the-making
Champ in-the-making
I've got an odd issue, I'm trying to hide the links in the header (My Dashboard and so on) on one of my installations, because I wan't to keep the users on one site. So I comment out this part in header.get.html.ftl:

      <#if !isGuest>
      <div class="personal-menu">
         <span class="menu-item-icon my-dashboard"><a href="${url.context}/page/user/${user.name?url}/dashboard">${msg("link.myDashboard")}</a></span>
         <span class="menu-item-icon my-profile"><a href="${url.context}/page/user/${user.name?url}/profile">${msg("link.myProfile")}</a></span>
         <span id="${args.htmlid}-sites-linkMenuButton" class="link-menu-button">
            <span class="menu-item-icon sites link-menu-button-link"><a href="${url.context}/page/site-finder">${msg("link.sites")}</a></span>
            <input id="${args.htmlid}-sites" type="button"/>
         </span>
         <span class="menu-item-icon people"><a href="${url.context}/page/people-finder">${msg("link.people")}</a></span>
      </div>
      </#if>

To me that seems pretty self-contained, it's just presentation of a couple of links. However, appearantly there's far more to it than meets the eye, because the result is a real mess: Some buttons don't render ok, the wiki don't parse links (like [[link]]) anymore, the document library cannot be shown (it's just empty) and so on. All this from just not showing a couple of links and a button.

What am I missing?
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
You'll have hit a JavaScript error which has prevented some other scripts running.

Whenever you comment out some mark-up where DOM nodes have been assigned an id, you should be wary, because there's very likely going to be some code somewhere expecting it to be there.

In this case, I suspect it's the code in header.js trying to create the Sites dropdown YUI button (this.id + "-sites").

Mike

gronfelt
Champ in-the-making
Champ in-the-making
Thanks for your answer, I guess I'll have to dig in to YUI to try and get a better understanding of how these things are connected.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.