cancel
Showing results for 
Search instead for 
Did you mean: 

need to customise navigator

pallavi_jain
Champ in-the-making
Champ in-the-making
For my project, I need to customise the navigator which appears on the left side of alfresco explorer.

REQUIREMENTS: no user should be able to view my home, guest home and my alfresco, that is only Company home should be visible to users whereas all 4 links should be accessible to admin.

how to achieve this?
please help..
it is bugging me alot
6 REPLIES 6

mitpatoliya
Star Collaborator
Star Collaborator
you can overrride that jsp by adding one config in your web-client-config-custom.xml


<config evaluator="string-compare" condition="Sidebar">
      <sidebar>
         <!– the list of plugins available in the sidebar –>
         <plugins>
            <plugin id="navigator" label-id="navigator" description-id="navigator_desc"
                    page="/jsp/extension/sidebar/navigator.jsp" actions-config-id="navigator_actions" />
    </plugins>
  </sidebar>
</config>

create your own jsp where you can add those other parts conditionally.

hey..
thanks for replying
your reply is helpful.

but in original navigator.jsp it shows just a single line, that is

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

does that mean that this NavigationBean is to be overrided and if yes, then how?

mitpatoliya
Star Collaborator
Star Collaborator
It is custom JSF tag implemented by alfresco.
UINavigator class is responsible for rendering whatever you see in that jsp.

pallavi_jain
Champ in-the-making
Champ in-the-making
thank you mitpatoliya.. Smiley Happy
i have found out that the changes are to be made in UINavigator.java

but if I make the required changes in java code, make a jar file and place it in WEB-INF/lib, the changes are not reflected.
Do I need to configure anything else?
Any kind of help is welcome

i have also followed this link:

http://cedric.bosdonnat.free.fr/wordpress/?p=94

pallavi_jain
Champ in-the-making
Champ in-the-making
my problem is solved
thanks for you support.
there was one mapping from faces-config-repo.xml that was to be overridden
thanks Smiley Happy

mitpatoliya
Star Collaborator
Star Collaborator
Yes, that is the way to do it,
Congratulation