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

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

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>

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

487 views 19 10
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