AnsweredAssumed Answered

jQuery and bootstrap references

Question asked by fgdoura on Feb 19, 2018
Latest reply on Feb 20, 2018 by afaust

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..

Attachments

Outcomes