Docs > Examples index

Here are some examples of how to code special functionality in web templates.
Listing pages in the same section
This example shows how to automatically retrieve a list of the other pages in the same section as the current page, and display them as hyperlinks.

Reorderable picture trails
The template created in this example is used to list manually selected pages with a paragraph of text and a picture illustrating each page. These page trails can be drag-reordered. The pictures and summary paragraph are pulled in automatically, but can be manually overridden.

Setting page style based on context
In this example, the page background colour depends on how the page has been categorised. The category can be set from the page location, or using page metadata.

Can't find what you're looking for?

Let us know and we'll see if we can help.