Hello everybody,
I'm doing customization by adding a carousel in the home page of the alfresco Share (Community verision 5.2) .
I managed to create an external module and added it to lib (as shown in this tutrial Add content to an Alfresco Share page | Alfresco Documentation ) after that I discovered that in order for the carousel to work it needs bootstrap and jQuery (see picture) . I serached further and discovered that we need to add resources in the extension's ressource markup located in the file resource.get.html.ftl file but then when I added this :
<@markup id="resources">
<#-- Use this "markup id" to add in a extension's resources -->
<@script type="text/javascript" src="${url.context}/res/js/jquery-3.3.1.js" group="template-common"/>
<@script type="text/javascript" src="${url.context}/res/js/bootstrap.js" group="template-common"/>
I get the "multipleDefine" error .
What do you suggest I do in order to make the Carousel work ( like this one Bootstrap Carousel ).
Regards..
Alfresco already ships and loads jQuery and some other libraries. You should try and avoid loading different versions of the same libraries already provided. There isn't really any clean way of "not loading" the version of jQuery that ships by default and replace that with your own - and you would have to risk any component of Alfresco using jQuery to stop working correctly with any other version.
Unless you find some way to isolate the different versions / have them coexist in the same page, or implement your functionality with the existing version, I don't see a way for you to succeed in integrating the Carousel...
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.