> For the complete documentation index, see [llms.txt](https://documentation.siteglide.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.siteglide.com/cms/pages/accessing-page-data.md).

# Reference

Page and Page Templates

{% hint style="info" %}
**Not a Developer?** We recommend using [Visual Editor](https://documentation.siteglide.com/cms/pages/studio.md), our no-code editor.
{% endhint %}

## Liquid for Page Templates only

Determines where in the Page Template the dynamic content of the Page itself will sit:

```liquid
{{content_for_layout}}


```

Note though that the Page is actually rendered by the server before the Page Template, this allows Liquid to pass data from the Page to the Page Template either using Page Metadata or the `content_for` and `yield` tags.

{% embed url="<https://documentation.platformos.com/api-reference/liquid/platformos-tags#yield>" %}
Can receive a String in the Page Template from a content\_for tag in the page
{% endembed %}

* `{{context.page.metadata}}` - outputs the metadata of the page, though meta fields are usually automatically outputted for you inside "constants"
* `{{context.page.metadata.name}}` - outputs the Name field of the page

{% hint style="info" %}
If using CLI, check [Page Templates with Siteglide-CLI](https://documentation.siteglide.com/cms/pages/page-templates/page-templates-with-cli.md)[ ](https://documentation.siteglide.com/cms/pages/about-pages/pages-with-siteglide-cli.md)for details on Page Template only Liquid which is hidden on the Siteglide Admin.
{% endhint %}

## Liquid for Pages only

{% embed url="<https://documentation.platformos.com/api-reference/liquid/platformos-tags#content-for>" %}
Can send a string from a page or partial/include to the page template
{% endembed %}

{% hint style="info" %}
If using CLI, [Pages with CLI ](https://documentation.siteglide.com/cms/pages/about-pages/pages-with-siteglide-cli.md)for details on Page only Liquid which is hidden on the Siteglide Admin.
{% endhint %}

## Liquid for either Pages or Page Templates

Browse the rest of the documentation to find dynamic Liquid features you can insert into your Pages and Page Templates using Liquid tags. Almost any Liquid is suitable for outputting in either.

[https://github.com/Siteglide/documentation/blob/master/pages-and-page-templates/reference-pages/broken-reference/README.md](https://github.com/Siteglide/documentation/blob/master/pages-and-page-templates/reference-pages/broken-reference/README.md "mention")

[https://github.com/Siteglide/documentation/blob/master/pages-and-page-templates/reference-pages/broken-reference/README.md](https://github.com/Siteglide/documentation/blob/master/pages-and-page-templates/reference-pages/broken-reference/README.md "mention")

### Liquid Variables

For the full documentation on the platformOS `context` variable, see here: <https://documentation.platformos.com/developer-guide/variables/context-variable#displaying-the-context-object>

#### Site Data

* `{{context}}` - outputs the full extent of site data available by default on this current file

#### URL Parameters

* `{{context.location.pathname}}` - outputs the full url path such as "/first-part/second-part"
* `{{context.params.slug}}` - outputs the first part of your url path such as "/first-part"
* `{{context.params.slug2}}` - outputs the second part of your url path such as "/second-part"
* `{{context.params.myparam}}` - outputs the value of ?myparam=true

#### Page Data

* `{{context.exports.webapp_1.data.result.items[0].name}}` - Access data that has been fetched using a query earlier in the Page

## Example of URL based breadcrumbs:

This takes the URL path of the page, splits it based on / and titleizes the items.

```liquid
{% assign slugSplit = context.location.pathname | remove_first: '/' | split: '/' %}
<ul>
    <li>
        <p>Home</p>
        <i class="fal fa-chevron-right"></i>
    </li>
    {% for item in slugSplit %}
        {% if forloop.last == true %}
            <li>
                <p>{{item | titleize}}</p>
            </li>
        {% else %}
            <li>
                <p>{{item | titleize}}</p>
                <i class="fal fa-chevron-right"></i>
            </li>
        {% endif %}
    {% endfor %}
</ul>
```
