cancel
Showing results for 
Search instead for 
Did you mean: 

See Category browser and Navigator simultaneously?

markusd
Champ in-the-making
Champ in-the-making
Hello,

first: Thanks for the new category browser in 2.9B! That completes the possibility to build different content structures on the same content, parallel to the "normal" spaces structure.

Is it possible to configure the sidebar in a way where I can see the category tree AND the spaces tree (navigator), just without toggling between them? Or, even better: Is it possible to show the Sidebar-Components (Navigator, Shelf, Category Browser, Open search) all at the same time in the sidebar?

Thanks in advance for any information!

Greetings
Markus
7 REPLIES 7

gavinc
Champ in-the-making
Champ in-the-making
You can configure the sidebar via your web-client-config-custom.xml file, in the default web-client-config.xml you'll find a seciton for the Sidebar:

<config evaluator="string-compare" condition="Sidebar">

You could add a new JSP and configuration for a page that has all the components on and then configure that to be your default sidebar plugin.

markusd
Champ in-the-making
Champ in-the-making
Thanks, Gavin, for replying so quickly.

I'm new to JSP and Java, so please could you give me some more hint on how to build a JSP like the one you described, or ist there any good starting point in the documentation?

Greetings
Markus

gavinc
Champ in-the-making
Champ in-the-making
Just create a new file and copy and paste the contents of the following files into your new file:

- /jsp/sidebar/category-browser.jsp
- /jsp/sidebar/navigator.jsp
- /jsp/sidebar/opensearch.jsp
- /jsp/sidebar/shelf.jsp

dinger
Champ in-the-making
Champ in-the-making
Did anyone do this?

Could they post the jsp here? Seems like this would be a good feature to have in alfresco…

Rob

markusd
Champ in-the-making
Champ in-the-making
Hello Gavin,

I copied the JSPs as you wrote in one "bigsidebar.jsp" and registered it in the web-client-config-custom.xml. In principle it's working, but the category browser and the navigator space browser are mixing in a strange way: the navigator shows the categories, but not the spaces. Below the navigator component comes the "Browse items in sub-categories?"-checkbox.
Here's my bigsidebar.jsp:


<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>

<%– Shelf component –%>
<%– IMPORTANT NOTE: All inner components must be given an explicit ID! –%>
<%–                 This is because they are wrapped in a Panel component –%>
<r:shelf id="shelf" groupPanel="lbgrey" groupBgcolor="white" selectedGroupPanel="lbgrey" selectedGroupBgcolor="white"
groupExpandedActionListener="#{NavigationBean.shelfGroupToggled}">
<r:shelfGroup label="#{msg.clipboard}" id="shelf-group-1" expanded="#{NavigationBean.shelfItemExpanded[0]}">
<r:clipboardShelfItem id="clipboard-shelf" collections="#{ClipboardBean.items}" pasteActionListener="#{ClipboardBean.pasteItem}" />
</r:shelfGroup>

<%– NOTE: this component is exanded=true as default so the RecentSpaces managed Bean is
instantied early - otherwise it will not be seen until this shelf component is
first expanded. There is no config setting to do this in JSF by default –%>
<r:shelfGroup label="#{msg.recent_spaces}" id="shelf-group-2" expanded="#{NavigationBean.shelfItemExpanded[1]}">
<r:recentSpacesShelfItem id="recent-shelf" value="#{RecentSpacesBean.recentSpaces}" navigateActionListener="#{RecentSpacesBean.navigate}" />
</r:shelfGroup>

<r:shelfGroup label="#{msg.shortcuts}" id="shelf-group-3" expanded="#{NavigationBean.shelfItemExpanded[2]}">
<r:shortcutsShelfItem id="shortcut-shelf" value="#{UserShortcutsBean.shortcuts}" clickActionListener="#{UserShortcutsBean.click}" removeActionListener="#{UserShortcutsBean.removeShortcut}" />
</r:shelfGroup>
</r:shelf>

<r:navigator id="navigator" activeArea="#{NavigationBean.toolbarLocation}" />

<r:categoryBrowser id="category-browser"/>

What's wrong?

It would be ok, too, if the categories are shown spaces-like within the navigator component.

Greetings
Markus

gavinc
Champ in-the-making
Champ in-the-making
I see what you mean, unfortunately it looks like the category and navigator are incompatible to be on the same page at the same time.

To be honest this is something we haven't tested, the best thing to do is raise an issue in JIRA so you can track the progress.

markusd
Champ in-the-making
Champ in-the-making
Ok, thanks Gavin.

I'v raised a JIRA issue (key AWC-1955 ).

Greetings
Markus
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.