Join Jen Kramer for an in-depth discussion in this video Content versioning, part of Joomla! 3.3 Essentials: Working with Content.
- View Offline
- So you've been working along on your Joomla! website and you've been putting stuff in and making changes and edits and so forth to all these articles. And then the moment happens. Your client comes back to you and says, you know about three or four versions ago of this article we had something in here that I want to bring back again. If you've been in this business long enough we've all had that moment happen to us. So how can you go back to previous versions of your articles? Well, fortunately new and these most recent versions of Joomla! there's now content versioning that's possible for your articles and I'm going to show you that content versioning right now.
So if you head back on into the backend of Joomla! here, we're going to go to Content, Article Manager and I'm going to take a look at the Local Attractions article. You scroll on down to that. So here is an article that we formatted earlier. We dropped in the content. We put in a couple of links. And if you take a look up here at the very top of the screen where you see these buttons for save, save and close, save and new; we've used all those, used close.
There's also a button here called versions. If you go ahead and click that button. You'll find additional versions of this piece of content that were points in time where you had saved this particular article, but it was different in some way than it is now. And you can see that there are differences here in your character count. So we added, looks like, about 200 characters worth of stuff between one version of this article and another. So what are these articles actually look like? What does these versions look like? Well if you put a checkmark next to these and click preview this will show you what this article looks like.
And this is actually all information. Look at all this stuff. This comes right out of the database. So this is basically the database entry for this particular article. And, it'll show you what your text is, all kinds of various points in time for who touched it and publishing dates, and saved dates, and all kinds of configuration options. More information than you require, most likely. But if you just take a look at this text up here in the top, you can see that this version is the version that has the two links in it.
There's that link to Wikipedia. Here's a link to the Landon Rooftop Cafe. If you put a check next to this next one here, and say preview, you'll see that this one has just the link to Wikipedia, but not the link to the Landon Rooftop Cafe. So there are a few differences between these two versions of this article. So that's just by putting a checkmark next to these. Now we can compare them. If you select both of these articles and then hit the compare button, this will show you, right here, all the various changes that are going on.
So this is the two articles. One article; the other article. And this column here is the dif as the developer say. The differences between these two particular articles. And those are generally highlighted, so for example, we did add a link here. It didn't pick up, but it did pick up the fact that our link has accent aigu over the e as opposed to what we had before, which was no accent. And scrolling down a little bit further, we have the fact that I had forgotten to put it in a category at first, but then I remembered to put it in later, so this shows up as a dif here.
We've modified it, so of course, that kind of information gets updated and so forth. So that just flags all the various differences between the various versions here that we're taking a look at. Notice also that we have an option to show the HTML code, so this will show you, for example, there's that link that was added and that's highlighted in green. So that, of course is new code that was added between the two versions of this articles. So if HTML is important to you, that's something you can look at as well.
Alright, so you might want keep one version of this article forever. Like, you never want it to go away and you can set that as well, so here in this column where it says keep forever, no? Well, if this is the version you want to keep forever, you can lock it down and say, yes. Now, nobody can delete that. That is the one true version of the article or the original version of the article or whatever it is. Why ever you might want to happen to keep it. You can just keep it. So if you want to restore though. Let's say we want to go back to this older version of the article, I can go ahead and check that one.
Probably once you've previewed it, and then you can just go ahead and hit the restore button. And the restore button will restore this article to its previous state. So as you can see here, I've lost my link to the Landon Rooftop Cafe because this is an earlier version of the article. And it went ahead and just put that in for me. It didn't ask me was I sure or was this the right one or anything else, it just does it for you. So, if you suddenly look at this and go, oh no, that is not what I wanted to do, what do you do then? Well if you just hit the close button here without saving, so if we go back to that article, Local Attractions, here's the important thing to know.
No backsies on this guys. So if I hit close here and I don't save my changes, this is still the version of the article, even though I haven't hit save anywhere along the way. When you change the version here inside of the editing screen, it's changed. The end. Okay, if I want to go back to that version that I had before, which fortunately I have set to keep forever, I'll just go ahead and put a check by it and say restore and now that's back again with my Landon Rooftop Cafe link in place.
And I can go ahead and say save and close. So that's a little bit about versions here inside of Joomla! and you can go ahead and make use of that as needed. It is possible to configure these versions as to a maximum number of versions. By default, Joomla! has this set up to 10 versions of saves and so forth that it will save for you for every article. As you can imagine, if you have a really large database, 10 versions of each article can make an enormous database very, very quickly.
So it is possible to change that number of versions to something smaller or something bigger if you are very indecisive and I will show you how to do that in a future video.
- Touring the Joomla! interface
- Creating and editing categories
- Adding links and images to articles
- Creating basic menus
- Adding version control and keywords
- Configuring category lists
- Creating a dropdown menu
- Changing display settings