In our implementation of the DXA web app, most of the times we encounter scenarios where the Components are NOT having content in all the fields.

Is there a way to store these empty fields in the DB as well while saving the Components XML, as empty XML tags, so that the Component XML has all the fields in it.

  • Sounds very similar to tridion.stackexchange.com/questions/19796/… Commented Feb 19, 2019 at 17:43
  • 1
    Or if you're talking about in CME, AFAIK - OOTB - In CME GUI default behavior it will only keep the user populated fields as Component XML, not all the fields. Possibility yes, if you looking to keep all the fields then you can use Event system On Save event pre-process the Component Content XML based on schema specific fields using TOM.NET API and save the Component XML.
    – Velmurugan
    Commented Feb 21, 2019 at 14:39
  • Thank you. Yes, I was thinking the same. Just wanted to confirm, if that's the only possible way to do it, as we are trying to ensure minimal usage of Event System customization in our applications.
    – NewUser
    Commented Feb 21, 2019 at 17:16


Your Answer

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

Browse other questions tagged or ask your own question.