Join Tom Geller for an in-depth discussion in this video Manage content, part of Drupal 8 Essential Training: 1 The Basics.
- [Voiceover] So far we've uploaded files, created nodes, and added comments. It's a good time to pause and take a look at where exactly this stuff is all being stored and how you can best manage it all. Let's start with something that every content administrator will appreciate. It's the content list that you get to by going up to Content. Here we see a list of every node that we've published and we've only published two. There's that blog post and then that about us page. You see the title of the node, what content type it is, who's credited as the author, whether it's published or not, and when it was last updated.
Over here you can choose to edit or delete it. You can also apply operations to multiple pieces of content at once by simply clicking the ones you want or clicking this top box to get all of them and selecting an option from this drop-down menu. When we click Apply, you'll get a confirmation so that you don't accidentally delete content without meaning to. In this case, I'm not going to delete it so I'll simply click Cancel. After a while, you'll have dozens of nodes here, even hundreds or thousands and it'll get a little bit unwieldy.
So you'll want to filter them out and you can do that with these drop-down menus up here. For example, I can select only the basic pages and then click Filter. And now I only see that one page. If I want to see everything again, I click Reset. So this is great just as it is, but there's more because it works exactly the same for comments and files. You might remember that we had one comment attached to that article. Here, once again, we can edit it or we can select various operations.
As for files, we have fewer options but we can at least see what the files are and where they're used. Now that you've seen how Drupal handles all this stuff, let's take a look at how it's stored on your computer. Nodes and comments are both pure text and they're stored in the database that's connected to your Drupal site. To get there, we go to Acquia Dev Desktop and click on the link next to local database. If you're a database administrator, this will be very familiar. If not, it'll be very confusing because there are lots and lots and lots of tables.
The one that holds the actual content of a node is in node_body. And we can take a look a that by clicking Browse. And indeed you can sort of see what that content is. We could then go further to edit it and so forth, but I'd like to remind you to never edit content directly in the database. It's much better to do it through Drupal itself. Now, let's talk about the files, such as graphic files. They're stored on your computer's file system. Most of them will be found in the sites folder inside your Drupal installation, but those related to themes and modules go into their own folders.
If you want to see what those files look like, we go into sites, and then usually it's going to be in default unless you have multiple sites set up for one Drupal installation. That's an advanced topic, though, so usually default is what you want. And then inside of files. And then, for example, there's that image we uploaded, birds.jpg. Here's the favicon we uploaded. And here's the logo for our entire site. You may have to hunt around a little bit inside the files folder to find the exact file that you want. I went into a bit more detail about this folder in the video about Drupal's inner workings.
Now it's worth mentioning that Drupal is favored by really big companies, and it runs some unbelievably big websites. I mean, we're talking about millions of nodes, millions of comments, and millions of files. And yet those companies are using basically the same storage structure that you saw here. That's really good for you. It means that no matter how big your site grows, you have the tools and the skills to manage it.
This course is the first of the series. No prerequisites are required beyond basic computer skills! These easy-to-follow tutorials show how to install Drupal and other necessary components on a Windows or Mac computer, navigate Drupal's web-based interface, configure the settings of a new Drupal site, create content, and move the site to a server. Every step includes best practices to ensure your website remains streamlined, secure, and up-to-date.
Watch Drupal 8 Essentials 2: Building Out Your Website to find out how to finesse your site with categories, comments, custom styles, and other special features.
- Comparing Drupal to other software
- Getting help with Drupal
- Installing Acquia Dev Desktop on Mac and Windows
- Installing the Drupal database, modules, and themes
- Creating basic content
- Establishing your site's look and feel
- Adjusting security settings
- Adding images and metadata
- Adding a sidebar
- Moving your Drupal website to a server
- Backing up a Drupal site