0

I want to copy a component from one page to another page in touch UI AEM. How can we achieve that?

  • There are many ways of performing this. Can you be more specific? Do you want to accomplish this as a developer or content author? What AEM version are you using? One way could be to add parsys/responsiveGrid component to the page and just add the same component on that parsys/responsiveGrid – Tadija Malić Mar 13 '19 at 11:04
  • I want to accomplish as a developer. I am using 6.2 version. – Amit Kumar Mar 15 '19 at 06:34
  • Also, i want to add the component in a different page which has different template. Not within the same same page or within the same parsys. – Amit Kumar Mar 15 '19 at 06:35

1 Answers1

1

One way to do this would be to open html of the page you want to add component on, and perform one of these:

Adding component directly on the page:

<article data-sly-resource="${'componentName' @ prependPath='path/to/the/component'}"></article>

Adding parsys component, and then drag&drop component on that parsys:

<cq:include path="par" resourceType="foundation/components/parsys" />

You can add component on page/template in many different ways that depends on your exact need.

Tadija Malić
  • 445
  • 7
  • 26