Routing
Routing is a section which controls the page visibility on the tombola website. By default the created pages won't be visible on the tombola website, thus, the Routing needs to be enabled.
Bingo Games Routing section inside Umbraco Backoffice
Settings
Routing section has one setting:
- Disable Route - shows or hides the page on the tombola website.
Disable Route
Toggling this setting will either show (toggle inactive) or hide (toggle active) page on the tombola website. By default the toggle will be inactive, to prevent new and empty pages being displayed on the website. However, once the page is finished, it's necessary to enable this setting to display the page on the tombola website.
Before enabling this setting please make sure that:
- Page is completely finished and ready to be displayed on the tombola website.
- If an existing page needs to be replaced on the tombola website, follows the How to replace existing page? section below.
- If a new page with a new route needs to be created on the tombola website, follows the How to create a new page with a new route? section below.
- The links and buttons on the page are relative - /bingo/games, instead of absolute - www.tombola.co.uk/bingo/games. This part is important to make sure that the links are going to work on all environments (Development, Staging, Live).
How to replace an existing page?
If the created page should replace the existing page on the tombola website, please make sure that the page title on the Umbraco Backoffice matches the URL on the tombola website. Let's say, we want to replace Bingo Games page on the tombola website which is on www.tombola.co.uk/bingo/games. To do this, we need to create a Bingo page (/bingo) under Home Page (/) and then create Games page under Bingo page which places the Games page on /bingo/games.
Bingo Games page structure inside Umbraco Backoffice
Enabling the Disable Route setting on the Games page will show the newly created page on www.dev.tombola.co.uk/bingo/games, whilst disabling the setting would show the legacy page. After the Content Transfer to live environment with the Disable Route setting enabled, the page will be visible on www.tombola.co.uk/bingo/games.
How to create a new page with a new route?
Creating a new page with a new route follows similar steps as replacing the existing page. Let's say, we want to create a new page called Cat which would be on /pets/cat URL. To do this, we need to create Pets page in Umbraco Backoffice and then create a Cat page under Pets which places the Cat page on /pets/cat URL.
Cat page structure inside Umbraco Backoffice
Enabling the Disable Route setting on the Cat page will show the newly created page on www.dev.tombola.co.uk/pets/cat, whilst disabling the setting won't show any page and would give a 404 not found error. After the Content Transfer to live environment with the Disable Route setting enabled, the page will be visible on www.tombola.co.uk/pets/cat.