2 Replies Latest reply on Jun 25, 2013 9:58 AM by Panasaki

    Component default value

    Panasaki Level 1

      Good afternoun,

       

      Is there any way to achieve that a component when is created stores a value in the content?

       

      I need to store information when a page is created, and I need to store the static information in the same place where the component included in the page store its content.

       

      For example a component called "includedcomponent" included in a page with

      <cq:include path="includedcomponent" resourceType="/apps/myproject/components/includes/includedcomponent" />

       

      I need when the page is created to create its resource node in jcr:content of the page, i.e. in "pagepath/jcr:content/includedcomponent" with a static information.

       

      Thank you.

       

      Miguel.