{{ liquidContext }} object

This Liquid object is globally accessible in every liquid template or layout and outputs a combination of the {{this}} and {{request}} Liquid objects as well as any Liquid variables available to the layout it is placed in.

{{ liquidContext }}

Below is a live example of the {{liquidContext}} output for this very documentation article, where a Liquid variable called sampleVar has been assigned in the content.
You'll notice both the request and this data collections are output along with the sampleVar variable that was included in this articles content.

The main purpose of this Liquid object is to assist with easier access to Liquid data while developing your site. See further below for examples of accessing this data during development.

{
  "empty": "",
  "blank": "",
  "siteinformation": {},
  "si": {},
  "this": {
  "Id": 2444,
  "Url": "/liquid/liquidcontext-object",
  "ParentId": 1881,
  "LastUpdatedDate": "2019-09-10T00:54:47",
  "Name": "{{ liquidContext }} object",
  "UrlSlug": "liquidcontext-object",
  "Enabled": true,
  "ReleaseDate": "2018-08-04T00:00:00",
  "ExpiryDate": "2099-11-29T00:00:00",
  "Weighting": 977,
  "Description": "<p>This Liquid object is globally accessible in every liquid template or layout and outputs a combination of the <code>{% raw %}{{this}}{% endraw %}</code> and <code>{% raw %}{{request}}{% endraw %}</code> Liquid objects as well as any Liquid variables available to the layout it is placed in.</p>\n{% capture data %}{% raw %}{{ liquidContext }}{% endraw %}{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n{% assign sampleVar = 'My Sample Value' %}\n<p>Below is a live example of the <code>{% raw %}{{liquidContext}}{% endraw %}</code> output for this very documentation article, where a Liquid variable called <b>sampleVar</b> has been assigned in the content.<br>\nYou'll notice both the <code>request</code> and <code>this</code> data collections are output along with the <code>sampleVar</code> variable that was included in this articles content.</p>\n<p>The main purpose of this Liquid object is to assist with easier access to Liquid data while developing your site. See further below for examples of accessing this data during development.</p>\n\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{liquidContext}}\", lang: \"json\" %}\n\n{% component type: \"snippet\", alias: \"section_accessing_data\" %}\n<p>As an example of rendering a desired value to the page you could use the following Liquid:</p>\n{% capture data %}\n{% raw %}\n{{ liquidContext.this.url }}\n{% endraw %}\n{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n\n<p>This would output the value <code>{{liquidContext.this.url}}</code> to the page based on the above data.</p>\n\n{% component type: \"snippet\", alias: \"section_viewing_data_while_developing\", object: \"liquidContext\", filter: \" | strip_html\" %}",
  "ItemTags": [
  "Liquid Usage"
],
  "Author_Name": "",
  "Author_Url": "",
  "Author": "",
  "SEOTitle": "",
  "MetaTitle": "",
  "MetaDescription": "",
  "ShowPageForSearchEngine": true,
  "CanonicalLink": "",
  "EnableAMP": false,
  "AMPContent": "",
  "CodeEditor": true,
  "ExternalId": 0,
  "SocialMetaTags": "",
  "OpenGraphProperties": {
  "title": "",
  "type": "",
  "url": "",
  "locale": "",
  "image": ""
},
  "DisableForSiteSearch": false,
  "SeoPriority": "",
  "CreatedByMemberId": 0,
  "ItemCategories": "",
  "ItemCategoryIdList": "",
  "SKUCode": "",
  "SiteSearchKeywords": "",
  "Active": true,
  "IgnoreUpdates": false,
  "UpdateNotes": "All new article",
  "ExternalResources": "",
  "AdditionalRelatedArticle_Name": "",
  "AdditionalRelatedArticle_Url": "",
  "AdditionalRelatedArticle": "",
  "AdditionalRelatedArticle2_Name": "",
  "AdditionalRelatedArticle2_Url": "",
  "AdditionalRelatedArticle2": "",
  "Authors": "2418",
  "ParentName": "Liquid Objects & Usage",
  "ParentUrl": "/liquid",
  "TemplateName": "Docs Template",
  "IsHome": false
},
  "request": {
  "request_url": {
  "href": "https://docs.treepl.co/liquid/liquidcontext-object",
  "origin": "https://docs.treepl.co",
  "protocol": "https",
  "hostname": "docs.treepl.co",
  "path": "/liquid/liquidcontext-object",
  "params": {}
},
  "cookies": {
  "asp.net_sessionid": "ccedwz4xmggoaetmjahtbpx1"
},
  "request_data": {
  "ip": "18.207.254.88",
  "is_mobile": 0,
  "user_agent": "CCBot/2.0 (https://commoncrawl.org/faq/)",
  "referrer": null
},
  "is_logged": false,
  "currentmember": "",
  "device_type": "Desktop",
  "timezone": {
  "label": "(UTC-06:00) Central Time (US & Canada)",
  "offset": -5.0
}
},
  "pagecontent": {% assign namePlural = this.name %}
{% assign nameSingular = this.name | append: '~x' | remove: 's~x' | remove: '~x' %}
<nav class="breadcrumbs">
    <ul>
    	<li>
    		<a href="/documentation">Documentation</a>
    	</li>
    	<li>
    	    {% assign groupSource = "Documentation Group" %}
    	    {% component source: "{{groupSource}}", layout: "", filterBy: "id", filterValue: "{{this.parentid}}", collectionVariable: "parentGroup", type: "module" %}
    		<a href="{{parentGroup.items[0].URL}}">{{parentGroup.items[0]['Name']}}</a>
    	</li>
    	<li>{{this.name}}</li>
    </ul>
</nav>
{% assign hasRecent = "x" %}


{% assign upDateP = this.lastupdateddate  | date: "%s" %}
{% assign nowDateP = "now"  | date: "%s" %}
{% assign diffDateP = nowDateP | minus: upDateP %}
{% assign diffDaysP = diffDateP | divided_by : 3600 | divided_by: 24 %}

{% if this['IgnoreUpdates'] == false and diffDaysP <= 6 %}
{% assign hasRecent = "has-recent" %}
{% break %}
{% endif %}

{% if this.ignoreupdates != true %}
{% if hasRecent == "has-recent" %}
<div class="update-note"><strong>UPDATES:</strong> {{this.updatenotes}}</div>
{% endif %}
{% endif %}
<div class="row-holder anchorNavHolder">
    <div class="col-9">
        {% if this.active == true or request.request_url.params.prev == true %}
        <header>
            <h1>{% if this.metaTitle != null %}{{this.metaTitle}}{% else %}{{this.name}}{% endif %}</h1>
            {% if this.metaDescription != null %}<p class="lead">{{this.metaDescription}}</p>{% endif %}
        </header>
        {{this.description}}
        {% endif %}
        <br>
        <hr>
        {% capture addRelated %}
        {% if this.AdditionalRelatedArticle != null %}
        <li><a href="{{this['AdditionalRelatedArticle_url']}}">{{this['AdditionalRelatedArticle_name']}}</a></li>
        {% endif %}
        {% if this.AdditionalRelatedArticle2 != null %}
        <li><a href="{{this['AdditionalRelatedArticle2_url']}}">{{this['AdditionalRelatedArticle2_name']}}</a></li>
        {% endif %}
        {% endcapture %}
        
        {% for tag in this.itemtags %}
        {% if forloop.first %}
        {% assign firstTag = tag %}
        {% endif %}
        {% endfor %}
        
        {% comment %}
        USING FIRST TAG LISTED FOR RELATED ITEMS FILTER, BUT IDEALLY USE JSON FILTERING ONCE IMPLEMENTED TO RETRIEVE ITEMS MATCHING MULTIPLE TAGS.
        Perhaps:
        { "$or" : [ tag, tag, tag...] }
        {% endcomment%}
    {% if this.itemtags.size > 0 %}
        {% component source: "Documentation Post", filterBy: "ItemTags", filterValue: "{{this.itemtags[0]}}", limit: "100", collectionVariable: "taggedItems", type: "module" %}
        {% assign rCnt = 0 %}
        {% assign rSize = taggedItems.items.size %}
        {% assign selfItem = false %}
        
        {% for r in taggedItems.items %}
            {% if r.id == this.id %}
            {% assign selfItem = true %}
            {% else %}
                {% if rCnt == 0 %}
                <h2 id="secRelatedArticles" data-tags="{{tagJSONarray}}">Related Articles</h2>
                <ul>
                    {{addRelated}}
                {% endif %}
                    <li><a {% if r.active != false %}href="{{r.url}}"{% else %}class="disabled"{% endif %} title="{{r.name}}">{{r.name}}</a><br><small>{% if r.active == true %}{% if r.metaDescription != null %}{{r.metaDescription}}{% else %}{{r.description | raw | strip_html | truncatewords: 15 }}{% endif %}{% endif %}</small></li>
                    {% assign rCnt = rCnt | plus: 1 %}
            {% endif %}
        {% endfor %}
        {% if selfItem == false and rSize > 0 %}
            </ul>
        {% elsif selfItem == true and rSize > 1 %}
            </ul>
        {% endif %}
    {% else %}
        <h2 id="secRelatedArticles">Related Articles</h2>
        <ul>
            {{addRelated}}
        </ul>
    {% endif %}
    </div>
    <nav class="side-anchor-nav col-3">
        <div class="sticky-nav">
        <ul class="docAnchorList">
            
        </ul>
        <div class="contributors-list">
            <h6>Contributors</h6>
            {% assign authorsArray = this.authors | split: ',' %}
            {% for auth in authorsArray %}
                {% component source: "Author", layout: "List", filterBy: "id", filterValue: "{{auth}}", limit: "1", type: "module" %}
            {% endfor %}
            <a href="https://forum.treepl.co/t/please-read-first-guidelines-for-documentation-contribution/173" target="_blank"><small>Want to contribute?</small></a>
        </div>
        </div>
    </nav>
</div>



<h2 id="secExternalResources">External Resources</h2>
{% if this.ExternalResources == null or this.ExternalResources == '' %}
<p>There are currently no external resources available.</p>
{% else %}
{{this.ExternalResources}}
<hr>
{% endif %}
<p>Please let us know if you have any other contributions or know of any helpful resources you'd like to see added here.</p>
{% component type: "snippet", alias: "section_questions" %},
  "docsnav": {
  "Pagination": {
  "CurrentPage": 1,
  "ItemsPerPage": 100,
  "NumberOfPages": 1,
  "TotalItemsCount": 17
},
  "Items": [
  {
    "Id": 2373,
    "Url": "/getting-started",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:37:36",
    "Name": "Getting Started",
    "UrlSlug": "getting-started",
    "Enabled": true,
    "ReleaseDate": "2019-02-24T00:00:00",
    "ExpiryDate": "2099-12-10T00:00:00",
    "Weighting": 1400,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-directions_run",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2517,
    "Url": "/learning-liquid-free-online-course",
    "ParentId": 1861,
    "LastUpdatedDate": "2020-02-27T11:39:59",
    "Name": "Learning Liquid",
    "UrlSlug": "learning-liquid-free-online-course",
    "Enabled": true,
    "ReleaseDate": "2020-02-28T00:00:00",
    "ExpiryDate": "2099-12-11T13:00:00",
    "Weighting": 1350,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": {
      "title": "",
      "type": "",
      "url": "",
      "locale": "",
      "image": ""
    },
    "DisableForSiteSearch": false,
    "SeoPriority": "0.5",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-school",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2355,
    "Url": "/bc-migration-guides",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:28:53",
    "Name": "BC Migration Guides",
    "UrlSlug": "bc-migration-guides",
    "Enabled": true,
    "ReleaseDate": "2019-02-24T18:00:00",
    "ExpiryDate": "2099-12-10T18:00:00",
    "Weighting": 1300,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-category",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2157,
    "Url": "/about-treepl-cms",
    "ParentId": 1861,
    "LastUpdatedDate": "2020-05-01T22:15:07",
    "Name": "About Treepl CMS",
    "UrlSlug": "about-treepl-cms",
    "Enabled": true,
    "ReleaseDate": "2018-09-17T19:00:00",
    "ExpiryDate": "2099-12-09T18:00:00",
    "Weighting": 1200,
    "Description": "",
    "ItemTags": null,
    "Author_Name": "Adam Wilson",
    "Author_Url": "/_author/adam-wilson",
    "Author": 2418,
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-info",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2149,
    "Url": "/site-settings-and-management",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:37:11",
    "Name": "Site Settings & Management",
    "UrlSlug": "site-settings-and-management",
    "Enabled": true,
    "ReleaseDate": "2018-09-04T19:00:00",
    "ExpiryDate": "2099-12-08T18:00:00",
    "Weighting": 1100,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-build",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2197,
    "Url": "/content-editing",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T09:54:15",
    "Name": "Content Editing",
    "UrlSlug": "content-editing",
    "Enabled": true,
    "ReleaseDate": "2018-11-06T17:24:00",
    "ExpiryDate": "2099-12-10T17:24:00",
    "Weighting": 1050,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-nICE",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2042,
    "Url": "/content-modules",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:36:24",
    "Name": "Content Modules",
    "UrlSlug": "content-modules",
    "Enabled": true,
    "ReleaseDate": "2018-08-18T19:00:00",
    "ExpiryDate": "2099-12-08T18:00:00",
    "Weighting": 998,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-view_module",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2200,
    "Url": "/crm-customer-relationship-management",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T09:01:17",
    "Name": "CRM",
    "UrlSlug": "crm-customer-relationship-management",
    "Enabled": true,
    "ReleaseDate": "2018-11-06T18:00:00",
    "ExpiryDate": "2099-12-11T07:00:00",
    "Weighting": 995,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-account_box",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2203,
    "Url": "/email-notifications",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:42:41",
    "Name": "Email Notifications",
    "UrlSlug": "email-notifications",
    "Enabled": true,
    "ReleaseDate": "2018-11-06T18:00:00",
    "ExpiryDate": "2099-12-10T18:00:00",
    "Weighting": 990,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-email",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2309,
    "Url": "/email-marketing",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:44:10",
    "Name": "Email Marketing",
    "UrlSlug": "email-marketing",
    "Enabled": true,
    "ReleaseDate": "2018-12-15T04:58:00",
    "ExpiryDate": "2099-12-10T18:00:00",
    "Weighting": 987,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-pie_chart",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2437,
    "Url": "/ecommerce",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:44:57",
    "Name": "eCommerce",
    "UrlSlug": "ecommerce",
    "Enabled": true,
    "ReleaseDate": "2019-08-24T00:00:00",
    "ExpiryDate": "2099-12-12T00:00:00",
    "Weighting": 986,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": false,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "0.5",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-shopping_cart",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2127,
    "Url": "/component-types",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:47:42",
    "Name": "Liquid Components",
    "UrlSlug": "component-types",
    "Enabled": true,
    "ReleaseDate": "2018-09-03T00:00:00",
    "ExpiryDate": "2099-12-09T00:00:00",
    "Weighting": 985,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-waves",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 1881,
    "Url": "/liquid",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:48:04",
    "Name": "Liquid Objects & Usage",
    "UrlSlug": "liquid",
    "Enabled": true,
    "ReleaseDate": "2018-07-27T19:00:00",
    "ExpiryDate": "2099-12-08T18:00:00",
    "Weighting": 980,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-waves",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2514,
    "Url": "/liquid-filters",
    "ParentId": 1861,
    "LastUpdatedDate": "2020-02-27T04:58:53",
    "Name": "Liquid Filters",
    "UrlSlug": "liquid-filters",
    "Enabled": true,
    "ReleaseDate": "2020-02-27T00:00:00",
    "ExpiryDate": "2099-12-11T13:00:00",
    "Weighting": 977,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": {
      "title": "",
      "type": "",
      "url": "",
      "locale": "",
      "image": ""
    },
    "DisableForSiteSearch": false,
    "SeoPriority": "0.5",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-waves",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 2150,
    "Url": "/treepl-portal",
    "ParentId": 1861,
    "LastUpdatedDate": "2020-05-20T02:50:05",
    "Name": "Treepl Portal",
    "UrlSlug": "treepl-portal",
    "Enabled": true,
    "ReleaseDate": "2018-09-12T00:00:00",
    "ExpiryDate": "2099-12-09T00:00:00",
    "Weighting": 975,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "Treepl Portal (Documentation )",
    "MetaTitle": "Treepl Portal (Documentation )",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": {
      "title": "",
      "type": "",
      "url": "",
      "locale": "",
      "image": ""
    },
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-treepl",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 1882,
    "Url": "/extras",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:50:20",
    "Name": "Extras",
    "UrlSlug": "extras",
    "Enabled": true,
    "ReleaseDate": "2018-07-27T23:02:00",
    "ExpiryDate": "2099-12-09T03:00:00",
    "Weighting": 970,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-stars",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  },
  {
    "Id": 1880,
    "Url": "/api_reference",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:59:25",
    "Name": "API Reference",
    "UrlSlug": "api_reference",
    "Enabled": true,
    "ReleaseDate": "2018-07-28T03:01:00",
    "ExpiryDate": "2099-12-09T10:00:00",
    "Weighting": 900,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-code",
    "Active": false,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  }
],
  "Params": {},
  "Parent": {
  "Id": 2444,
  "Url": "/liquid/liquidcontext-object",
  "ParentId": 1881,
  "LastUpdatedDate": "2019-09-10T00:54:47",
  "Name": "{{&nbsp;liquidContext&nbsp;}} object",
  "UrlSlug": "liquidcontext-object",
  "Enabled": true,
  "ReleaseDate": "2018-08-04T00:00:00",
  "ExpiryDate": "2099-11-29T00:00:00",
  "Weighting": 977,
  "Description": "<p>This Liquid object is globally accessible in every liquid template or layout and outputs a combination of the <code>{% raw %}{{this}}{% endraw %}</code> and <code>{% raw %}{{request}}{% endraw %}</code> Liquid objects as well as any Liquid variables available to the layout it is placed in.</p>\n{% capture data %}{% raw %}{{ liquidContext }}{% endraw %}{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n{% assign sampleVar = 'My Sample Value' %}\n<p>Below is a live example of the <code>{% raw %}{{liquidContext}}{% endraw %}</code> output for this very documentation article, where a Liquid variable called <b>sampleVar</b> has been assigned in the content.<br>\nYou'll notice both the <code>request</code> and <code>this</code> data collections are output along with the <code>sampleVar</code> variable that was included in this articles content.</p>\n<p>The main purpose of this Liquid object is to assist with easier access to Liquid data while developing your site. See further below for examples of accessing this data during development.</p>\n\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{liquidContext}}\", lang: \"json\" %}\n\n{% component type: \"snippet\", alias: \"section_accessing_data\" %}\n<p>As an example of rendering a desired value to the page you could use the following Liquid:</p>\n{% capture data %}\n{% raw %}\n{{ liquidContext.this.url }}\n{% endraw %}\n{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n\n<p>This would output the value <code>{{liquidContext.this.url}}</code> to the page based on the above data.</p>\n\n{% component type: \"snippet\", alias: \"section_viewing_data_while_developing\", object: \"liquidContext\", filter: \" | strip_html\" %}",
  "ItemTags": [
  "Liquid Usage"
],
  "Author_Name": "",
  "Author_Url": "",
  "Author": "",
  "SEOTitle": "",
  "MetaTitle": "",
  "MetaDescription": "",
  "ShowPageForSearchEngine": true,
  "CanonicalLink": "",
  "EnableAMP": false,
  "AMPContent": "",
  "CodeEditor": true,
  "ExternalId": 0,
  "SocialMetaTags": "",
  "OpenGraphProperties": {
  "title": "",
  "type": "",
  "url": "",
  "locale": "",
  "image": ""
},
  "DisableForSiteSearch": false,
  "SeoPriority": "",
  "CreatedByMemberId": 0,
  "ItemCategories": "",
  "ItemCategoryIdList": "",
  "SKUCode": "",
  "SiteSearchKeywords": "",
  "Active": true,
  "IgnoreUpdates": false,
  "UpdateNotes": "All new article",
  "ExternalResources": "",
  "AdditionalRelatedArticle_Name": "",
  "AdditionalRelatedArticle_Url": "",
  "AdditionalRelatedArticle": "",
  "AdditionalRelatedArticle2_Name": "",
  "AdditionalRelatedArticle2_Url": "",
  "AdditionalRelatedArticle2": "",
  "Authors": "2418",
  "ParentName": "Liquid Objects & Usage",
  "ParentUrl": "/liquid",
  "TemplateName": "Docs Template",
  "IsHome": false
}
},
  "pagination": {
  "CurrentPage": 1,
  "ItemsPerPage": 100,
  "NumberOfPages": 1,
  "TotalItemsCount": 3
},
  "counter": 17,
  "documentationpostcollection": {
  "Pagination": {
  "CurrentPage": 1,
  "ItemsPerPage": 100,
  "NumberOfPages": 0,
  "TotalItemsCount": 0
},
  "Items": [],
  "Params": {},
  "Parent": {
  "Id": 1880,
  "Url": "/api_reference",
  "ParentId": 1861,
  "LastUpdatedDate": "2019-08-24T08:59:25",
  "Name": "API Reference",
  "UrlSlug": "api_reference",
  "Enabled": true,
  "ReleaseDate": "2018-07-28T03:01:00",
  "ExpiryDate": "2099-12-09T10:00:00",
  "Weighting": 900,
  "Description": "",
  "ItemTags": "",
  "Author_Name": "",
  "Author_Url": "",
  "Author": "",
  "SEOTitle": "",
  "MetaTitle": "",
  "MetaDescription": "",
  "ShowPageForSearchEngine": true,
  "CanonicalLink": "",
  "EnableAMP": false,
  "AMPContent": "",
  "CodeEditor": false,
  "ExternalId": 0,
  "SocialMetaTags": "",
  "OpenGraphProperties": "",
  "DisableForSiteSearch": false,
  "SeoPriority": "",
  "CreatedByMemberId": 0,
  "ItemCategories": "",
  "ItemCategoryIdList": "",
  "SKUCode": "",
  "SiteSearchKeywords": "",
  "Icon": "icon-code",
  "Active": false,
  "Pagination": {
  "CurrentPage": 1,
  "ItemsPerPage": 100,
  "NumberOfPages": 1,
  "TotalItemsCount": 17
},
  "Params": {},
  "Parent": {
  "Id": 2444,
  "Url": "/liquid/liquidcontext-object",
  "ParentId": 1881,
  "LastUpdatedDate": "2019-09-10T00:54:47",
  "Name": "{{&nbsp;liquidContext&nbsp;}} object",
  "UrlSlug": "liquidcontext-object",
  "Enabled": true,
  "ReleaseDate": "2018-08-04T00:00:00",
  "ExpiryDate": "2099-11-29T00:00:00",
  "Weighting": 977,
  "Description": "<p>This Liquid object is globally accessible in every liquid template or layout and outputs a combination of the <code>{% raw %}{{this}}{% endraw %}</code> and <code>{% raw %}{{request}}{% endraw %}</code> Liquid objects as well as any Liquid variables available to the layout it is placed in.</p>\n{% capture data %}{% raw %}{{ liquidContext }}{% endraw %}{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n{% assign sampleVar = 'My Sample Value' %}\n<p>Below is a live example of the <code>{% raw %}{{liquidContext}}{% endraw %}</code> output for this very documentation article, where a Liquid variable called <b>sampleVar</b> has been assigned in the content.<br>\nYou'll notice both the <code>request</code> and <code>this</code> data collections are output along with the <code>sampleVar</code> variable that was included in this articles content.</p>\n<p>The main purpose of this Liquid object is to assist with easier access to Liquid data while developing your site. See further below for examples of accessing this data during development.</p>\n\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{liquidContext}}\", lang: \"json\" %}\n\n{% component type: \"snippet\", alias: \"section_accessing_data\" %}\n<p>As an example of rendering a desired value to the page you could use the following Liquid:</p>\n{% capture data %}\n{% raw %}\n{{ liquidContext.this.url }}\n{% endraw %}\n{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n\n<p>This would output the value <code>{{liquidContext.this.url}}</code> to the page based on the above data.</p>\n\n{% component type: \"snippet\", alias: \"section_viewing_data_while_developing\", object: \"liquidContext\", filter: \" | strip_html\" %}",
  "ItemTags": [
  "Liquid Usage"
],
  "Author_Name": "",
  "Author_Url": "",
  "Author": "",
  "SEOTitle": "",
  "MetaTitle": "",
  "MetaDescription": "",
  "ShowPageForSearchEngine": true,
  "CanonicalLink": "",
  "EnableAMP": false,
  "AMPContent": "",
  "CodeEditor": true,
  "ExternalId": 0,
  "SocialMetaTags": "",
  "OpenGraphProperties": {
  "title": "",
  "type": "",
  "url": "",
  "locale": "",
  "image": ""
},
  "DisableForSiteSearch": false,
  "SeoPriority": "",
  "CreatedByMemberId": 0,
  "ItemCategories": "",
  "ItemCategoryIdList": "",
  "SKUCode": "",
  "SiteSearchKeywords": "",
  "Active": true,
  "IgnoreUpdates": false,
  "UpdateNotes": "All new article",
  "ExternalResources": "",
  "AdditionalRelatedArticle_Name": "",
  "AdditionalRelatedArticle_Url": "",
  "AdditionalRelatedArticle": "",
  "AdditionalRelatedArticle2_Name": "",
  "AdditionalRelatedArticle2_Url": "",
  "AdditionalRelatedArticle2": "",
  "Authors": "2418",
  "ParentName": "Liquid Objects & Usage",
  "ParentUrl": "/liquid",
  "TemplateName": "Docs Template",
  "IsHome": false
}
}
},
  "isselected": "",
  "isactive": "",
  "isrecent": "",
  "update": 1559854138,
  "nowdate": 1590963166,
  "diffdate": 31109028,
  "diffdays": 360.058194444445,
  "documentationpost": "",
  "hasrecent": x,
  "isdisabled":  disabled,
  "subs": {
  "Id": 2129,
  "Url": "/extras/recaptcha-styling",
  "ParentId": 1882,
  "LastUpdatedDate": "2019-06-06T20:48:58",
  "Name": "ReCaptcha Styling",
  "UrlSlug": "recaptcha-styling",
  "Enabled": true,
  "ReleaseDate": "2018-09-03T00:00:00",
  "ExpiryDate": "2099-12-08T00:00:00",
  "Weighting": 0,
  "Description": "<p>Treepl CMS supports Google reCAPTCHA v2 and v3 implementations. Below are some additional options you can configure.</p>\n<h2 id=\"secReCaptchaV2\">reCAPTCHA v2 Styling</h2>\n<p>We can use HTML data attributes to set the Google reCAPTCHA v2 styling - such as 'compact' size option and 'dark/light' theme:</p>\n\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"<div class='g-recaptcha' data-sitekey='XXXXXXXX' data-size='compact' data-theme='dark'></div>\", lang: \"html\" %}\n\n<p>See the external resource links below for further options and configuration</p>",
  "ItemTags": [
  "Forms"
],
  "Author_Name": "",
  "Author_Url": "",
  "Author": "",
  "SEOTitle": "",
  "MetaTitle": "",
  "MetaDescription": "",
  "ShowPageForSearchEngine": true,
  "CanonicalLink": "",
  "EnableAMP": false,
  "AMPContent": "",
  "CodeEditor": false,
  "ExternalId": 0,
  "SocialMetaTags": "",
  "OpenGraphProperties": "",
  "DisableForSiteSearch": false,
  "SeoPriority": "",
  "CreatedByMemberId": 0,
  "ItemCategories": "",
  "ItemCategoryIdList": "",
  "SKUCode": "",
  "SiteSearchKeywords": "",
  "Active": true,
  "IgnoreUpdates": true,
  "UpdateNotes": "Preparation for v2 and v3",
  "ExternalResources": "<p>Google reCAPTCHA v2 Docs:</p><p><a href=\"https://developers.google.com/recaptcha/docs/display\" rel=\"noopener noreferrer\" target=\"_blank\">https://developers.google.com/recaptcha/docs/display</a></p><p>Google reCAPTCHA v3 Docs:</p><p><a href=\"https://developers.google.com/recaptcha/docs/v3\">https://developers.google.com/recaptcha/docs/v3</a></p>",
  "AdditionalRelatedArticle_Name": "",
  "AdditionalRelatedArticle_Url": "",
  "AdditionalRelatedArticle": "",
  "AdditionalRelatedArticle2_Name": "",
  "AdditionalRelatedArticle2_Url": "",
  "AdditionalRelatedArticle2": "",
  "Authors": "2418",
  "Pagination": {
  "CurrentPage": 1,
  "ItemsPerPage": 100,
  "NumberOfPages": 1,
  "TotalItemsCount": 3
},
  "Params": {},
  "Parent": {
  "Id": 1882,
  "Url": "/extras",
  "ParentId": 1861,
  "LastUpdatedDate": "2019-08-24T08:50:20",
  "Name": "Extras",
  "UrlSlug": "extras",
  "Enabled": true,
  "ReleaseDate": "2018-07-27T23:02:00",
  "ExpiryDate": "2099-12-09T03:00:00",
  "Weighting": 970,
  "Description": "",
  "ItemTags": "",
  "Author_Name": "",
  "Author_Url": "",
  "Author": "",
  "SEOTitle": "",
  "MetaTitle": "",
  "MetaDescription": "",
  "ShowPageForSearchEngine": true,
  "CanonicalLink": "",
  "EnableAMP": false,
  "AMPContent": "",
  "CodeEditor": false,
  "ExternalId": 0,
  "SocialMetaTags": "",
  "OpenGraphProperties": "",
  "DisableForSiteSearch": false,
  "SeoPriority": "",
  "CreatedByMemberId": 0,
  "ItemCategories": "",
  "ItemCategoryIdList": "",
  "SKUCode": "",
  "SiteSearchKeywords": "",
  "Icon": "icon-stars",
  "Active": true,
  "Pagination": {
  "CurrentPage": 1,
  "ItemsPerPage": 100,
  "NumberOfPages": 1,
  "TotalItemsCount": 17
},
  "Params": {},
  "Parent": {
  "Id": 2444,
  "Url": "/liquid/liquidcontext-object",
  "ParentId": 1881,
  "LastUpdatedDate": "2019-09-10T00:54:47",
  "Name": "{{&nbsp;liquidContext&nbsp;}} object",
  "UrlSlug": "liquidcontext-object",
  "Enabled": true,
  "ReleaseDate": "2018-08-04T00:00:00",
  "ExpiryDate": "2099-11-29T00:00:00",
  "Weighting": 977,
  "Description": "<p>This Liquid object is globally accessible in every liquid template or layout and outputs a combination of the <code>{% raw %}{{this}}{% endraw %}</code> and <code>{% raw %}{{request}}{% endraw %}</code> Liquid objects as well as any Liquid variables available to the layout it is placed in.</p>\n{% capture data %}{% raw %}{{ liquidContext }}{% endraw %}{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n{% assign sampleVar = 'My Sample Value' %}\n<p>Below is a live example of the <code>{% raw %}{{liquidContext}}{% endraw %}</code> output for this very documentation article, where a Liquid variable called <b>sampleVar</b> has been assigned in the content.<br>\nYou'll notice both the <code>request</code> and <code>this</code> data collections are output along with the <code>sampleVar</code> variable that was included in this articles content.</p>\n<p>The main purpose of this Liquid object is to assist with easier access to Liquid data while developing your site. See further below for examples of accessing this data during development.</p>\n\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{liquidContext}}\", lang: \"json\" %}\n\n{% component type: \"snippet\", alias: \"section_accessing_data\" %}\n<p>As an example of rendering a desired value to the page you could use the following Liquid:</p>\n{% capture data %}\n{% raw %}\n{{ liquidContext.this.url }}\n{% endraw %}\n{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n\n<p>This would output the value <code>{{liquidContext.this.url}}</code> to the page based on the above data.</p>\n\n{% component type: \"snippet\", alias: \"section_viewing_data_while_developing\", object: \"liquidContext\", filter: \" | strip_html\" %}",
  "ItemTags": [
  "Liquid Usage"
],
  "Author_Name": "",
  "Author_Url": "",
  "Author": "",
  "SEOTitle": "",
  "MetaTitle": "",
  "MetaDescription": "",
  "ShowPageForSearchEngine": true,
  "CanonicalLink": "",
  "EnableAMP": false,
  "AMPContent": "",
  "CodeEditor": true,
  "ExternalId": 0,
  "SocialMetaTags": "",
  "OpenGraphProperties": {
  "title": "",
  "type": "",
  "url": "",
  "locale": "",
  "image": ""
},
  "DisableForSiteSearch": false,
  "SeoPriority": "",
  "CreatedByMemberId": 0,
  "ItemCategories": "",
  "ItemCategoryIdList": "",
  "SKUCode": "",
  "SiteSearchKeywords": "",
  "Active": true,
  "IgnoreUpdates": false,
  "UpdateNotes": "All new article",
  "ExternalResources": "",
  "AdditionalRelatedArticle_Name": "",
  "AdditionalRelatedArticle_Url": "",
  "AdditionalRelatedArticle": "",
  "AdditionalRelatedArticle2_Name": "",
  "AdditionalRelatedArticle2_Url": "",
  "AdditionalRelatedArticle2": "",
  "Authors": "2418",
  "ParentName": "Liquid Objects & Usage",
  "ParentUrl": "/liquid",
  "TemplateName": "Docs Template",
  "IsHome": false
}
}
},
  "updatep": 1568076887,
  "nowdatep": 1590963166,
  "diffdatep": 22886279,
  "diffdaysp": 264.887488425926,
  "nameplural": {{&nbsp;liquidContext&nbsp;}} object,
  "namesingular": {{&nbsp;liquidContext&nbsp;}} object,
  "groupsource": Documentation Group,
  "parentgroup": {
  "Pagination": {
  "CurrentPage": 1,
  "ItemsPerPage": 10,
  "NumberOfPages": 1,
  "TotalItemsCount": 1
},
  "Items": [
  {
    "Id": 1881,
    "Url": "/liquid",
    "ParentId": 1861,
    "LastUpdatedDate": "2019-08-24T08:48:04",
    "Name": "Liquid Objects & Usage",
    "UrlSlug": "liquid",
    "Enabled": true,
    "ReleaseDate": "2018-07-27T19:00:00",
    "ExpiryDate": "2099-12-08T18:00:00",
    "Weighting": 980,
    "Description": "",
    "ItemTags": null,
    "Author_Name": null,
    "Author_Url": null,
    "Author": "",
    "SEOTitle": "",
    "MetaTitle": "",
    "MetaDescription": "",
    "ShowPageForSearchEngine": true,
    "CanonicalLink": "",
    "EnableAMP": false,
    "AMPContent": "",
    "CodeEditor": false,
    "ExternalId": 0,
    "SocialMetaTags": "",
    "OpenGraphProperties": "",
    "DisableForSiteSearch": false,
    "SeoPriority": "",
    "CreatedByMemberId": 0,
    "ItemCategories": null,
    "ItemCategoryIdList": null,
    "SKUCode": "",
    "SiteSearchKeywords": "",
    "Icon": "icon-waves",
    "Active": true,
    "Pagination": {
      "CurrentPage": 1,
      "ItemsPerPage": 100,
      "NumberOfPages": 1,
      "TotalItemsCount": 17
    },
    "Params": {},
    "Parent": {
      "Type": 3
    }
  }
],
  "Params": {},
  "Parent": {
  "Id": 2444,
  "Url": "/liquid/liquidcontext-object",
  "ParentId": 1881,
  "LastUpdatedDate": "2019-09-10T00:54:47",
  "Name": "{{&nbsp;liquidContext&nbsp;}} object",
  "UrlSlug": "liquidcontext-object",
  "Enabled": true,
  "ReleaseDate": "2018-08-04T00:00:00",
  "ExpiryDate": "2099-11-29T00:00:00",
  "Weighting": 977,
  "Description": "<p>This Liquid object is globally accessible in every liquid template or layout and outputs a combination of the <code>{% raw %}{{this}}{% endraw %}</code> and <code>{% raw %}{{request}}{% endraw %}</code> Liquid objects as well as any Liquid variables available to the layout it is placed in.</p>\n{% capture data %}{% raw %}{{ liquidContext }}{% endraw %}{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n{% assign sampleVar = 'My Sample Value' %}\n<p>Below is a live example of the <code>{% raw %}{{liquidContext}}{% endraw %}</code> output for this very documentation article, where a Liquid variable called <b>sampleVar</b> has been assigned in the content.<br>\nYou'll notice both the <code>request</code> and <code>this</code> data collections are output along with the <code>sampleVar</code> variable that was included in this articles content.</p>\n<p>The main purpose of this Liquid object is to assist with easier access to Liquid data while developing your site. See further below for examples of accessing this data during development.</p>\n\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{liquidContext}}\", lang: \"json\" %}\n\n{% component type: \"snippet\", alias: \"section_accessing_data\" %}\n<p>As an example of rendering a desired value to the page you could use the following Liquid:</p>\n{% capture data %}\n{% raw %}\n{{ liquidContext.this.url }}\n{% endraw %}\n{% endcapture %}\n{% component type: \"snippet\", alias: \"code_block_processor\", data: \"{{data}}\", lang: \"liquid\" %}\n\n<p>This would output the value <code>{{liquidContext.this.url}}</code> to the page based on the above data.</p>\n\n{% component type: \"snippet\", alias: \"section_viewing_data_while_developing\", object: \"liquidContext\", filter: \" | strip_html\" %}",
  "ItemTags": [
  "Liquid Usage"
],
  "Author_Name": "",
  "Author_Url": "",
  "Author": "",
  "SEOTitle": "",
  "MetaTitle": "",
  "MetaDescription": "",
  "ShowPageForSearchEngine": true,
  "CanonicalLink": "",
  "EnableAMP": false,
  "AMPContent": "",
  "CodeEditor": true,
  "ExternalId": 0,
  "SocialMetaTags": "",
  "OpenGraphProperties": {
  "title": "",
  "type": "",
  "url": "",
  "locale": "",
  "image": ""
},
  "DisableForSiteSearch": false,
  "SeoPriority": "",
  "CreatedByMemberId": 0,
  "ItemCategories": "",
  "ItemCategoryIdList": "",
  "SKUCode": "",
  "SiteSearchKeywords": "",
  "Active": true,
  "IgnoreUpdates": false,
  "UpdateNotes": "All new article",
  "ExternalResources": "",
  "AdditionalRelatedArticle_Name": "",
  "AdditionalRelatedArticle_Url": "",
  "AdditionalRelatedArticle": "",
  "AdditionalRelatedArticle2_Name": "",
  "AdditionalRelatedArticle2_Url": "",
  "AdditionalRelatedArticle2": "",
  "Authors": "2418",
  "ParentName": "Liquid Objects & Usage",
  "ParentUrl": "/liquid",
  "TemplateName": "Docs Template",
  "IsHome": false
}
},
  "data": {% raw %}{{ liquidContext }}{% endraw %},
  "params": "",
  "samplevar": My Sample Value
}

