Skip to main content

contexts/page

The page context.

Attributes

Name Type Description
page dict A dictionary containing data about the page.
page.content str The page’s content.
page.created_at datetime The page’s date and time it was created.
page.id str The page’s unique id.
page.images list A list of the page’s images. Note that these are all the images uploaded to the page in the Typed Dashboard and not just the subset of which are included in the page’s content.
page.images[].id str The image’s unique id.
page.images[].url str The image’s URL.
page.title str The page’s title.
page.updated_at datetime The page’s date and time it was last updated.
page.url str The page’s url.

Description

The page context is used when rendering the page template.

Examples

{
  'page': {
    'content': '<p>We’re on a quest to find the most <strong>amazing</strong> coffee in the world!</p>',
    'created_at': datetime(2015, 10, 28, 9, 14, 59, tzinfo=<DstTzInfo 'Europe/Paris' CET+1:00:00 STD>),
    'id': 'e016ef2e-f363-435f-8708-539c0d292617',
    'images': [
      {
        'id': 'cd93988d-f7eb-4113-8579-a528c34467fd',
        'url': 'https://images.typed.com/cd93988d-f7eb-4113-8579-a528c34467fd/image.jpg'
      }
    ],
    'title': 'About',
    'updated_at': datetime(2015, 11, 5, 13, 31, 36, tzinfo=<DstTzInfo 'Europe/Paris' CET+1:00:00 STD>),
    'url': '/about'
  }
}