cancel
Showing results for 
Search instead for 
Did you mean: 

After installing custom AMP to Alfresco system - custom CSS, JS alerts and WebScript Exception handlers are not working.

mbel
Star Contributor
Star Contributor

Hello,

I have created some custom AMP and installed it into Alfresco system.

However the custom CSS is not working, some JS alerts which I have put for testing are also not appearing and

moreover, I have several WebScript Exception handlers  [ html.{statusErrorCode}.ftl files ] which are not showing the concrete html view but return error 500 from the server...

The interesting things is that when I run the AMP through my IDE everything works properly, the problem appears when I install it to the alfresco.war.

Could someone tell me what could be the reason for that?

Thank you in advance.

3 REPLIES 3

mbel
Star Contributor
Star Contributor

Fixed the issue with WebScript Exception handlers.....it was because of my bug in the code.

However, still have the issue with CSS and JS alerts.

Hi,

Could you tell us your Alfresco version ?

Latest version of Alfresco remove the explorer UI (since 5.0.b I think). So for version later to 5.0.b, I don't think fronted ressources (like CSS or JS) bring by AMP are still used.

Yann

mbel
Star Contributor
Star Contributor
Alfresco Share v5.1.f
(r125711-b6, Aikau 1.0.63, Spring Surf 5.1.f, Spring WebScripts 6.5, Freemarker 2.3.20-alfresco-patched, Rhino 1.7R4-alfresco-patched, Yui 2.9.0-alfresco-20141223)
Alfresco Community v5.1.0
(r127059-b7) schema 10001
Which mean that the folder /web (which MAVEN generated automatically) cannot be used for front-end resources?
So how to fix my issue in order to work on my current and on previous versions of Alfresco?
Thanks in advance.