简体   繁体   中英

Can we add custom javascript and css to Alfresco community edition?

I wish to add external javascript and css files to Alfresco community edition.

For eg. Can I add Bootstrap library(javascript & css) ? If so where do I add it?

Also while editing a wiki page, I see an option to view and modify the source code in 'View menu'. I punch in html there and it works fine. But it doesn't have a place-holder to add javascript and css.

Any idea?

To include your javascript in classpath of alfresco share you could do following entry in your share-config-custom.xml

<config evaluator="string-compare" condition="DocLibCustom" replace="true">

    <dependencies>
        <js src="/js/custom-script.js" />
        <css src="/css/custom-style.csss" />
    </dependencies>

</config>

I hope this is what you are looking for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM