Remove People and Sites Links
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 10:49 AM
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
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
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 01:04 PM
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:
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 05:39 PM
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
There's no easy solution right now, other than just hiding the UI part of the function with CSS (display: none).
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 10:43 AM
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
Thanks for the reply. Could you tell me as well, where to change the background color on the title bar of share
Regards,
Gerald
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 11:28 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 11:41 AM
Thanks Mike for the quick reply.
Gerald
Gerald