In this tutorial we will see how to create Touch UI Nested Multifield component using HTL in aem. This tutorial is in continuation with our last tutorial about creating multifiled component in aem. In this tutorials also we will be using ACS common (Adobe consulting services) multifield component that allows developers to create a nested multifield (multifiled inside multifiled) of a fieldsetā¦
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
ā Live Streamingā Interactive Chatā Private Showsā HD Quality
Anya is LIVE right now
FREE
Free to watch ⢠No registration required ⢠HD streaming
While looking for some instructions on how to create a custom widget I landed on a great website that I wasn't aware of beforeĀ ACS AEM Commons.
AEM Commons is a package containing a bunch of different common and very useful features. I think the lemma of this packages say it allĀ āThe wheel doesn't need reinventingā.
The Installation of this tools is very easy, it can be done using maven or manually deploying the package, this can be done via package manager.
The package can be found in GitHub.
The feature that I used at first was theĀ āMulti Field Panelā. This feature is inside theĀ āCustom Widgets and Validatorsā section.
I am pretty sure you as a developer have faced the need to create a multifield property that contains more than one type of fields.
The traditional way to workaround this requirement is to create a custom widget. This for sure take some time, plus it might very complex to maintain it and reuse it for multiple purposes.
Now, with the AEM Commons tools, this requirement and necessity is covered.
The field to be used isĀ multifieldpanel.Ā It will store the content in a json string. The tools also offer a custom tag to read this property.
āThe multifieldpanel widget is a widget which enables the management of complex items in a traditional multifield. These complex items are composed of multiple widgets.ā
JSON:
{"term":"term","definition":"a word or phrase used to describe a thing"}