How to load clientlibs (to setup default values to page properties, show/hide fields) while creating a page using template in AEM 6.5? | Community
Skip to main content
Level 4
May 27, 2024
Solved

How to load clientlibs (to setup default values to page properties, show/hide fields) while creating a page using template in AEM 6.5?

  • May 27, 2024
  • 1 reply
  • 962 views

Hi Team,

I did try to create Clientlib with categories="[cq.authoring.editor]" and load while creating a page using template, but it didn't load.

where as the same clientlib loading while editing page properties with custom category.

My requirement is to do below activities while creating a page,

  1. setup current date value to a date field.
  2. show/hide a field based on other field default value.

can you guys let me know what did i miss here?

 

Thanks,

Raju.

 

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 EstebanBustamante

Hi, 


This is how I have set it:

 


It is working fine for me:

 

Hope this helps

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 27, 2024

Hi,


You could simply create your own clientlib and then include it in the page properties' dialog, this article explains how to do it: https://adapttoaem.blogspot.com/2021/02/aem-create-custom-touch-dialog-ui-edit.html 

 

Let me know if you have any issues.


Hope this helps.

Esteban Bustamante
Level 4
May 27, 2024

Hi @estebanbustamante ,

Thanks for your quick response.

I tried the same thing, but didn't work.

here are more details -

Clientlibs -

 

Clientlibs are not loading while creating page -

Same clientlibs are loading while editing page properties -

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 27, 2024

Hi, 


This is how I have set it:

 


It is working fine for me:

 

Hope this helps

Esteban Bustamante