what does control header mean in velocity template files ?

there is a line in all velocity template files. for example :

controlHeader ($action $field.id $i18n.getText($field.nameKey) $fieldLayoutItem.required $displayParameters.get('noHeader'))

i want to know the meaning of this..

1 answer

This widget could not be displayed.

First, I should point out that you've lost a # at the beginning of controlHeader - you really need to be careful with things like that, it can confuse the question.

Anyway #controlHeader is a velocity macro - you can find the definition in the macros.vm file. Simply put, the #controlHeader prints out some HTML (with some conditions) which wraps around your custom field

thanks Nic. does the variables entered in control header affects the variable used in the body of vm file?

i have a function written inside descriptionSytemfield.java. how can i use in description-edit.vm ??

Does control header helps me in doing this ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Agile

What's new this quarter in Confluence Server - August 2018

Hello Atlassian Community! My name is Ada , and I'm the Product Marketing Manager for Confluence Server at Atlassian. If you missed   our last post, we're transitioning to quarterly updates&nb...

116 views 0 1
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