It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
I'm quite new to plugin development but had some success already :-)
Right now I'm playing around with web panels for displaying information in certain places.
What I didn't get is: What do I have to do to make velocity-stuff really work?
According to this example I created a new .vm-file that holds my code and defined it as resource location in the xml:
<web-panel key="myPanel" location="atl.dashboard.left" weight="1" > <resource name="view" type="velocity" location="velocity/myupdates.vm"/> </web-panel>
My .vm just contains this for testing purpose:
$action.remoteUser.name()
The result:
I get the webpanel displayed, the .vm is loaded but obviously am I missing something, because all I see is "$action.remoteUser.name()"
I can use #set and all this stuff, but I seem to lack the connection to the classes that provide the data. What do I have to do?
Thanks in advance!
Webpanel will not have an action object in context. You will have to add the objects you want to display in to the template context using a context provider.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.