Writing and publishing

Country, region, spot.
Every level a page.

A collection on PixelGlass is a named tree of pages. Every level is a page of its own, at an address that follows the tree, and each level can carry fields such as a map point or a rating.

Early accessThis guide uses a feature in early access. PixelGlass turns it on for a publication on request while it is new.

Say it to your agent

Make a collection of surf spots by country, region and spot, and add Portugal with its regions and their best ten spots.

  • create_collection
  • add_collection_pages
  • get_collection
  • list_collections

Two ways to do it.

By hand

In the admin

  1. Open Pages and press New collection. Give it a name, its levels top first, such as Country, Region, Spot, and an address.
  2. Press Save. The pages list now browses the collection a level at a time.
  3. Press New Country to write the first top-level page, then open it and press New Region for the pages under it.
  4. Press Fields to give a level its fields: Text, Number, Yes or no, Link, Choice or Map point.
  5. Fill a page's fields and its place in the tree in its Post settings, then publish it like any page.

With your agent

In Claude, ChatGPT or your editor

Make a collection of surf spots by country, region and spot, with a map point and a break type on each spot.

Add Portugal with its three regions and ten spots in each, as drafts, from the list below.

Show me the collection's tree, and publish every spot page in Ericeira.

The tools it calls

  • create_collection
  • add_collection_pages
  • get_collection
  • list_collections
  • update_collection
  • update_post_settings
  • publish_post

For example

  • A surf guide by coast

    A surf school builds country, region and spot pages, and each spot page carries its map point and its break.

  • Boards by brand

    A board shop keeps a page for each brand and one for each model under it, with the model's length and price as fields.

  • A city's coffee map

    A food writer sorts cafés by district. Her agent adds forty pages in one call, as drafts, and she publishes them a district at a time.

Questions, answered

What is a collection on PixelGlass?
A named tree of pages, with up to six levels. Each level is a page of its own, at an address made of the collection and the pages above it.
Can a collection hold posts?
No. A collection holds pages only, and a page's address is unique among its siblings.
What are a level's fields?
Values every page on that level carries: text, a number, yes or no, a link, a choice or a map point. Themes and the site's JSON read them.
Can my agent build a whole collection at once?
Yes. It makes the collection with create_collection and adds a whole branch with add_collection_pages, up to 200 pages a call, all or nothing, as drafts unless it publishes them.
Who can make a collection?
Editors, admins and the owner make and change a collection, by hand or through their agent.

Every feature on every plan

Start your publication
today.

Plans from $9 a month. No platform fee on what your readers pay.

14 days free. Have a site? Sign in