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

contentType()
This document definition function returns the content type of a resource.
Example 49
Template
Text1 content type: $docdef.section1.text1.contentType()
Image1 content type: $docdef.section1.image1.contentType()
Output
Text1 content type: application/xhtml+xml
Image1 content type: image/pjpeg
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26