Loading ...

Browse | Communifire Documentation

Comments (2)

   
MOPintranet

Is there a way i can change the browse menu scope to browse all public content across all the spaces rather than just top level community content

6/27/2019 07:02 AM
 · 
by
   
mtrujillo

Hey MOP Intranet,

     No, the browse menu only lists content for the top level, it does not list all content within spaces and top level.

6/27/2019 12:24 PM
 · 
by
   
Daveismyhero

Is there a way to customize browse within a space to search for different content types (blogs, files, etc.)?

4/23/2020 07:55 PM
 · 
by
   
gskamau

Hey Dave,

Could you clarify what you mean? You want the Browse menu in the header to link to the current space's content type pages?

Grace

4/23/2020 08:01 PM
 · 
by
   
Daveismyhero

Hello Grace,

Our users of one of our spaces would like to customize the Browse menu in their space to access their blogs, files, etc. So when they click on Browse it would give them the following options:
-Blogs
-Files
-Discussions
-Announcements
for just that space.

For some context, they are working on a page design and don't want to use the left-hand navigation panel, and are looking for a way to allow their users to access different types of content more easily. In the past we have used buttons or rich text widgets to access the content, but we are looking for options. Hopefully that helps, but if not please let me know. Thanks as always for the help!

4/23/2020 08:11 PM
 · 
by
   
gskamau

Hey Dave,

This can be accomplished by using header scripts. Below is sample code that adds links in the Browse menu. The links are for the blogs, files, discussions, and articles pages in a Human Resources space.

<script type="text/javascript">
$(document).ready(function() {
   if (document.getElementsByTagName("body")[0].classList.contains("x-custom-space-human-resources")) {
        var browseLinks = '<li class="ax-menu-blogs"><a title="Blogs" href="/spaces/1/human-resources/blogs"><span class="icon-copy"></span> Blogs</a></li>\
                       <li class="ax-menu-files"><a title="Files" href="/spaces/1/human-resources/files"><span class="icon-folder-open"></span> Files</a></li>\
                       <li class="ax-menu-discussions"><a title="Discussions" href="/spaces/1/human-resources/forums"><span class="icon-comments"></span> Discussions</a></li>\
                       <li class="ax-menu-announcements"><a title="Announcements" href="/spaces/1/human-resources/articles"><span class="icon-file"></span> Announcements</a></li>';
        $("#ctl00_ctl00_ctl00_HeaderSocial1_NavigationJewelBox1_liBrowseUser .ax-browse-menu").append(browseLinks);
    }
});
</script>

For your site, make the following changes:

  • Update the links (the href="URL" parts)
  • Change x-custom-space-human-resources to your space's class name
    The CSS for Spaces section on the CSS overrides page explains how to find the space class name.

Then add the code in Control Panel > System > General Settings > Header and Footer Scripts > Header Scripts. Note that this solution requires a site administrator to implement. Some HTML knowledge is required.

Grace

4/23/2020 09:11 PM
 · 
by
   
Daveismyhero

Thanks so much for the detailed information, Grace. Much appreciated!

4/24/2020 12:27 PM
 · 
by

Pages

Intranet Software