views:

45

answers:

1

I'm writing a plugin for Confluence and there isn't much documentation on what you can use in velocity vm files. I'm able to add a base breadcrumb that goes from Dashboard -> ActionName but I want to to do something similar to page edits where you get the full page breadcrumb followed by the action name.

Here's what I'm using now:

#applyDecorator("root")
    #decoratorParam("helper" $action.Helper)
    #decoratorParam("mode" "view")
    #decoratorParam("context" "page")

Any suggestions or links would be greatly appreciated.

A: 

Ug, I put a bounty on this and didn't get any answers, and a few hours after the bounty expired I figured out the answer. For those of you out there that care here's what I did.

You need to have your action implement PageAware. I then passed the Page ID of the page I was coming from to the action, used PageManager to get the page based on ID and set the Page from the PageAware interface. The above code in the vm file will generate correct breadcrumbs.

Noah