Wagtail Dashboards
Transcript
By Judith van Leersum, Speaker 2. From Wagtail Space NL 2024. Published June 27, 2024.
Watch the video Markdown version 582 words · auto-generated · en
Summary
When the same Wagtail components are reused across a main site and many subsites, small differences in requirements can make it difficult to know which components are available, where they are used, and whether changing one will affect others. Fabric created a dashboard that extends Wagtail’s report view with custom columns and a clearer template display. It lists components, shows the content and page types where they are available, distinguishes available-but-unused components from those in use, and counts their implementations. These insights help teams understand component importance and decide which components are worth improving as a CMS grows.
Transcript
Automatically transcribed, so expect mistakes in names and technical terms. Filler words are removed.
0:00 The Multi-Site Component Problem
Oh that 's fair? Oh my god.
Judith van Leersum
Okay, hello. So my name is Judith and this is Emmeline, and we are from Fabric. And for those who don't know Fabric We make websites for clients and we use Wagtail for that. And today we're going to talk about dashboards. So why a dashboard? Well let me paint a little picture for you So imagine that you have this content. So we have a main page and we have a component that is an image slider that uses different Wagtail blocks. So for example, we have multiple images that you can use in a list. Maybe even add caption, decide whether you want to show the caption or not. Quite simple, right? Well, what if this is not the only site that the customer wants?
What if also they want a subsite? And the subsite looks very, very similar It uses a little bit of a different front end, but it's quite similar, so we decide to use the same component, right? Reusability nil. But now in this case the customer actually wants to limit the images to only have two images. And for example, they don't want to show a caption on this. So we can very easily restrict this because we're developers, you know, we can do this. But what if actually they don't only have one main site and a subsite, but we have ten Well in this case it becomes a little bit more difficult because what if you can use that component in every single subsite, in multiple templates, because we want to be able to reuse
Well in this case, if we want to then change a little thing, so for example, you would want to add an introduction to this, but only on this one subsite. It should not change it in the other subsides. That simple subsite should have another little block that should not exist in this and this and this. It becomes a very, very complex picture. And this is where our dashboard comes in.
2:09 Dashboard Design and Customization
Speaker 2
So yeah, so for that purpose we created a dashboard to show all these components and specifically to show which ones are available. Where they are used and how often they are used. And so for this view, we it extends the report view that's already in Wagtail, but we had to change it a little bit. So we wanted custom columns and we wanted to show the templates in a very specific way. And so for this particular client, it was really nice to have insights in the components. Because as the subsites grow, the components also grow. So then it can get quite tricky to keep track of what's used, where, and what's available.
2:55 Component Usage Insights
Speaker 2
So here we see the image slideshow from before, and we can see that it's available on quite some content pages and exhibition pages, for example, but it's not always used. So if the pills are grayed out then it's not it's available but it's not used. And you also see how often it's actually implemented And this gives us insights as to how important the component is, if it actually makes sense to work on it, and so for clients with many, many pages in the CMS. It's really nice to see this actually. That was actually thank you for your time