Hi!
I need to override some default macros from confluence. With a theme plugin, I can override with
<layoutkey="global"name="Global Decorator Portal"class="com.atlassian.confluence.themes.VelocityDecorator"overrides="/decorators/global.vmd"> <resourcetype="velocity"name="decorator"location="res/decorators/global.vmd"/> </layout>
the decorators. But how can I override templates like "/template/includes/menu-macros.vm" or somthing?
Community moderators have prevented the ability to post new answers.
The short answer is, you can't. .vmd files are overridable because they are supported as layout plugin modules, as per your example. Regular .vm files are not - they are executed directly.
The only way to modify something like menu-macros.vm is to hijack the other vm file that is executing it, and have your hijacked version include your modified version of the vm file instead. And to hijack a vm file, you need to hijack the XWork Action that is pointing at that .vm file. And for that, you need the Conveyor Plugin:
https://studio.plugins.atlassian.com/wiki/display/LIBCNV/Conveyor+Plugin
Documentation is at the above location. Let me know if you have any questions.
Regards,
David Peterson
CustomWare | Sydney, Australia | www.customware.net | david.peterson@customware.net
Australia: +61 2 9900 5700 | Malaysia: +60 173 283 768 | US: +1 888 707 0088 (toll free)
The rocket has launched! www.trainingrocket.com
David -- is Conveyor 1.0 ready to work with Plugins 2 plugins? This would be very exciting news if it is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it is. Version 1.0.1 has been officially released and both has more features and less bugs than 0.50, so it's a recommended upgrade if you're using Plugins 2. Check out the documentation for notes on getting it installed/bundled with your plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is a link to an atlassian forum thread, just an info if other users might want to override breadcrumbs.vm.
http://forums.atlassian.com/thread.jspa?threadID=33856
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.