Tutorial Summary

Routable Pages allow us to create "subpages" under any regular Wagtail Page. Essentially, we can create pages with urls that aren't accessible through the Wagtail CMS admin. We'll learn how to implement routable pages, how to add additional context to the new page, how to render a new page template, how to reverse the routable page url in the template and how to reverse the routable page url in the Wagtail model.

Routable Pages allow us to create "subpages" under any regular Wagtail Page. What that means is: we can create pages with urls that aren't accessible through the Wagtail CMS admin.

This is particularly useful when integrating into larger applications or adding detail pages without needing to enter the content into a new Wagtail Page. Routable Pages are great in instances like these:

  • Blog Category Listing Page (ie. /blog/your-category/; auto-generated url)
  • Subscribe Pages (ie. success pages)
  • Checkouts/Carts/Buy Pages (ie. e-commerce integration with Django Models)

In this video we're going to explore how to create a Routable Page on our Home Page, and also another Routable Page on the Blog Listing Page. We'll also learn how to reverse the routable page urls through the template and how to reverse routable page urls using Python in our Wagtail model.

The Git Commit

If you're interested in the entire GitHub commit, you can find it here: link

Sign up for our newsletter

Get notified about new lessons :)


Our Sites