Developers

Getting the most from platformOS? In this Developers section, learn how to use Siteglide-CLI, Liquid and GraphQL to create custom solutions. Get tips on best practice and performance.

Martin Sanderson avatar Dean Vizer avatar Matt Jones avatar +1
38 articles in this collection
Written by Martin Sanderson, Dean Vizer, Matt Jones and 1 other
Liquid

Pages - Custom Session Fields

Adding Session fields to help display relevant content to Site visitors - whether logged in or not
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

FAQ - Formatting dates with Ruby STRF

How can you convert a raw date integer to a humanized date?
Ben Porter avatar
Written by Ben Porter
Updated over a week ago

Accessing Assets

Find out how to use the asset_url filter to generate a path to your assets and understand the benefits of hosting assets on our CDN.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Siteglide Scripts

Get the best of both worlds. Include your CSS and JS where you need it, but render it in the correct place in the <head> or <body> as needed
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

URL parameters and percent-encoding

Understanding this topic will help give you greater control over how you display dynamic content and allow you to use WebApp search features
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Preventing Duplicate Content with Query Parameters- Canonical URL and Robots.txt

When you use URL query parameters e.g. "?page=2" to control dynamic content on Siteglide, you can help search engines understand these.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

FAQ - How can I translate and format dates?

A demo of how you can convert dates from English to a different language
Ben Porter avatar
Written by Ben Porter
Updated over a week ago

Getting Started with Liquid Dot Notation- Tutorial

This Liquid is useful when you are accessing a WebApp 'collection', creating a Categories layout, using a custom GraphQL query and more.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Liquid Dot Notation- Exploring the Context Object

Want to use Liquid Dot Notation to find dynamic data on your Site? The context variable is most likely the place to look.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Advanced Liquid Dot Notation- Arrays and Key Maps- Tutorial

How to use Liquid For Loops and Indexing to handle arrays. Also, how to use a key to access key maps, using categories as an example.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Using WebApp Collections- Tutorial

Take control over your WebApp Layouts by exposing the Data and making your own For Loop with Liquid
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Using the current_user object with Secure Zones

This article for developers helps you get more out of Secure Zones, as you can output basic information about the Current User dynamically
Matt Jones avatar
Written by Matt Jones
Updated over a week ago
GraphQL

Learning GraphQL - Tutorial Overview

This is a brief overview of the GraphQL tutorials we currently provide and the topics we plan to cover in future.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

About GraphQL

Although it can feel like a big leap at first, using custom GraphQL gives you ultimate control over dynamic data. We'll guide you through.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL -Tutorial 1- Your First Query

Hello WebApp! In Tutorial 1, we'll use Siteglide CLI to open the GraphQL sandbox. There, you'll write your first query.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 2 - Pagination

Turning the Page! In tutorial 2, we'll control how many items Graph returns on each Page of results and retrieve specific Pages.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 3 - Filtering the Results

You shall not pass! This time, we'll look at how you can use filters to only return results based on specified rules.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 3 - Answers to the First Filtering Challenge

We look at a possible answer to Tutorial 3's challenge. This shows how to write a query which fetches all WebApp items, not Module items.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 4 - Advanced Filtering

Following on from the previous tutorial, we'll look at more advanced filtering options and show how you can filter with multiple rules.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 4 - Challenge Answers

In our Tutorial 4 challenge, we asked you to write a query which returned items matching multiple filter rules. Here's a possible solution.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 5 - Using Liquid to run GraphQL queries on your Site

You've now used the GraphQL playground to write queries which fetch data. Now you're probably itching to see how you can add one to a Site!
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 6 - Variables

Adding variables to your query allows you to filter results based on User interaction - and re-use queries dynamically.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 6 - Answers to the Variables Challenge

Last Time we challenged you to pull together everything you'd learned to create some Pagination Buttons powered by Graph. Answers here!
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 7 - Sorting

You can change the type and order of sorting. You can also sort by multiple properties at once.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago

Learning GraphQL - Tutorial 8 - Building a Liquid API GET Endpoint Page powered by GraphQL queries

This article shows a different use-case for the skills you've already learned- using an XHR (sometimes called Ajax) request to run a query.
Matt Jones avatar
Written by Matt Jones
Updated over a week ago