AnsweredAssumed Answered

Packaging client-side Javascript in AMP/WAR

Question asked by lawrencei on May 29, 2014
Latest reply on May 29, 2014 by lawrencei

As part of a small Share customization project I added a few extra properties to the site model and displayed them for editing in the "Create Site" dialog. I had to modify the client-side JS code in create-site.js; things are working largely as expected, but I have a couple of issues I haven't been able to solve:

1) How do I package the modified create-site.js in the Share AMP so I can overwrite the existing one in share/modules? I tried placing in under main/amp/web/modules but to no avail (I'm using the Maven AMP archetype for development).

2) Is there a more elegant way of implementing this extension other than direct modification of the create-site.js file?

Thank you,