ACS AEM Commons: Parameterized dialog snippets & various injectors

ACS AEM Commons is a library containing all kinds of reusable parts and modules for your AEM project.

In this talk, you will get to see how it can help you to create more modularity / composition in your component dialogs.

This will help you keep your dialogs DRY whenever possible.

Also, some injectors are showcased (@I18N, @ContentPolicyValue, @TagProperty) in a simple manner.

Jesse Pinkman

How maintainable is ACS AEM Commons on the cloud with the continues changes and auto updates of Adobe

Robert Munteanu

Not related to ACS commons :-) But I can say that we take backwards compatibility very seriously. We want customers to be running on the latest release of Cloud Service - it makes sense for everyone. So if updates break ACS commons we will figure things out.

Konrad Windszus

Also ACS AEM Commons is open source. The more people contribute the faster it can adapt/evolve.

Vlad

How do you ensure changes to included snippet work well in all the places it might be used?

Dominik Suess

Good question. Answer: you just have to scan the code repo's and have good enforcement. There is no compilation here, so you have to be careful in this regard.

Does it support dynamic loading of java script files? (similar you did with css class)

Dominik Suess

Dynamic loading of javascript loaded how exactly, from HTL? or in the dialog?

puradawid

What would be the case to cast a type in the parameter? Aren't they text in every case?

(see answer in talk video)

Fabian

Does this work for the metadata schema, too?

Matija Kovacek

Is it possible to change validation rules like required/not required when we includ the fields?

Dominik Suess

Yes absolutely.

ilagno

Is it possible to rewrite attribute values of the child components?

Dominik Suess

That is more a HTL question I think? Or do you mean attributes of a child dialog node? that would work, yes.

Is it possible to create some content.xml as a template, and put diiferent elements into the specified sections? Like "hero_content.xml" with 1 CTA or 2 CTAs

TheHorse

Does it work with multifield?

Dominik Suess

Yes this works with multifield. The keys in the multifield won't be namespaced, just the root name property.

Does dialog parameters works with CF multifield?

Dominik Suess

I never tried this to be honest. I would try it and if it does not, file an issue on https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues