Template Engine language reference > Composition Center interface > Document definition functions > sectionArray()

sectionArray()
This document definition function returns an array of all sections in a document definition.
Example 60
Template
#foreach($i in $docdef.sectionArray())
Section name: $i.name()
Section id:   $i.id()
#end
Output
Section name: section1
Section id:   7D5EF6DB-C8CB-644B-5EA4-424AF1D26ED1
Section name: section2
Section id:   63C586A5-1320-B3AD-E9A8-B3B280062420
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26