1 Reply Latest reply on Oct 3, 2007 8:41 AM by Will

    Freemarker syntax for outputting document summary/body

      Hi,

       

      I'm trying to output the text of a document object in a freemarker template but can't get it to work;

       

      <#if document.isTextBody()>
              ${document.body?string}
      <#else>
              ${document.summary?string}
      </if>
      

       

      Is there a better way to check to see if the document is a text or binary document as calling document.summary on a text document gives an error.

       

      cheers,

       

      James B.