# Cms ContentPages Controller - Liquid Controller Reference

Source: https://support.storeconnect.com/articles/cms-content-pages-controller-reference · Last modified 21 August 2026

## Description

The Cms ContentPages controller handles requests related to cms contentpages functionality in your StoreConnect storefront.

| Property | Value |
|----------|-------|
| **Controller** | `ContentPagesController` |
| **Liquid Template Path** | `controllers/cms/contentpages/` |
| **Namespace** | Cms |

## Actions

| Action | HTTP Method | Route | Liquid Page |
|--------|-------------|-------|-------------|
| `home` | GET | `/cms/contentpages/home` | — |
| `render_page_with_editor` | GET | `/cms/contentpages/render-page-with-editor` | — |

## Liquid Controller Lifecycle

For each action, Liquid controller templates are executed in three phases:

1. **Before** — `controllers/cms/contentpages/{action}.liquid` runs before the Rails action
2. **After** — runs after the Rails action but before the response is sent
3. **Final** — runs after the response, useful for cleanup

## Available Liquid Tags

Inside controller templates, these tags are available:

| Tag | Description |
|-----|-------------|
| `{% params %}` | Set request parameters (e.g. `{% params foo: "bar" %}`) |
| `{% variables %}` | Set template variables (e.g. `{% variables title: "Hello" %}`) |
| `{% respond %}` | Respond with custom content, alert, or notice |
| `{% redirect %}` | Redirect the request (e.g. `{% redirect to: "/products" %}`) |
| `{% action %}` | Execute a server-side action (e.g. `{% action "cart.add" %}`) |

## Example

Create a file at `controllers/cms/contentpages/home.liquid`:


```liquid

{% before %}
  variables custom_heading: "Welcome"
{% endbefore %}
```

---

## Follow StoreConnect

- [Email Newsletter](https://getstoreconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://getstoreconnect.com/partners)
- [News](https://getstoreconnect.com/articles/news)
- [Events](https://getstoreconnect.com/articles/events)
- [Feature Comparison](https://getstoreconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://getstoreconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

---

StoreConnect Support — https://support.storeconnect.com/articles/cms-content-pages-controller-reference