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

                    
                        
                        
                        
                        https://test.cradlecms.com/collection
                        collections-list
                    
                
Request object{{ request | inspect }}
{
  "host": "test.cradlecms.com",
  "origin": "",
  "path": "/collection",
  "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/collection ; contains https://contains site URL

Collections object - array of the collections in the system
[
  {
    "conditions": [
      {
        "id": "1890650d-321e-861c-a17d-7d2b09a83578",
        "field": "type",
        "operator": "=",
        "condition": "Beverage"
      }
    ],
    "createdAt": "2026-02-02T09:49:13.431Z",
    "entity": "collection",
    "format": "RTE",
    "handle": "bevarages",
    "html": "",
    "id": "1890650b-7494-86e2-9025-1cd66c8b8e3e",
    "image": {
      "src": "",
      "alt": "",
      "alts": null
    },
    "lang": "en",
    "meta": {
      "h1": "Bevarages",
      "title": "Bevarages",
      "description": "",
      "keywords": "",
      "data": null
    },
    "onlyAvailable": false,
    "productTags": null,
    "productTypes": [
      "Beverage"
    ],
    "productVendors": [
      "Coffee shop"
    ],
    "products": {},
    "publishAt": "2026-02-02T09:51:00.092Z",
    "published": true,
    "siteId": "",
    "sorting": "",
    "tags": null,
    "template": "",
    "text": "",
    "title": "Bevarages",
    "type": "COLLECTION_AUTOMATIC",
    "updatedAt": "2026-02-02T09:50:37.734Z",
    "url": ""
  }
]

List of collections

Collection object
{
  "conditions": [
    {
      "id": "1890650d-321e-861c-a17d-7d2b09a83578",
      "field": "type",
      "operator": "=",
      "condition": "Beverage"
    }
  ],
  "createdAt": "2026-02-02T09:49:13.431Z",
  "entity": "collection",
  "format": "RTE",
  "handle": "bevarages",
  "html": "",
  "id": "1890650b-7494-86e2-9025-1cd66c8b8e3e",
  "image": {
    "src": "",
    "alt": "",
    "alts": null
  },
  "lang": "en",
  "meta": {
    "h1": "Bevarages",
    "title": "Bevarages",
    "description": "",
    "keywords": "",
    "data": null
  },
  "onlyAvailable": false,
  "productTags": null,
  "productTypes": [
    "Beverage"
  ],
  "productVendors": [
    "Coffee shop"
  ],
  "products": {},
  "publishAt": "2026-02-02T09:51:00.092Z",
  "published": true,
  "siteId": "",
  "sorting": "",
  "tags": null,
  "template": "",
  "text": "",
  "title": "Bevarages",
  "type": "COLLECTION_AUTOMATIC",
  "updatedAt": "2026-02-02T09:50:37.734Z",
  "url": ""
}

Bevarages

Product object
{
  "available": true,
  "collections": null,
  "compareAtPrice": 0,
  "compareAtPriceMax": 0,
  "compareAtPriceMin": 0,
  "compareAtPriceVaries": false,
  "createdAt": "2026-02-02T09:42:16.988Z",
  "currency": "EUR",
  "entity": "product",
  "featuredImage": {
    "src": "fruit-3222313_1920.jpg",
    "alt": "",
    "alts": null
  },
  "firstAvailableVariantId": "00000000-0000-0000-0000-000000000000",
  "format": "RTE",
  "fulfillmentService": "",
  "handle": "smoothie",
  "html": "",
  "id": "189064aa-7ea4-839f-8e28-ba560bfad23f",
  "images": null,
  "inventoryLocation": "",
  "inventoryManagement": "INVENTORY_INTERNAL",
  "inventoryPolicy": "SOLD_OUT_DENY",
  "keyFeatures": null,
  "lang": "en",
  "license": false,
  "meta": {
    "h1": "Smoothie",
    "title": "Smoothie",
    "description": "",
    "keywords": "",
    "data": null
  },
  "optionKeys": [
    "flavour"
  ],
  "options": {
    "flavour": "Flavour"
  },
  "price": 2500,
  "priceMax": 2500,
  "priceMin": 2500,
  "priceVaries": false,
  "publishAt": "2026-02-02T09:47:24.791Z",
  "published": true,
  "quantity": 33,
  "selectedVariant": {},
  "shippable": true,
  "tags": null,
  "template": "",
  "text": "",
  "title": "Smoothie",
  "type": "Beverage",
  "updatedAt": "2026-02-02T09:47:19.644Z",
  "url": "",
  "variants": {},
  "vendor": "Coffee shop",
  "vendorId": "189064b3-9977-844d-ad63-a105aef466d9"
}

Smoothie

Product object
{
  "available": true,
  "collections": null,
  "compareAtPrice": 0,
  "compareAtPriceMax": 0,
  "compareAtPriceMin": 0,
  "compareAtPriceVaries": false,
  "createdAt": "2026-02-02T09:47:55.066Z",
  "currency": "EUR",
  "entity": "product",
  "featuredImage": {
    "src": "coffee-8388244_1920.jpg",
    "alt": "",
    "alts": null
  },
  "firstAvailableVariantId": "00000000-0000-0000-0000-000000000000",
  "format": "RTE",
  "fulfillmentService": "",
  "handle": "coffee",
  "html": "",
  "id": "189064f9-35a5-83c9-87d6-cb82d393b31c",
  "images": null,
  "inventoryLocation": "",
  "inventoryManagement": "INVENTORY_INTERNAL",
  "inventoryPolicy": "SOLD_OUT_DENY",
  "keyFeatures": null,
  "lang": "en",
  "license": false,
  "meta": {
    "h1": "Coffee",
    "title": "Coffee",
    "description": "",
    "keywords": "",
    "data": null
  },
  "optionKeys": null,
  "options": null,
  "price": 0,
  "priceMax": 0,
  "priceMin": 0,
  "priceVaries": false,
  "publishAt": "2026-02-02T09:48:51.157Z",
  "published": true,
  "quantity": 0,
  "selectedVariant": {},
  "shippable": true,
  "tags": null,
  "template": "",
  "text": "",
  "title": "Coffee",
  "type": "Beverage",
  "updatedAt": "2026-02-02T09:48:03.228Z",
  "url": "",
  "variants": {},
  "vendor": "Coffee shop",
  "vendorId": "189064b3-9977-844d-ad63-a105aef466d9"
}

Coffee

Product object
{
  "available": true,
  "collections": null,
  "compareAtPrice": 0,
  "compareAtPriceMax": 0,
  "compareAtPriceMin": 0,
  "compareAtPriceVaries": false,
  "createdAt": "2026-02-02T09:48:11.582Z",
  "currency": "EUR",
  "entity": "product",
  "featuredImage": {
    "src": "pexels-beverage-1869722_1920.jpg",
    "alt": "",
    "alts": null
  },
  "firstAvailableVariantId": "00000000-0000-0000-0000-000000000000",
  "format": "RTE",
  "fulfillmentService": "",
  "handle": "tea",
  "html": "",
  "id": "189064fd-0e18-872e-86c7-dd41fba6e9f7",
  "images": null,
  "inventoryLocation": "",
  "inventoryManagement": "INVENTORY_INTERNAL",
  "inventoryPolicy": "SOLD_OUT_DENY",
  "keyFeatures": null,
  "lang": "en",
  "license": false,
  "meta": {
    "h1": "Tea",
    "title": "Tea",
    "description": "",
    "keywords": "",
    "data": null
  },
  "optionKeys": null,
  "options": null,
  "price": 2000,
  "priceMax": 2000,
  "priceMin": 2000,
  "priceVaries": false,
  "publishAt": "2026-02-02T09:48:44.311Z",
  "published": true,
  "quantity": 100,
  "selectedVariant": {},
  "shippable": true,
  "tags": null,
  "template": "",
  "text": "",
  "title": "Tea",
  "type": "Beverage",
  "updatedAt": "2026-02-02T09:48:33.229Z",
  "url": "",
  "variants": {},
  "vendor": "Coffee shop",
  "vendorId": "189064b3-9977-844d-ad63-a105aef466d9"
}

Tea