Toggle navigation
Log-in
Languages
English
Wiki Index
Page Index
User Index
Sandbox
Column Macro
Wiki source code of
Column Macro
Last modified by
Ricardo Rodríguez Fernández
on 2018/02/06 14:28
Export
Print preview
View Source
Children
Content
Comments
Attachments
History
Information
×
Export
Export as PDF
Export as HTML
Cancel
Hide line numbers
1: {{velocity}} 2: #macro(column $columns $justify $border) 3: #if($columns==2) 4: #set($width="48%") 5: #elseif($columns==3) 6: #set($width="32%") 7: #elseif($columns==4) 8: #set($width="23%") 9: #else 10: #set($width="23%") 11: #end 12: <div style="float:left;width:${width};padding:5px;#if($justify=="true")text-align:justify;#end #if($border=="true")border:1px solid black;#end"> 13: #end 14: 15: #macro(endcolumn) 16: </div> 17: #end 18: {{/velocity}} 19: 20: {{velocity filter="none"}} 21: {{html clean="false" wiki="true"}} 22: #column("3" "false" "false") 23: content of my first column 24: #endcolumn() 25: #column("3" "false" "false") 26: content of my second column 27: #endcolumn() 28: #column("3" "false" "false") 29: content of my third column 30: #endcolumn() 31: {{/html}} 32: {{/velocity}}
Applications
Blog
Dashboard
User Index
More applications
Quick Links
Sandbox