# Migrating twig settings schema

> When migrating old twig settings schema to the new vitrin schema, a few breaking changes need to be taken into consideration

## Reference the template path for each section

This is necessary so that the section can be rendered correctly, example:

```json
  "sections": [
    {
      "label": {
        "ar": "Image Slider",
        "en": "Image Slider"
      },
      "template": "sections/image_slider.jinja",
```
## List order

There is no `“order”: N` key value to handle sorting items, each time the user changes the order of the items in a list (sections, images, etc.) the whole list shall be updated to preserve the new order.


## `noLabel` is deprecated

Like in this instance

```json
"hide_dots": {
  "type": "checkbox",
  "label": {
    "ar": " ",
    "en": " "
  },
  "option": {
    "ar": "إخفاء النقاط",
    "en": "Hide dots"
  },
  "noLabel": true
}
```

Would now become:

```json
{
  "type": "checkbox",
  "id": "hide_dots",
  "label": {
    "ar": "إخفاء النقاط",
    "en": "Hide dots"
  }
}
```

If you want a setting to not have a label, you can simply keep the label values as empty strings in the label object. 
