How to pre fill page name dynamically while creating a page in AEM
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.
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.
It depends on the requirement (Are you looking to leverage UUID/GUIDs?). If you want to pre-populate the page-name in the dialog wizard, you can do that using JS.
1. Define a clientlib - the JS (Assumping you want to use GUID/UUID or some other IDs which can easily generated on client side) file should inject a value into the AEM Page Name field. See dialog validations based on jQuery if you need more info on how to do this
2. Go to your page template component (if you're using OOTB one then overlay this node) and load the above clientlib in this page component
Thats it.
When you create a page then it should pre-populate the value.
Let me know.
Thanks,
Singaiah
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.