# Editing the display template

!!!info
The display template editor is complex, but allows you to control which data fields are  displayed in a template, and how they are formatted. A template is typically divided into sections. Each section can have a header, some content and some metadata, to display properly.
!!!

<div>
  <script async src="https://js.storylane.io/js/v2/storylane.js"></script>
  <div class="sl-embed" style="position:relative;padding-bottom:calc(46.19% + 25px);width:100%;height:0;transform:scale(1)">
    <iframe loading="lazy" class="sl-demo" src="https://app.storylane.io/demo/pe53ygahxpla?embed=inline" name="sl-embed" allow="fullscreen" allowfullscreen style="position:absolute;top:0;left:0;width:100%!important;height:100%!important;border:1px solid rgba(63,95,172,0.35);box-shadow: 0px 0px 18px rgba(26, 19, 72, 0.15);border-radius:10px;box-sizing:border-box;"></iframe>
  </div>
</div>

---

With a rich record open, and the template you have just created or want to edit selected in the Using Template dropdown, click on the **Edit Display Template** icon at the right of the screen to open the **editor** in a sidebar on the right of the screen.

You can **close** the editor at any time with the ‘X’ icon button above the Edit Display Template icon, but changes you have made may not be saved.

Changes you save as you go along will be reflected in the current view of the template without having to refresh the page.

You can also look at your **source data** for the current record, see its structure and identify which fields contain which data, by clicking on the **Other Formats** tab to look at the **indexed data**.

This will not lose, save or otherwise affect your data as you move between the two. You should use the top navigation to move between the two: if you close the data view with the ‘X’ in the top right hand corner, you will lose your current edits to the custom template.
