Problem · Sitecore

Catch a removed template field in serialized Sitecore items

Sitecore Content Serialization writes one file for each template, section and field. A removed field is a deleted file among many. Nothing in the repository says which components read it.

An example

Take PLAY! Summit, the XM Cloud demo that Sitecore publishes. In October 2022 its authors removed the fields cssClass and position from the template FullImageSection.

What an agent sees

An agent that writes a component needs the template and its fields. The governed model gives it both as one answer, and compares the next pull with it.

What you can do today

  • The YAML files of your templates from dotnet sitecore ser pull. CoreModels needs no login to Sitecore.
  • Your assistant imports them into a CoreModels project.
  • After the next change, the assistant audits the new files. The answer is pass or fail and names each removed field and each changed type.
  • The same check runs in a pull request with one command.

See the recorded run, with every prompt and answer

What it does not do

  • A template that is deleted is not reported. Its fields are no longer compared.
  • The answer names a template by its item id and a field by its name.
  • CoreModels reads the files you give it. It has no login to Sitecore and it writes nothing back.

← Back to Sitecore

Start building

14-day free trial. Builder $49/mo after the trial. Cancel any time.