1 Reply Latest reply: Apr 3, 2012 5:52 AM by Jiri.Machotka-Oracle RSS

    wcm - datafile's dID within a region template

    Simone
      Hi,
      I'm new to UCM + SSXA.
      I would like to know how I can obtain datafile's dID (or dDocName) within a region template...if it's possible.
      My existing region template contains the following wcm datafile tag:
      <wcm:dataFile var="dataFile"/>

      Thank you very much for your help.

      Best regards,
      S.
        • 1. Re: wcm - datafile's dID within a region template
          Jiri.Machotka-Oracle
          Take a look at the sample application described in the manual: http://docs.oracle.com/cd/E21764_01/doc.1111/e13650/ssxa_creatingsites.htm#sthref327

          e.g.
          <?xml version='1.0' encoding='UTF-8'?>
            <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:wcm="http://www.oracle.com/jsp/wcm">
               <wcm:dataFile var="dataFile"/>
                <div id="content">
                  <h1><a href="#">${dataFile.title}</a></h1>
                  <p>${dataFile.content}</p>
                </div>
            </jsp:root>
          So, ${dataFile.id} looks promising...