3 Replies Latest reply on May 8, 2013 8:01 AM by andyshreve

    How to add custom attribute to cq:text ?

    donchensh Level 1

      Hi,

       

      Currently i am using <cq:text property="text"/> to display the text in my page.

      I need to find a way to add custom attribute to the text compnent (Highlighted in the example below).

       

      eg.

      ====================================

      <div id="cq-gen23" class="text section cq-element-parPanel_47text">

      <p id="cq-gen35" customAttributeHere="true">Testing Test Test<br></p>
      <script id="cq-gen36" type="text/javascript">

      </div>

      ====================================

       

      Is there a way i can do the above?