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": "test and debugging site for Cradle CMS",
    "keywords": "keyword,added,in,admin",
    "data": null
  },
  "organisation": "Cradle",
  "location": "Stockholm",
  "data": {
    "robots": "User-agent: *\nDisallow:\n"
  },
  "langs": {
    "en": {
      "meta": {
        "h1": "Debugging",
        "title": "Debugging",
        "description": "test and debugging site for Cradle CMS",
        "keywords": "keyword,added,in,admin",
        "data": null
      }
    }
  }
}
Site specific objects

Input

                    
                        {{ metaTitle }}
                        {{ metaDescription }}
                        {{ metaKeywords }}
                        {{ canonicalUrl | escape }}
                        {{ template }}
                    
                

Output

                    
                        About
                        test and debugging site for Cradle CMS
                        
                        https://test.cradlecms.com/page/about
                        page
                    
                
Request object{{ request | inspect }}
{
  "host": "test.cradlecms.com",
  "origin": "",
  "path": "/page/about",
  "query": "",
  "referer": "",
  "remote": "216.73.216.51",
  "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/page/about ; contains https://contains site URL

Page object
{{ page | inspect }}
{"id":"189063cc-e29c-8209-8065-af3b0c3d03e1","authorId":"18639375-58ce-84f4-a5ca-202209038dc8","published":true,"createdAt":"2026-02-02T09:26:25.182Z","updatedAt":"2026-02-02T09:27:11.979Z","publishAt":"2026-02-02T09:27:17.314Z","lang":"en","handle":"about","title":"About","html":"\u003cp\u003eIn academic terms, a text is anything that conveys a set of meanings to \nthe person who examines it. You might have thought that texts were \nlimited to written materials, such as books, magazines, newspapers, and \n‘zines (an informal term for magazine that refers especially to fanzines\n and webzines). Those items are indeed texts—but so are movies, \npaintings, television shows, songs, political cartoons, online \nmaterials, advertisements, maps, works of art, and even rooms full of \npeople. If we can look at something, explore it, find layers of meaning \nin it, and draw information and conclusions from it, we’re looking at a \ntext.\u003c/p\u003e","meta":{"h1":"About","title":"About","description":"test and debugging site for Cradle CMS","keywords":"","data":null},"image":{"src":"","alt":"","alts":null},"text":"In academic terms, a text is anything that conveys a set of meanings to \nthe person who examines it. You might have thought that texts were \nlimited to written materials, such as books, magazines, newspapers, and \n‘zines (an informal term for magazine that refers especially to fanzines\n and webzines). Those items are indeed texts—but so are movies, \npaintings, television shows, songs, political cartoons, online \nmaterials, advertisements, maps, works of art, and even rooms full of \npeople. If we can look at something, explore it, find layers of meaning \nin it, and draw information and conclusions from it, we’re looking at a \ntext.","format":"RTE"}

{{ page | url }}: /page/about | Has content


About

In academic terms, a text is anything that conveys a set of meanings to the person who examines it. You might have thought that texts were limited to written materials, such as books, magazines, newspapers, and ‘zines (an informal term for magazine that refers especially to fanzines and webzines). Those items are indeed texts—but so are movies, paintings, television shows, songs, political cartoons, online materials, advertisements, maps, works of art, and even rooms full of people. If we can look at something, explore it, find layers of meaning in it, and draw information and conclusions from it, we’re looking at a text.