1 Reply Latest reply on Sep 18, 2014 7:09 AM by ryanrutan

    How to access content/body for each contentType from ftl?

    danil

      Hi

       

      The goal:e.g there is  document has images, use that image for

       

      <meta property="og:image" content="    HERE SHOULD BE IMAGE URL   "/>

       

       

       

      1. I have file /template/decorator/default/header-css.ftl with META tags

      2. I need to access html content of a document/discussion etc. , parse it and get image url to put it in meta tag

       

      How can I access HTML content of a document/discussion etc.?

       

      Is there another approach to solve a problem?