06-26-2018 04:28 AM
I need to import my javascript file or inline script after the faceted-search page loading.
I'm using a 5.2 community version.
06-28-2018 06:48 AM
I have found another guy with the same problem and there is a solution: Aikau: How to call a repo webscript from an aikau widget
It works for me.
06-26-2018 06:21 AM
That is actually not the way to customize the faceted search page (or any Aikau page) at all. You do not inject a JavaScript file - you modify the page JSON model so that Share / Aikau construct the widgets according to your needs (this may include loading a custom JavaScript of yours for a custom widget). Look at this Parashift blog post for an example. Though this may not describe specifically what you want to customize, the basic concept is the same for most customizations.
06-26-2018 06:59 AM
If I follow the example by Parashift blog I have this error: Could not find compressed file: /parashift/action/QuickPrint.js
I attach the folder structure of my project, can you check it? screen folder structure — imgbb.com
06-26-2018 09:29 AM
It looks like they left a small thing out - the definition of a custom Dojo package "parashift". That can also be part of the extension XML, i.e. I have this in one of my modules.
06-26-2018 10:26 AM
My extension.xml is placed in site-data/extensions/ folder.
I have moved parashift/action/QuickPrint.js under site-webscripts folder
By the last moving, log doesn't show me the previous error but in the actions of faceted-search page i show
There is not a quick print action.
06-26-2018 11:17 AM
The JS file was in the right place - you only needed to add a package for parashift and specify its location as "parashift" (the first-level folder below META-INF). Putting that file in site-webscripts will do nothing for you.
06-28-2018 06:48 AM
I have found another guy with the same problem and there is a solution: Aikau: How to call a repo webscript from an aikau widget
It works for me.
06-28-2018 09:34 AM
Good to know that "how to call a Repository web script" was your original problem. If you had given that information initially as your use case we could have helped you sooner..
Explore our Alfresco products with the links below. Use labels to filter content by product module.