How to copy a component from one page to another in touch UI AEM?

868 Views Asked by At

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

1

There are 1 best solutions below

4
On BEST ANSWER

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.