Is there an example vm file I can look at for customizing the Navmap theme?

On this page: https://confluence.atlassian.com/display/CONF55/Navigation+Map+Macro it says there is a way to create a theme for the NavMap macro. It says we need to save the navmap-mytheme.vm to the WEB-INF/classes/templates/macros directory (which I cannot find). Has anyone ever done this and would you be willing to share some more details on how to do this. My colleague wants an example vm file so he can figure out the coding.  Thanks.

 

1 answer

1 accepted

Hi, I think you'll find this answered by Joseph Clark in this post (How to cutomize Navigation map).

The original velocity (.vm file) is checked into BitBucket at this url: https://bitbucket.org/atlassian/confluence-advanced-macros-plugin/src/84e6a9847149a56b1da24409110e5c757c0fa2c5/src/main/resources/com/atlassian/confluence/plugins/macros/advanced/navmap-default.vm?at=master

Once you have the .vm file for your new theme, you drop it into the WEB-INF/classes/templates/macros in the confluence install directory. When adding the macro to a page, you can then specify in the parameter Navigation Map Theme
(theme )
 which theme to use based on the filename.  

From the Docs:

"Hence, if your theme was callednavmap-roundededges.vm, use the value of roundededges for this parameter."

Hi Ross, quick question, if I don't have ../templates/macros in the path, then can I create those folders and save the file? If so, do I need to restart the service in order for it to be found?

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
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

29 views 0 10
Read article

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