URL segments and the page reference field

Posted 16th Dec 2017

#api #bootstrap4 #completeguide #fields #selector #urlsegments

Showing you what URL segments are and ways to use them. This guide also introduces the page reference field as it works well with categorisation.

Thanks to PW forum member kongondo for posting this guide about categorising content which was very helpful when I first started.

So what do we want?

  • A page that lists a bunch of cats (template=cat-index).
  • Ability to add single cat pages (template=cat-entry) with an image (image field) and a way of setting the type (page reference field).
  • A template to hold the page reference field for cat attributes i.e. persian, siamese, tabby etc.

What are we going to make?

We're going to create a small project which demonstrates URL segments and the page reference field.

This is what we will be building
This is what we will be building Zoom

Feedback & support

I hope you enjoyed this tutorial. You can support pwtuts by following on @pwtuts. You can also donate at paypal.me/swcarrey to help support the site which would be awesome!

Related tutorials / See all

Suggest a tutorial

Please note: I do not store any of this information, it's simply used to send me an email. Your email address is required so I can get clarification on your request if needed.