Blog Listing Page, Blog Detail Pages, and Adding Custom Context to your Wagtail CMS Site

  Рет қаралды 16,694

Coding For Everybody

Coding For Everybody

Күн бұрын

In this (long) lesson we're going to cover three main topics. They all go hand-in-hand with Wagtail CMS so it makes sense to learn them all together. The three topics are:
1. Listing Pages
2. Detail Pages
3. Adding Custom Context
Tutorial: learnwagtail.com/tutorials/ho...
GitHub Commit: github.com/CodingForEverybody...
Learn Wagtail from scratch with the official Wagtail for Beginners Course
learnwagtail.com/wagtail-for-...
Used in this video: Wagtail 2.4, Python 3.7, Django 2.1.5 #Wagtail #Django #Python

Пікірлер: 28
@ryanmorris5709
@ryanmorris5709 5 жыл бұрын
Using your tutorials for my senior project and loving it. Making my life so much easier!
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
Woot! That's amazing!! Thanks for sharing that with me Ryan!!
@ryanmorris5709
@ryanmorris5709 5 жыл бұрын
@@CodingForEverybody Do you have a way to donate? I think I owe you haha
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
@@ryanmorris5709 Haha no I don't, but that's great to hear you love these videos!!
@glenninberlin
@glenninberlin 2 жыл бұрын
Thanks. Helped me significantly. Really stuck at this problem - creating a blog post and listing page
@dera_ng
@dera_ng 4 жыл бұрын
This is an amazing video. I would love it if the time(s) where the tutorial topic(s) start(s) off would be included in the video description
@lazyModes
@lazyModes 2 жыл бұрын
Its an Amazing tutorial, Loved it
@Pmarmagne
@Pmarmagne 4 жыл бұрын
Hey Kalob, First of all, thanks for your videos. You are an amazing teacher. I've been following your courses and i gotta say that you really do explain everything well. Not once in this serie I had to rewind to understand what was going on. Keep up the good work! Also, I've noticed that my pages are getting slow to load, i just checked the debug toolbar and the total time was 2500.00 something ms. Do you know what could cause that? Will changing the database to Postgre Improve the loading time or is it just my cpu?
@rqdt1388
@rqdt1388 5 жыл бұрын
Great video. Thanks
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
Glad you like it!! :)
@franciscodelafruitas9424
@franciscodelafruitas9424 Жыл бұрын
Thank you for this! Could you show how to add UUID4 (7 characters/digits long) as a reference number next to the blog title? This would be automatically generated and viewable frontend as well.
@bambanx
@bambanx 4 жыл бұрын
thanks you , you said about control is good for developers and yes it is, there is any way to add the blog to the left on the menu ? and remove the option the choose wich page add, adding child pages when you posting is not very common for users when they want to add a post, also could be dangerous mistaking adding a child page to a post that exist. How deal with that? Thanks again
@CodingForEverybody
@CodingForEverybody 4 жыл бұрын
For the blog menu, you need to add the pages into your get_context() method. There's a video on this, and lots of supporting videos using get_context() as well. And you can remove the ability to add child pages with `subpage_types = []` in your page model.
@royanezp
@royanezp Жыл бұрын
I wonder how do you do to display an old computer type screen
@victor-iz7ss
@victor-iz7ss 4 жыл бұрын
thank you for your tutorial, it helped a lot. BTW, do you know how to add other columns to the list display in blog page admin? I mean currently, in the wagtail admin for a page, it lists the Order, Title, Updated, Page Type, and Status. I would like to add an extra column for a property from my custom page model. From what I found so far, there is only ways to overriding the whole list display, not extending it. Thanks in advance
@CodingForEverybody
@CodingForEverybody 4 жыл бұрын
I don't know of any way to show or hide columns in the admin page views to be honest. Only through the model admin - although I've never looked at that either. hmmm
@XeUs87
@XeUs87 3 жыл бұрын
Hi, Kalob is it possible to share a detail page on social medias?
@Shasras
@Shasras 3 жыл бұрын
30:26 Looks like someone is showing off with his Terminal 😃
@patricksarmiento4494
@patricksarmiento4494 3 жыл бұрын
Can you show how to create a listing page/detail page on a headless version?
@CodingForEverybody
@CodingForEverybody 3 жыл бұрын
I cannot. I don't know what frontend framework you're using so I would need to cover: react, vue, angular, svelte, etc. Plus wagtail is agnostic about the frontend, so we leave that implementation up to the developer.
@IllevensKO
@IllevensKO 4 жыл бұрын
So in base.html you changed the blog button link to "/blog/" and it somehow works by you.. how does it know which instance of admin-created "blog type template" it points to ? Same with about page. Sorry me dumdum.
@CodingForEverybody
@CodingForEverybody 4 жыл бұрын
I just hard coded /blog/ (iirc). That's not a good way of doing it because /blog/ might not exist. Behind the scenes Wagtail looks through the url. So website.com/your/page/blog/ would look for a page with a slug of "blog", and check if its parent page has a slug of "page" and so on. It's actually more complex than this because Wagtail uses Django Treebeard.
@IllevensKO
@IllevensKO 4 жыл бұрын
@@CodingForEverybody thanks a lot !
How to Add Routable Pages to your Wagtail CMS Website
24:27
Coding For Everybody
Рет қаралды 12 М.
Adding Global Site Settings to Your Wagtail CMS Website
16:43
Coding For Everybody
Рет қаралды 10 М.
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 16 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 30 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,6 МЛН
Wagtail CMS: How to Create a Custom Wagtail Menu System
38:22
Coding For Everybody
Рет қаралды 19 М.
Wagtail CMS: Registering Snippets using Django Models
13:35
Coding For Everybody
Рет қаралды 10 М.
How to Use ListBlocks in Wagtail CMS to Create Repeating StreamField Content
19:52
Become A Software Engineer For Free (Class 01) - 100Devs
3:23:06
Leon Noel
Рет қаралды 651 М.
Installing Django Debug Toolbar with Wagtail CMS
13:33
Coding For Everybody
Рет қаралды 17 М.
Wagtail Sitemaps: Adding, Modifying and Removing Sitemap Entries
11:25
Coding For Everybody
Рет қаралды 6 М.
How to use Orderables in Wagtail CMS
22:42
Coding For Everybody
Рет қаралды 14 М.
Headless Wagtail CMS: How to Enable the v2 API to Create a Headless CMS
18:06
Coding For Everybody
Рет қаралды 10 М.