Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

what does control header mean in velocity template files ?

Shamith K S August 17, 2011

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

Suggest an answer

Log in or Sign up to answer
1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 17, 2011

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

Shamith K S August 17, 2011

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

Shamith K S August 17, 2011

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

Does control header helps me in doing this ?

TAGS
AUG Leaders

Atlassian Community Events