Classic UI: Copy/paste components that are hidden in sidekick | Community
Skip to main content
Level 2
January 4, 2019
Solved

Classic UI: Copy/paste components that are hidden in sidekick

  • January 4, 2019
  • 5 replies
  • 2125 views

Hello everyone.

We are running Classic UI on AEM 6.3 and have recently sunset some components by marking their componentGroup as .hidden. This allows existing components to continue rendering while ensuring authors don't continue to create new instances of these components.

The issue we are running into is this prevents authors from moving the existing components around the page using cut/copy/paste.

Is it possible to remove a component from the sidekick while still allowing it to be moved on an existing page?

Thank you!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaurav-Behl

The other solution is not a clean solution -

Move all those components to a particular Group (You can create multiple Groups for your project's design) and hide that entire group in the sidekick via css (add display:none; on that group's element on sidekick load/ready event). This way the component can still be moved but would not be visible in the sidekick.

Pick any sidekick article and customize it -

Experiencing Adobe Experience Manager - Day CQ: In the blog "Experiencing Adobe Experience Manger - Day CQ"

5 replies

smacdonald2008
Level 10
January 4, 2019

Typically, if you want to work with a given component, it should still be available on Side Kick.

Level 2
January 4, 2019

I understand that. Does this mean there is no functionality in place that allows for .hidden components to be copy/pasted?

Gaurav-Behl
Level 10
January 4, 2019

A workaround could be to restrict the component to be dropped/moved only in certain containers/parsys/templates. That ways author could still move the component on page but only in limited sections of the page. Make this as restrictive as possible.

Refer to Geometrixx how the components are restricted to be dropped only on certain sections of the page-

/etc/designs/default/jcr:content  or

/etc/designs/geometrixx-outdoors/jcr:content

Level 2
January 4, 2019

Unfortunately, this method leaves the component in the sidekick. We do not want the component to be displayed in the sidekick.

Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
January 4, 2019

The other solution is not a clean solution -

Move all those components to a particular Group (You can create multiple Groups for your project's design) and hide that entire group in the sidekick via css (add display:none; on that group's element on sidekick load/ready event). This way the component can still be moved but would not be visible in the sidekick.

Pick any sidekick article and customize it -

Experiencing Adobe Experience Manager - Day CQ: In the blog "Experiencing Adobe Experience Manger - Day CQ"