Where I can load a new js file? something like "menu-min.js"

Hi, I need to include a new js-file just like the "menu-min.js" file, in this file is where load the jquery from tools menu... something know how I can add a new js??

thnx..

3 answers

This widget could not be displayed.

In your Confluence install, you would typically add JS files to the following location:

\confluence\includes\js

This is where the menu-min.js file resides. You will need access to the server.

hth,

matt

Yep, but those js files are loaded in another place... I think is in batch.js where the js libraries are loaded... I don't understand it...

This widget could not be displayed.

Those files are all batched up by references, but there's nothing stopping you from putting your own file in there and then adding a reference to it from your Custom HTML page in the Admin console like this:

<script src="/confluence/includes/js/my_new_js_file.js"></script>
This widget could not be displayed.

Those files are all batched up by references, but there's nothing stopping you from putting your own file in there and then adding a reference to it from your Custom HTML page in the Admin console like this:

<script src="/confluence/includes/js/my_new_js_file.js"></script>

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

601 views 8 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you