02-02-2017 10:04 AM
I made changes to the people-finder.js script to change the sort order, and locally everything works well.
To override the functionality, I used the following directory structure and Maven-based SDK to generate AMP file:
As I expected, locally everything works fine and I can see my changes:
Next, I deploy the file on the remote server, as described here: Install the AMP file
And here I do not see my changes:
Directory /opt/alfresco-community/tomcat/webapps/share/components/people-finder also contains the scripts without changes.
And thus, sorting does not work as I need.
Additional information: I unpacked the AMP file and not found there branch /web/components/... Of course, people-finder.js and people-finder-min.js is not present there also. In the AMP file, there are my other changes and they have successfully applied (labels and other small things).
What could be the reason?
I would be very grateful for the information. Thanks to all.
02-03-2017 09:58 AM
When you run "mvn clean package" does your JS file get added to the AMP or not?
If it does get added to the AMP, that's good. If it does not, check to make sure your file-mapping.properties has "/web=/" in it.
Assuming your AMP is okay, when you install the AMP are there any errors reported? You may have to scroll up through the AMP listing if you have several AMPs. I believe you are replacing an out-of-the-box file so you may have to specify "-force" when you run apply_amps.sh.
Also, just a side-note, it looks like you've added a "min" file to your project. You shouldn't need to do that because Maven should be minifying your JS for you.
02-03-2017 09:58 AM
When you run "mvn clean package" does your JS file get added to the AMP or not?
If it does get added to the AMP, that's good. If it does not, check to make sure your file-mapping.properties has "/web=/" in it.
Assuming your AMP is okay, when you install the AMP are there any errors reported? You may have to scroll up through the AMP listing if you have several AMPs. I believe you are replacing an out-of-the-box file so you may have to specify "-force" when you run apply_amps.sh.
Also, just a side-note, it looks like you've added a "min" file to your project. You shouldn't need to do that because Maven should be minifying your JS for you.
Explore our Alfresco products with the links below. Use labels to filter content by product module.