Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Duplicating a custom component

Avatar

Level 9

Hi All,

1] Suppose, I have a custom component say 'x'. I want to create a duplicate of this and rename that to 'x-duplicate'.

2] Also, in content.xml I have changed the jcr:title to "x" and "x-duplicate" respectively.

3] The sling:resourceType of the components respectively, when added on the page is as below:

a/b/c/x

a/b/c/x-duplicate

4] However, the duplicate component when added on the page is not visible in author, but can be seen in backend[crxde].

Am I missing anything. Any thoughts on this will be helpful.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Make sure the jsp or sightly file of the component is having same name as of component. If you haven't changed it, do now.

x-duplicate.jsp or x-duplicate.html

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Make sure the jsp or sightly file of the component is having same name as of component. If you haven't changed it, do now.

x-duplicate.jsp or x-duplicate.html

Avatar

Level 9

Hi Edubey,

Thank you for your reply.

My bad, had changed it to x-duplicate.html, but had not given a build. 

Once again, thank you.