How to pre fill page name dynamically while creating a page in AEM

Nagarjuna06

12-09-2020

Hi, i have a requirement to prefill page name with unique Id while creating a page. Could you please let me know if you have any ideas on how to handle this.

View Entire Topic

ChitraMadan

MVP

12-09-2020

Hi @Nagarjuna06 ,

 

This is the node which is responsible for taking page name while creating a page.

You need to overlay this path if you want to customise Page Name.

 

/libs/wcm/foundation/components/basicpage/v1/basicpage/tabs/basic/items/column/items/title/items/pagename

 

Now, to generate unique id, you will have to write js for it. Please refer to below articles for few options.

 

https://www.linkedin.com/pulse/event-handling-touch-ui-dialog-varun-shakya/

https://aemsimplifiedbynikhil.wordpress.com/2018/07/30/touchui-dialog-listeners-aem-6-3/