cancel
Showing results for 
Search instead for 
Did you mean: 

where to place custom browse.jsp?

esource
Champ on-the-rise
Champ on-the-rise
it appears I need to customize browse.jsp.  Where should I place it so I do not override the original located in
  …\tomcat\webapps\alfresco\jsp\browse\browse.jsp

I considered placing my custom browse.jsp in

…\tomcat\webapps\alfresco\jsp\extension\browse\browse.jsp

but alfresco stills uses the default and doesn't appear to find my custom page.

Are there any other changes I need to make so Alfresco can find my custom browse.jsp?
2 REPLIES 2

esource
Champ on-the-rise
Champ on-the-rise
it looks like I should modify web-client-config-custom.xml and faces-config.xml, but I am not quite sure how to make the modifications.

I only want the custom browse.jsp to appear in the search results of advanced search.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
you must make change to faces config custom xml and override the navigation paths

from :

   <navigation-rule>
      <from-view-id>/jsp/*</from-view-id>
      <navigation-case>
         <from-outcome>browse</from-outcome>
         <to-view-id>/jsp/browse/browse.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
         <from-outcome>myalfresco</from-outcome>
         <to-view-id>/jsp/dashboards/container.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
         <from-outcome>about</from-outcome>
         <to-view-id>/jsp/dialog/about.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>
  

to

   <navigation-rule>
      <from-view-id>/jsp/*</from-view-id>
      <navigation-case>
         <from-outcome>browse</from-outcome>
         <to-view-id>/jsp/extension/browse/browse.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
         <from-outcome>myalfresco</from-outcome>
         <to-view-id>/jsp/dashboards/container.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
         <from-outcome>about</from-outcome>
         <to-view-id>/jsp/dialog/about.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>
  

also you must change navigation where default browse.jsp is used like this
 <navigation-rule>
      <from-view-id>/jsp/browse/browse.jsp</from-view-id>
      <!– showDocDetails and showSpaceDetails moved to /jsp/* above –>
      <!– edit, update, checkout actions moved to /jsp/* above –>
      <navigation-case>
         <from-outcome>startDiscussion</from-outcome>
         <to-view-id>/jsp/forums/create-topic.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
         <from-outcome>showForum</from-outcome>
         <to-view-id>/jsp/forums/forum.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
         <from-outcome>showTopic</from-outcome>
         <to-view-id>/jsp/forums/topic.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>
hope this helps.