2.1 Your First Content: Articles
Out of the box, Drupal provides you with two basic content types, Articles and Basic Pages. In this lesson, you'll learn how to create a new article in Drupal. I'll also show you some of the different fields that you can fill in to customize your articles.
1.Introduction5 lessons, 42:22
2.Creating Content5 lessons, 42:14
3.Working with Views5 lessons, 34:11
4.Further Configuration3 lessons, 18:12
5.Building a Full Site From Scratch14 lessons, 1:24:52
6.Conclusion1 lesson, 02:26
2.1 Your First Content: Articles
So here we are on the main page of our Drupal site. And in the previous lesson. I did mention to you that I wanted to take you through each one of the tabs on the administrative toolbar along the top. And talk to you a little bit about some of the common or basic operations that you're going to find yourself doing. As you get up and running in building out a simple Drupal site. Now I'm actually going to take a little bit of a detour. Simply because it doesn't make much sense for you to go through each one of these tabs sequentially. And take what you can do with them out of context. Because when you're creating a basic Drupal site, or any sort of website for that matter. You're going to start at the beginning and you're going to run into places where you need to make tweaks. And then you're going to need to know where to go to make those tweaks. So, if I were to just go to each one of these tabs and show you what you can do. It's not going to make much sense unless I'm showing it to you within the context of how you're typically going to use it. And as I mentioned before also, within Drupal when you're using Drupal or other CMS systems to be able to create websites. Content is king. So that being the case, let's go ahead and start at the beginning with content. So, let's click on the Content tab and let's take a look at what it has to offer. Now the first thing that I want you to notice is, that at the top you can see we're in the Content section. Aand it has a yellow star right here. And what that yellow star means is that, this particular page has been bookmarked or a short cut has been created to this. So, hard to come up here and take a look at short cuts. You're going to see that Content is here on my list. Now, if I were to click on this little star and uncheck it. You're going to see that that content disappears. Now if I click on it again it's going to show up again. Now this is important to keep in mind. Because if you ever start to create websites. And you find yourself going to certain places within Drupal over and over and over again. It would highly behoove you to add a short cut to that page. So that it's much easier and much faster for you to get to that page from the shortcuts. As opposed to digging through the entire site and going through Manage and going wherever it is you need to go. So just something to keep in mind. So now we're on the Content sub tab within the Content section. And we can start to do things with content. We can add new content. We'll take a look at that just a minute. But we can also take a look at all of the existing content within the site right now. And right now we don't have anything in there but we're going to take care of that in a few moments. So as you can see here we can also filter and search for things in a couple of different ways. We can look at them by published status, in this case published and unpublished. By content type, either an article or basic page, we're gonna add to that as we go and you'll see that later on. We can search by title or words found within the title. That's a very common use as well as well as language. So typically I spend most of my time looking at published status content and title. But you may find other uses on your time as well. Now we can also do the same thing when we are looking at comments. Now comments are important to moderate on any sort of site like this. Especially if you have them enabled for certain types of content. So in this case I might want to come in and take a look at all the published comments as well as all the unapproved comments. Because as a moderator or as an administrator I might want to make sure that all of my comments are appropriate and not spam. And I might want to come in here and remove things in an unpublished stuff and delete things that don't belong here. This is where I would do those types of operations. And then within Files, I can start to look around. And sift through all of the files that have been added to my site in one form or another. Whether it's in articles or links or what have you. Then this is where those things are all going to show up and we'll take a look at that a little bit later as well. So let's start with creating some basic contents. So I'm wanna come back to my content sub tab. And I'm gonna select Add Content. And out of the box we have two different types of content. We have article and basic page. And I can also get to this place because this is bookmarked from short cuts as you can see here, Add Content. So I'm gonna select the article. And I'm going to come to the Create Article page where I can create an article. So let's do that. So I'm gonna call this My First Article and I'm actually going to spell this incorrectly and I'm gonna show you why momentarily. So now I'm going to come in here and I can edit my body. But I also have this option to edit the summary or what's known as a teaser within Drupal. Now I'm going to leave this empty and I'm going to show you how to use that in just a few moments. So I can come in here and give this a body. This is my first article, isn't it just the best? I love Drupal. I also love Tuts+, of course. So now as I have edited some some content within my body, I also have this toolbar up here to be able to do things to the text. And so behind the scenes this is really just adding styles and markup to some HTML. That's within this body within the CK editor for those of you that are familiar with that editor. So what I can do here is I can actually highlight some text. And say I want that to be bold because I truly do love Drupal. And I can also italicize, add links. Do ordered and unordered lists, block quotes, images. I can change the paragraph format from normal to different types of headings. And I can also actually look at the source. And this is what I mentioned before when you could actually bring your HTML skills and do them here. But I do that so often and I really don't wanna do that. I'm using Drupal because I don't really want to do those types of things. So, I'm going to leave those things behind the scenes. Now, next below I have the option to edit the text format. Now there's three different types here. This is basic HTML which is the default restricted HTML. And full HTML which are really just ways for you to be able to edit the text or the content found within your article. So basic HTML gives me these buttons up here within my editor and allow certain tags within my body. Restricted HTML actually takes me directly to the HTML view with no toolbar and only allows the specified HTML tags. And then finally you get full HTML. And it's going to say, do you really want to do that? Sure why not, let's hit Continue. So now I get additional buttons up here to be able to add additional formatting and HTML to my body. And it's also going to allow pretty much any HTML element and tag that you can think of. If I were to edit this directly by source, and I don't really want to allow all of that stuff. I want to go back to basic because I think that's going to be just enough. Now for tags, all we really need to do if we so choose to be able to group together content like articles on certain tags or keywords. This is where you're going to do, by simply adding Comma delimited words. So, in this case, I'm gonna say, this is going to be welcome and this is going to be Drupal. And I think that should be good for now. We're going to see how this works in a few moments as well. I can also add in an image, but in this case I don't really have much that I wanna add for this, and I think that should be fine. And then, there's also some editing that you can do on the right hand side here. So I can create this as a new revision. Which basically means a level of versioning. So I can kind of see the progression of this particular article over time. Which I don't really feel like is necessary. Menu Settings, which will become very important as you begin to add basic pages. So we'll come back to that in a little bit. And one of the more common ones that I spend most time in. Is going to be common settings where I can leave this article open for comments which is the default or I can close it. And then I can do some other editing to the URL paths if I wanted to add slugs. And make this be like my dash, first dash article within the Menu bar. I could do that here. Some authoring information, just about who edited or created this article and when. And then if I wanted to do some promotion options like promoting this to the front page. Or making it sticky at the top of lists and all those types of things. Which I don't spend too much time and I typically leave those all as the defaults. But now I can come down to the bottom and I can preview my article. And I can see, yes this looks pretty good I like it. I see my title, who created this article. And then I can see my body as well as my tag so I think that looks pretty good. So, I'm going to select back to content editing. I'll come down to the bottom. Once again and I have two options. I can Save and publish or as unpublished. But since this is such phenomenal work I'm going to publish this right away. So, this will take you right away to the Full view and we'll talk about Full and Teaser view a lot in this course. So Full view is the full content of the article or the content type that you're looking at. And we're also gonna talk about teasers which typically speaking is just a summary. And if you don't provide a summary, it's going to be the first 600 characters found in the body of your article. As you can see, here I have my tags. So I can click on each one of these. It's gonna take me to all of the comments or all of the content that have these tags. And I can also actually comment on this as well too, because I had left this article open for comments. So that's pretty much it. Now because I'm logged in as an administrator I have some extra options that I can do. I can edit or delete this. So if I select Delete, I could delete this permanently. But I don't really want to do that. But I did come back in here and noticed that my first article, this is actually misspelled. So I can click Edit and I can come back into edit my first article and I can change this. I can add in that r. I can come back in and save and keep published. And right away, everything is fixed. And so everything or everybody that's looking at my site will see my updated changes. So if I come back to home, now this looks almost exactly the same. Except for the fact that it doesn't have the comment bar. And that's kind of a tip off that this is actually in teaser view. But as far as the content here you can't really tell that. So in order to kind of put that into perspective. Let's go back to Manage content and let's take a look at my article which is showing up right here. So I can take a look at this. And I want to edit this now. So what I can do in here now, is instead of just providing a body which I did here. I can also edit a summary and this summary is going to be the teaser of my article. And since I didn't add in a summary or a teaser, it selected the first 600 characters of my body. Which is well beyond the length here, so it showed everything. So instead let's just say I wanted to add a summary and say this is the best like that. So now I've provided a summary or a teaser. So if I were to save and keep published it's going to take me to the full view again. So I can see everything as well as the comments. But if I go back to home, I'm now going to see just that this is the best. Because that was specified as the summary or the teaser, as it's known within Drupal. So there you go. That's the basic process of being able to create simple articles and edit them, or even delete them if you so choose, within Drupal.