cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to override JSP file using Addon

Former Member
0 Likes
518

Hi All,

I have created loginaddon to override accountLoginPage.jsp file. I have created the same folder structure of accountLoginPage.jsp in addon webroot.

and also inserted the following in impex

 INSERT_UPDATE PageTemplate;$contentCV[unique=true];uid[unique=true];name;frontendTemplateName;restrictedPageTypes(code);active[default=true]
 ;;LoginPageTemplate;Login Page Template;addon:/loginaddon/pages/account/accountLoginPage;ContentPage;true;

But It still loads the loginpage from OOTB. not from Addon folder structure.

Could you please help me resolve this

Thanks in Advance

View Entire Topic
Former Member
0 Likes

Hey, could you give me a few more information about this?

Is the addon installed correctly to the storefront? Is the addon generated inside views/addon folder (inside the storefront) when perfort clean all? Is the impex inserted when updating you system? Which page does the controller deliver?

Former Member
0 Likes

everything is fine. I sort out the issue. in LoginPageController, they return static URL in return statement instead getViewForPage method. That's cost the problem. Thanks for your help