Expand my Community achievements bar.

SOLVED

Email & URL validation on Page property dialog in AEM 6.5

Avatar

Level 3

Hi Everyone,

Does anyone has implemented email or URL validation on fields present inside page properties (Not author dialog). Please share some references.
Custom clientlib is not getting called while creating page (page properties), but it's working when I open the page properties after page got created.

Thank You !

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@malay_dube yes try creating a node under items

View solution in original post

5 Replies

Avatar

Community Advisor

@malay_dube you can try adding the attribute extraClientlibs to the page property dialog definition of your pageproperties and include it there.

Avatar

Level 3

Hi @Manu_Mathew_ 
Yes, as I mentioned validation is working when I open page properties of existing page. When I am trying to create new pages, same clientlib is not getting called.

Avatar

Community Advisor

@malay_dube  extraClientlibs won't work during page creation.
Can you add a node say clientlibs with sling:resourceType:granite/ui/components/coral/foundation/includeclientlibs and give categories property which you want to load

krishna_sai_0-1677583416181.png

Hope this helps,
Krishna

 

Avatar

Level 3

Hi @krishna_sai ,

Do I need to create a specific node inside items to include clientlibs?
Please confirm.

Avatar

Correct answer by
Community Advisor

@malay_dube yes try creating a node under items