Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Custom layer(mode)

Avatar

Level 5

I've followed this and install the github zip

1684464_pastedImage_0.png

Yet nothing is added in my layers

1684465_pastedImage_1.png

I want to add something here

1684469_pastedImage_2.png

OR here

1684471_pastedImage_4.png

like an export page something.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Customizing Page Authoring

The new clientlib must:

  • depend on the authoring clientlib cq.authoring.editor.sites.page
  • be part of the appropriate cq.authoring.editor.sites.page.hook category

In this package, you will notice the categories="[cq.authoring.editor.sites.page.hook]", add that as a dependency to your authoring clientlibs and then test.

aem-authoring-new-layer-mode/.content.xml at master · Adobe-Marketing-Cloud/aem-authoring-new-layer-... 

View solution in original post

9 Replies

Avatar

Correct answer by
Level 10

Customizing Page Authoring

The new clientlib must:

  • depend on the authoring clientlib cq.authoring.editor.sites.page
  • be part of the appropriate cq.authoring.editor.sites.page.hook category

In this package, you will notice the categories="[cq.authoring.editor.sites.page.hook]", add that as a dependency to your authoring clientlibs and then test.

aem-authoring-new-layer-mode/.content.xml at master · Adobe-Marketing-Cloud/aem-authoring-new-layer-... 

Avatar

Level 5

how do I add to authoring clientlibs dependency? Thanks.

Avatar

Level 10

11.png

** this is just a placeholder, modify it per requirements

Avatar

Level 5

How do I diagnose this? smacdonald2008gauravb10066713

Restarting didn't help

Avatar

Level 5

I got it now. but by embedding it to clintlib-base.

1685332_pastedImage_0.png

Avatar

Level 10

If you 'embed' it in base clientlibs then you are defeating the purpose of using "author(ing)" specific libraries. You would never want the editor layer to be available on publish server and to the end-user which becomes an overhead.

Avatar

Level 5

I removed it from dependencies/embed yet it's still showing. Is there anyway I can clear cache in aem?