Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Move Component which are included in page?

Avatar

Level 2

Hi Guys,

Need a quick help, is there any functionality in AEM 5.x which allows component which are included in page via code (cq:include) can be moved inside the page.

anybody implemented any workaround or customization, please share guys

Thanks, great day...

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Jacob,

including components in a page is to make sure you have that component fixed within the template. You will not be able to move that component as such. However, you can include any other component before or after these included components.

View solution in original post

0 Replies

Avatar

Level 5

As Every one mentioned you can not remove component included though cq:include however you can hide them using JS Or JSP based on certain condition.

Avatar

Level 10

The <cq:include> tag includes a resource into the current page. If you want to move that tag into anotgher page, the typical way is to open the JSP in CRXDE lite (or another IDE) and move it to another JSP. 

There is no out of the box way to move these around. . 

Avatar

Correct answer by
Community Advisor

Hi Jacob,

including components in a page is to make sure you have that component fixed within the template. You will not be able to move that component as such. However, you can include any other component before or after these included components.