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

Custom layer(mode)

Karl515
Level 5
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
Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor

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
Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor

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

Karl515
Level 5
Level 5

how do I add to authoring clientlibs dependency? Thanks.

Gaurav-Behl
Community Advisor
Community Advisor

11.png

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

Karl515
Level 5
Level 5

How do I diagnose this? smacdonald2008gauravb10066713

Restarting didn't help

Karl515
Level 5
Level 5

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

1685332_pastedImage_0.png

Gaurav-Behl
Community Advisor
Community Advisor

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.

Karl515
Level 5
Level 5

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