cancel
Showing results for 
Search instead for 
Did you mean: 

Remove People and Sites Links

gmurphy
Champ on-the-rise
Champ on-the-rise
Hi,


Can anyone tell me where to look to remove the My Profile, Sites and People links at the top of each Share page.


Also is there a way I can remove the Invite, Leave Edit site detail Buttons as well


Thanks

Gerald
5 REPLIES 5

gronfelt
Champ in-the-making
Champ in-the-making
The header menu is rendered by the file header.get.html.ftl which is found in tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/header/. You could override it by placing a copy of the file in tomcat/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/header/.

The site title menu is rendered by the file collaboration-title.get.html.ftl in tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/title. The same principle could be used for overriding this file.

However, be aware that any html object that have a specified id might be referred to in some javascript file and if that object doesn't exist there will be a javascript error which may mess up the rendition of the page. For instance, this is the code part that renders the Sites menu:

<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>

If you simply remove that part in the file there will be no object with the id "${args.htmlid}-sites-linkMenuButton" and if any javascript code (like the code creating the dropdown menu) tries to manipulate that object there will be an error, which may prevent other js code snippets from being executed.

mikeh
Star Contributor
Star Contributor
Yeah, that part of the code could be improved; but it's often difficult to cover all the ramifications when the mark-up is changed from what the code is expecting. For example, removing the Sites menu also means the "Favourite Site" function would no longer function - and that's just off the top of my head.

There's no easy solution right now, other than just hiding the UI part of the function with CSS (display: none).

Thanks,
Mike

gmurphy
Champ on-the-rise
Champ on-the-rise
Folks,


Thanks for the reply.  Could you tell me as well, where to change the background color on the title bar of share

Regards,

Gerald

mikeh
Star Contributor
Star Contributor
Should be in presentation.css in the themes folder.

By *far* the easiest way to track down things like that is to point Firebug at the UI element in question and see where the style is coming from.

Thanks,
Mike

gmurphy
Champ on-the-rise
Champ on-the-rise
Thanks Mike for the quick reply.

Gerald