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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Agile

How Davin Studer gets Confluence to do everything he wants it to do...except dishes

  @Davin Studer holds many interests, including but not limited to health tech and Star Trek. Read on to discover more about Davin, from his favorite Confluence macros to his favorite lit...

206 views 1 9
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