In AEM we can achieve this by creating a widgets clienlibrary, which holds the custom multifield structure and it should call before the comps/page loads in CQ.
Create a clientlibrary in the root folder called apps. Here i am creating a folder called advtraining in apps. In this im creating the clientlibrary called "cqwidgets" having categories as "cq.widgets".
Now after creating this , place our custom multifield code in the created js file.
And Create a component for placing our custom xtype . And just drag the component in to the page and start using it.
Complete information @AEMBOOK - Custom xtype in cq5 / Creating multifield in AEM
Cheers!!!
Create a clientlibrary in the root folder called apps. Here i am creating a folder called advtraining in apps. In this im creating the clientlibrary called "cqwidgets" having categories as "cq.widgets".
Now after creating this , place our custom multifield code in the created js file.
And Create a component for placing our custom xtype . And just drag the component in to the page and start using it.
Complete information @AEMBOOK - Custom xtype in cq5 / Creating multifield in AEM
Cheers!!!