Custom layer(mode) | Community
Skip to main content
Karl515
Level 5
February 5, 2019
Solved

Custom layer(mode)

  • February 5, 2019
  • 9 replies
  • 3305 views

I've followed this and install the github zip

Yet nothing is added in my layers

I want to add something here

OR here

like an export page something.

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

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-mode · GitHub 

9 replies

Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
February 6, 2019

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-mode · GitHub 

Karl515
Karl515Author
Level 5
February 6, 2019

how do I add to authoring clientlibs dependency? Thanks.

Gaurav-Behl
Level 10
February 6, 2019

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

Karl515
Karl515Author
Level 5
February 6, 2019

we retail

sample

still doesn't

Karl515
Karl515Author
Level 5
February 6, 2019

How do I diagnose this? smacdonald2008gauravb10066713

Restarting didn't help

Karl515
Karl515Author
Level 5
February 6, 2019

What about in this side?

Karl515
Karl515Author
Level 5
February 6, 2019

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

Gaurav-Behl
Level 10
February 6, 2019

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
Karl515Author
Level 5
February 7, 2019

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