Accessing the Data

As an example of rendering a desired value to the page you could use the following Liquid:

{{ liquidContext.this.url }}

This would output the value /liquid/liquidcontext-object to the page based on the above data.

Viewing Data while Developing

It is often desirable to see all the data that is available to you on a page while developing your applications and there are two common techniques for doing this.

1. Rendering JSON to the Page

You can quickly and easily render the full JSON output directly to the page you are working on in order to view all the data and its structure in an easy to read format.
Simply wrap your desired Liquid object in <pre> tags like so; <pre>{{liquidContext}}</pre>

A JSON representation of the available data will be rendered to the page similar to the output examples above.

You can actually use this method to log any Liquid data to the console, such as a custom collection, for example: <pre>{{myCustomCollection}}</pre>

This of course is a temporary technique as you would not want to leave the JSON data visible on the page.

2. Rendering JSON to the Console

Perhaps a cleaner and more persistent way of viewing this data while in development, is to log the JSON output to your browser's console (in the browser's Developer Tools).

To do this, add some javascript code to your template file (just before the closing </body> tag) like this:

<script>
    console.log({{liquidContext | strip_html}});
</script>

What this will do is output the JSON data into a structured data tree in your browser's Developer Tools console.

You can actually use this method to log any Liquid data to the console, such as a custom collection, for example:

<script>
    console.log({{myCustomCollection | strip_html}});
</script>

You might notice the Liquid filter | strip_html added here. This is optional, however, in some cases the JSON data will contain HTML code and this can break the Javascript, causing a scripting error.
So, keep in mind that, when using this filter, any fields containing HTML code in your JSON will not actually show the HTML in the console, however, the data is still there and accessible via Liquid when rendering to the page.

Remember to remove this code for production as it could pose a data security risk and it is best practice not to leave console logs in your scripts.



Related Articles

External Resources

There are currently no external resources available.

Please let us know if you have any other contributions or know of any helpful resources you'd like to see added here.


Questions?

We are always happy to help with any questions you may have.
Send us a message at support@treepl.co and we will consult you as soon as possible.