Changes for page Macros

Last modified by Jip-jan Alunkel on April 15, 18:09

From version 2.39
edited by Jip-jan Alunkel
on March 28, 15:21
Change comment: There is no comment for this version
To version 2.41
edited by Jip-jan Alunkel
on March 28, 15:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -78,6 +78,8 @@
78 78  #end
79 79  #macro(createTextElement $O_elementData $O_tagName $O_requiredAttributes)
80 80  #set($dataAttributes = '')
81 +#set($dataAttributes = ' data-query-type="${O_elementData.data-query-type}"')
82 +$dataAttributes
81 81  #if($O_elementData.data-query-type) #set($dataAttributes = ' data-query-type="${O_elementData.data-query-type}"')#end
82 82  #if($O_elementData.data-query-list-type) #set($dataAttributes = '${dataAttributes} data-query-list-type="${O_elementData.data-query-list-type}"')#end
83 83  #if($O_elementData.data-query-list-contents) #set($dataAttributes = '${dataAttributes} data-query-list-contents="${O_elementData.data-query-list-contents}"')#end
... ... @@ -90,8 +90,5 @@
90 90   <input type="text" class="form-control full" name="${O_elementData.id}_${O_tagName}" id="${O_elementData.id}_${O_tagName}" autocomplete="off" placeholder="$services.localization.render(${O_elementData.placeholder})" aria-describedby="${O_elementData.id}_helpBlock"${O_requiredAttributes} aria-label="${O_elementData.aria-label}"${dataAttributes}>
91 91  #end
92 92  
93 -id
94 -
95 -
96 96  {{/velocity}}
97 97