Debugging

Site object{{ site | inspect }}
{
  "id": "189063c4-bf77-8b18-8bf7-8037402f5acf",
  "name": "Debugging",
  "lang": "en",
  "accountId": "185d73b6-7e7b-80a5-bd7f-dc10366b38f3",
  "domain": "test.cradlecms.com",
  "theme": "189063cb-1317-8834-98da-c5ed0429de80",
  "createdAt": "2026-02-02T09:25:50Z",
  "meta": {
    "h1": "Debugging",
    "title": "Debugging",
    "description": "",
    "keywords": "",
    "data": null
  },
  "data": {
    "robots": "User-agent: *\nDisallow:\n"
  },
  "langs": {
    "en": {
      "meta": {
        "h1": "Debugging",
        "title": "Debugging",
        "description": "",
        "keywords": "",
        "data": null
      }
    }
  }
}
Site specific objects

Input

                    
                        {{ metaTitle }}
                        {{ metaDescription }}
                        {{ metaKeywords }}
                        {{ canonicalUrl }}
                        {{ template }}
                    
                

Output

                    
                        Smoothie
                        
                        
                        https://test.cradlecms.com/product/smoothie
                        product
                    
                
Request object{{ request | inspect }}
{
  "host": "test.cradlecms.com",
  "origin": "",
  "path": "/product/smoothie",
  "query": "",
  "referer": "",
  "remote": "216.73.216.169",
  "scheme": "https"
}
| url filter tests on global objects

page | url

Input

    
    {% assign pageGlobal = pages[0] %}
    {{ pageGlobal | url }}
    

Output

/page/about

Has content

blog | url

Input

    
    {% assign blogGlobal = blogs[0] %}
    {{ blogGlobal | url }}
    

Output

/blog/birds

Has content

article | url

Output

/blog/birds/article/fairywren

Has content

Has four parts

Input

    
    {% let firstBlog = blogs[0] %}
    {% assign articleGlobal = firstBlog.articles[0] %}
    {{ articleGlobal | url }}
    

collection | url

Input

    
    {% assign collectionGlobal = collections[0] %}
    {{ collectionGlobal | url }}
    

Output

/collection/bevarages

Has content

product | url

Input

    
    {% assign productGlobal = products[0] %}
    {{ productGlobal | url }}
    

Output

/product/smoothie

Has content



{{ canonicalUrl }}: https://test.cradlecms.com/product/smoothie ; contains https://contains site URL

Product object
{
  "id": "189064aa-7ea4-839f-8e28-ba560bfad23f",
  "type": "Beverage",
  "published": true,
  "vendorId": "189064b3-9977-844d-ad63-a105aef466d9",
  "vendor": "Coffee shop",
  "featuredImage": {
    "src": "fruit-3222313_1920.jpg",
    "alt": "",
    "alts": null
  },
  "available": true,
  "shippable": true,
  "inventoryPolicy": "SOLD_OUT_DENY",
  "inventoryManagement": "INVENTORY_INTERNAL",
  "lang": "en",
  "format": "RTE",
  "createdAt": "2026-02-02T09:42:16.988Z",
  "updatedAt": "2026-02-02T09:47:19.644Z",
  "publishAt": "2026-02-02T09:47:24.791Z",
  "handle": "smoothie",
  "title": "Smoothie",
  "optionKeys": [
    "flavour"
  ],
  "options": {
    "flavour": "Flavour"
  },
  "meta": {
    "h1": "Smoothie",
    "title": "Smoothie",
    "description": "",
    "keywords": "",
    "data": null
  },
  "currency": "EUR",
  "variants": [
    {
      "productId": "189064aa-7ea4-839f-8e28-ba560bfad23f",
      "id": "189064aa-7f5a-8625-a39d-6098289eb1f7",
      "quantity": 10,
      "position": 1,
      "createdAt": "2026-02-02T09:42:17Z",
      "updatedAt": "2026-02-02T09:42:17Z",
      "publishAt": "2026-02-02T09:42:17Z",
      "currency": "EUR",
      "price": 2500,
      "options": {
        "flavour": "Pineapple"
      },
      "available": true,
      "title": " | Pineapple"
    },
    {
      "productId": "189064aa-7ea4-839f-8e28-ba560bfad23f",
      "id": "189064c1-a9ea-8a26-a45d-5fcf4e9920fd",
      "quantity": 10,
      "position": 2,
      "createdAt": "2026-02-02T09:43:56.498Z",
      "updatedAt": "2026-02-02T09:43:56Z",
      "publishAt": "2026-02-02T09:43:56.498Z",
      "currency": "EUR",
      "price": 2500,
      "options": {
        "flavour": "Raspberry"
      },
      "available": true,
      "title": " | Raspberry"
    },
    {
      "productId": "189064aa-7ea4-839f-8e28-ba560bfad23f",
      "id": "189064ce-75d2-8204-96ff-e85d9dc7340e",
      "quantity": 10,
      "position": 3,
      "createdAt": "2026-02-02T09:44:51.458Z",
      "updatedAt": "2026-02-02T09:44:51Z",
      "publishAt": "2026-02-02T09:44:51.458Z",
      "currency": "EUR",
      "price": 2500,
      "options": {
        "flavour": "Kiwi"
      },
      "available": true,
      "title": " | Kiwi"
    },
    {
      "productId": "189064aa-7ea4-839f-8e28-ba560bfad23f",
      "id": "189064e5-f54d-8238-ba16-b7510ae8e176",
      "quantity": 3,
      "position": 4,
      "createdAt": "2026-02-02T09:46:32.382Z",
      "updatedAt": "2026-02-02T09:46:32Z",
      "publishAt": "2026-02-02T09:46:32.382Z",
      "currency": "EUR",
      "price": 2500,
      "options": {
        "flavour": "blueberry"
      },
      "available": true,
      "title": " | blueberry"
    }
  ],
  "selectedVariant": {
    "productId": "189064aa-7ea4-839f-8e28-ba560bfad23f",
    "id": "189064aa-7f5a-8625-a39d-6098289eb1f7",
    "quantity": 10,
    "position": 1,
    "createdAt": "2026-02-02T09:42:17Z",
    "updatedAt": "2026-02-02T09:42:17Z",
    "publishAt": "2026-02-02T09:42:17Z",
    "currency": "EUR",
    "price": 2500,
    "options": {
      "flavour": "Pineapple"
    },
    "available": true,
    "title": " | Pineapple"
  },
  "firstAvailableVariantId": "189064aa-7f5a-8625-a39d-6098289eb1f7"
}