I am using SXA Map component on my page and using one template "Office POI". This template have shared fields like Street, City, Pin etc. Items created on this template works perfectly on Map but now I have a requirement where I need to show offices in different component and this component should support multilingual POIs. Since existing template have shared field it can't create multilingual POIs so I am considering to create a new template with fields that are not shared. I can duplicate existing template and uncheck Shared checkbox but that looks like violating "DRY" principle. Is there any better way to create such template?

1 Answer 1


This flowchart <Link here> helps make the decision in most cases on when to go for custom renderings.

In view of Maps I see your need to make the fields UnShared which would still fall into the category of Datasource customization as it is never a good practice to change the XA templates in first place.

It is ok to create a new template copy and then create a new Map Localized Rendering (cloned) with one edit on Datasource Template to point to your new template.

Keeping this simple not only gives benefit to extend the Maps to serve your purpose but also keeps your upgrades safe and easy serving the sxa core purpose of reusability and speed to production.(although not DRY :))

  • 1
    Thanks you Suneeth for shedding lights on it. I had to go this way only. "upgrade safe" makes much sense.
    – Imad
    Commented Mar 10, 2022 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.