Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom field plugin

Alok kumar Singh
Contributor
April 16, 2012

I am developing a custom field plugin, I am confused about whether should I include velocity templates....if so how am I supposed to do that.....

1 answer

0 votes
Dennis Kromhout van der Meer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2012

I recommend reading our documentation on How to create a new custom field type. You'll need velocity templates to provide access for viewing and displaying the saved values from the database. You can define the templates in your <customfield-type> in the atlassian-plugin.xml like so:

&lt;resource name="view" type="velocity"
			location="/templates/customfields/money-custom-field/view.vm" /&gt;
		&lt;resource name="edit" type="velocity"
			location="/templates/customfields/money-custom-field/edit.vm" /&gt;

Good luck!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events