Loading a JSP From an Addon in SAP Commerce

sap-commercesmartedit

When creating a page template for an Accelerator Storefront addon in SAP Commerce, JSPs get copied into views/addons/<youraddon>/responsive/. But using a relative path like ../addons/<youraddon>/... in frontendTemplateName doesn't work.

The UiExperienceViewResolver parses the template path specially — prefix with addon: to load from the addon directory:

INSERT_UPDATE PageTemplate; $contentCV[unique=true]; uid[unique=true]; frontendTemplateName
                          ;                         ; myTemplate; addon:/myaddon/pages/layout/my-template