1 Reply Latest reply on Nov 19, 2012 6:50 PM by Sham HC

    How to overwrite OOB comments component

    danchapmanme

      I want to overwrite the OOB comments/comment components. I have managed to include my own version of the comments component but when comments are added to the user generated folder they get added with resource type of "collab/commons/components/comments/comment". I have looked everyweher where this is being set and after decompiling the cq-collab-commons-5.5.2 jar, I found it is a hard coded reference.

       

      Any idea how I can get around this?

        • 1. Re: How to overwrite OOB comments component
          Sham HC Level 7

          As a workaround please set an hidden parameter of sling:resourceType to your custom component [1] and then white list the parameter name at [2]

           

          [1] <input type="hidden" name="sling:resourceType" value="<custom component path/components/comments/comment>"/>

           

          [2] http://<host>:<port>/system/console/configMgr/com.day.cq.collab.commons.impl.servlets.CreateComme ntServlet