cancel
Showing results for 
Search instead for 
Did you mean: 

Customize browse.jsp

mesa2e
Champ in-the-making
Champ in-the-making
Hi,

I need to customize some options on browse window. I would like to know if why is the best way to do it:

- Modifying alfresco\jsp\browse\browse.jsp directly?
- Copy the new version of browse.jsp on alfesco\jsp\browse\browse.jsp. In that case, it must be needed to configure any configuration file. Any ideas?

Thanks in advance,
Elena.
2 REPLIES 2

frederick
Champ in-the-making
Champ in-the-making
Hi,

If you are modifying Alfresco, the recommended way to go is using AMP modules. That way, you can include a copy of browse.jsp in your module and change it to your needs. By installing the module in alfresco.war, it will replace the original browse.jsp (if you use the correct path in your module, i.e. /web/jsp/browse/browse.jsp).

However, keep in mind that overriding browse.jsp has some disadvantages:
- You can only override it in one place. If two modules override browse.jsp, the module that is installed last will "win".
- Customized JSP's are annoying to update if you switch to a new Alfresco version.

Kind regards,

mesa2e
Champ in-the-making
Champ in-the-making
Hi,

If you are modifying Alfresco, the recommended way to go is using AMP modules. That way, you can include a copy of browse.jsp in your module and change it to your needs. By installing the module in alfresco.war, it will replace the original browse.jsp (if you use the correct path in your module, i.e. /web/jsp/browse/browse.jsp).

However, keep in mind that overriding browse.jsp has some disadvantages:
- You can only override it in one place. If two modules override browse.jsp, the module that is installed last will "win".
- Customized JSP's are annoying to update if you switch to a new Alfresco version.

Kind regards,