IntroductionWelcome| 00:04 | Hi! I'm Tom Geller and
this is Drupal 7 New Features.
| | 00:08 | The content management system Drupal
has seen amazing growth since version 6
| | 00:12 | came out over two-and-a-half years ago.
| | 00:15 | This course gets the up to speed with
all its new features quickly and easily,
| | 00:19 | so you can get right to
work building great web sites.
| | 00:23 | The most obvious change in Drupal is
its interface, which has been completely
| | 00:26 | revamped for version 7.
| | 00:27 | I'll show you how to use its new
administrative overlay, its toolbar, and its
| | 00:32 | shortcut bar. Or if you'd rather do things
old-school, I'll show you how to turn them off.
| | 00:37 | We'll go beyond Drupal's new look
to examine features that make design,
| | 00:41 | development, user management, and
content creation easier and more flexible.
| | 00:47 | You can now add fields to content types,
designate users as administrators, and
| | 00:51 | administer blocks all with a single
click, and all without adding the modules
| | 00:55 | that Drupal 6 required.
| | 00:58 | This course assumes that you're
already somewhat familiar with Drupal 6.
| | 01:02 | But if you're not, don't worry.
| | 01:04 | just watch my Drupal Essential Training course.
| | 01:06 | Then, you'll be ready to build
websites with either Drupal 6 or Drupal 7.
| | 01:11 | But whether you're an experienced Drupal
6 administrator, or just someone who is
| | 01:15 | curious about the latest developments,
this course will get you ready for the
| | 01:18 | best version of Drupal yet.
| | 01:20 | Let's get going with Drupal 7 New Features.
| | Collapse this transcript |
|
|
1. General Setup and What's NewOverview of Drupal 7's improvements| 00:00 | The Drupal community started planning
Drupal 7 all the way back in February 2008
| | 00:05 | when it released Drupal 6.
| | 00:07 | In fact, planning started in earnest
a few weeks before than when Drupal
| | 00:11 | creator Dries Buytaert posted a list of
11 things he wanted to see in Drupal 7.
| | 00:16 | You can see that list at the
URL you see on your screen.
| | 00:19 | For the most part, Drupal 7
has hit these points pretty well.
| | 00:22 | Let's take a look at them.
| | 00:24 | If you attended any of the five
semiannual Drupal cons between the release of
| | 00:27 | Drupal 6 and Drupal 7, you saw how
hard the Drupal community was working to
| | 00:32 | improve Drupal's usability.
| | 00:34 | You see the results of these
efforts on every page of Drupal's
| | 00:38 | administrative interface.
| | 00:39 | Mostly because of two major changes.
The first one is what's called the
| | 00:44 | Administrative Overlay, and you see
that when you click on any sort of
| | 00:47 | administrative page.
| | 00:49 | See, it just popped up right there,
and you close it just like this.
| | 00:53 | Drupal 7 second big usability improvement
is the new administrative theme called 7.
| | 00:59 | If you were a Drupal 6 user, then
you've already noticed the difference.
| | 01:02 | In Drupal 6, you saw the same
theme when you administered the site as
| | 01:06 | when people visited it.
| | 01:07 | That is, the Garland theme.
| | 01:09 | But in Drupal 7, you can see it looks
quite different and you immediately know
| | 01:13 | that you are administering
rather than looking at the site.
| | 01:15 | The second big success in Drupal 7
is something called Fields in core.
| | 01:20 | In Drupal 6, you needed to add extra
modules such as the Content Construction Kit
| | 01:24 | or CCK to create new content types.
| | 01:28 | Drupal 7 incorporates most of
that CCK module in the core itself.
| | 01:32 | You do that by going up to Structure
and Content types, and now you have these
| | 01:37 | choices: manage fields and manage display.
| | 01:40 | That gives you a lot more options
than you had in Drupal 6, where you could
| | 01:43 | add a content type,
| | 01:44 | but it was really no different from
the ones that we're already built-in.
| | 01:48 | The next Drupal 7 feature is one
of my favorite's: easier updates.
| | 01:53 | Dries pecified automatic upgrades in this
wish-list, and we didn't exactly get that.
| | 01:57 | You still have to notice when your
Drupal installation goes out of date, and
| | 02:01 | then do a few clicks to bring it up-to-date.
| | 02:04 | But the important thing is that you
can do all of that through Drupal itself.
| | 02:08 | No longer do you need to know Unix, or
Windows, or Mac administration. All you
| | 02:12 | need to do is to go to Modules and say
Install new module or update module,
| | 02:18 | and then you could just install it
from the URL or from a file you've
| | 02:21 | downloaded, very easy.
| | 02:23 | The next big change is better media
handling, and this shows up in small ways
| | 02:27 | when you first install Drupal.
| | 02:28 | I'll show you by going to Content, and
Add new content, and then add an article.
| | 02:34 | You see this field here for an image.
| | 02:37 | To do that in Drupal 6, that is, add
an image into an article, you either had
| | 02:41 | to mess around with HTML or you had
to add three, or four, or even five
| | 02:45 | modules to make it work right.
| | 02:47 | In Drupal 7, it just works.
| | 02:50 | We'll go through the whole process of
adding images to content in the video
| | 02:53 | using images and content.
| | 02:56 | Talking about content brings us to the
next item on Dries' wish-list: better
| | 03:00 | tools to structure and organize content.
| | 03:02 | There are only a few small
improvements in Drupal 7 along these lines and you
| | 03:06 | see them when you go up to Content.
| | 03:08 | For instance, you can now see a
complete list of content on your site with one
| | 03:12 | obviously placed click.
| | 03:14 | In Drupal 6, it took some hunting
around to find the path to that page.
| | 03:19 | The next three improvements are
substantial, but they don't really show up in
| | 03:22 | the interface in very obvious ways.
| | 03:24 | We'll only talk about them in
the video "Developing for Drupal."
| | 03:27 | The first is better internal APIs,
| | 03:30 | a feature you'll mostly only
notice if you're a programmer or
| | 03:33 | system administrator.
| | 03:34 | One example is the new database layer.
| | 03:37 | In Drupal 6, you pretty much had to use
MySQL or PostgreSQL as your backend database.
| | 03:42 | But Drupal 7 lets you use pretty much
any backend database at all, as long as
| | 03:46 | there is a driver for it, and if
there isn't you can write your own.
| | 03:50 | You can find more information
about that at api.drupal.org.
| | 03:55 | Then if you click Drupal 7, and the
Database abstraction layer, of course,
| | 04:01 | you'll find all of the APIs
that you need at api.drupal.org.
| | 04:06 | Another API that got better in Drupal
7 is the node access system, which lets
| | 04:10 | you better define who can access content.
| | 04:13 | As long as we're talking about module
development, I want to mention that Drupal 7
| | 04:17 | now also includes a testing module
that makes it easier for developers to
| | 04:21 | control the quality of their code.
| | 04:23 | The next improvement on Dries'
list is better external APIs.
| | 04:27 | Like changes to internal APIs,
you won't find these unless you're a programmer.
| | 04:33 | That's really important if you're
integrating external web services into your
| | 04:36 | site, such as those from
Yahoo!, Google, or Amazon.
| | 04:39 | If you're not, don't worry about it.
| | 04:40 | But if you are, you'll
really notice a difference.
| | 04:43 | There are three last things that I'm
afraid we weren't able to get into Drupal 7.
| | 04:48 | Better performance, a basic Views
like module, and a WYSIWYG editor.
| | 04:53 | But that's okay, because you can still
get modules that do all of those things.
| | 04:57 | I'm told that some of the underpinnings
for both Views and a WYSIWYG editor are
| | 05:01 | now in core, so I'm expecting to see
those in Drupal 8, whenever that comes out.
| | 05:06 | For more discussion about whether
Drupal 7 fulfilled its promise and to
| | 05:10 | read some comments from the community, see
a blog post I made before Drupal 7 came out.
| | 05:14 | It's titled "Will Drupal 7 fulfill
Dries' wishes," and you'll get that at the
| | 05:18 | URL on your screen.
| | Collapse this transcript |
| Reviewing what is lost from Drupal 6| 00:00 | Professional authors have a saying,
"Writing is easy; editing is hard."
| | 00:06 | But good editing is often what makes the
difference between a good work and a great one.
| | 00:12 | Drupal 7's developers apparently knew
this too and removed a few things that
| | 00:16 | were either confusing, or
underused, or poorly implemented.
| | 00:20 | Only a few things got the axe though,
and chances are pretty good that you
| | 00:24 | never use them in Drupal 6.
| | 00:26 | We'll start with one that I'm sure
you've never used, because it didn't
| | 00:29 | actually do anything.
| | 00:30 | The Related terms feature for taxonomy.
| | 00:33 | I'll show you how it worked, or
rather didn't work in Drupal 6.
| | 00:38 | Here is our Drupal 6 site.
| | 00:40 | I'll go to Administer > Content > Taxonomy.
| | 00:44 | I'll create a vocabulary.
| | 00:46 | I'll just call it Color names, and save that.
| | 00:51 | And then we'll start adding
terms. Just say yellow, Save, and red.
| | 01:02 | Now if we go down here to Advanced
options, we see this Related terms.
| | 01:06 | But it didn't actually do anything.
| | 01:09 | It exposed the terms to each other,
but when I asked the developers what it
| | 01:12 | actually did, everyone said,
"Well, I don't actually know."
| | 01:15 | So it disappeared from Drupal 7.
| | 01:17 | The second thing that disappeared from
Drupal is a setting that lets you require
| | 01:21 | at least a given number of words in posts.
| | 01:24 | The original idea was a good one.
| | 01:26 | It was to prevent people from
creating small insubstantial posts, as for
| | 01:30 | example spammers will often do.
| | 01:32 | But apparently very few people were
using it, because there was almost no outcry
| | 01:36 | at all in the discussion about removing it.
| | 01:38 | Again, I'll show you in Drupal 6.
| | 01:41 | Once again, we go up to Administer and Content.
| | 01:44 | And then we go to Content types.
| | 01:46 | To see it, you edit any content type.
| | 01:48 | I'll just edit Page here.
| | 01:50 | Then down here, under Submission form
settings, you have this Minimum number
| | 01:53 | of words selection. That's just gone.
| | 01:56 | If you'd like to read the discussion
about how that feature got removed by the way,
| | 02:00 | go to drupal.org/node/522184.
| | 02:01 | While we're on the subject, Drupal
6's Post settings page has disappeared.
| | 02:11 | The functions it held haven't left us though.
| | 02:13 | They're just spread among other screens,
and in some cases, they've been improved.
| | 02:18 | In Drupal 6, you found that under
Administer > Content Management and Post settings.
| | 02:24 | If you'd like to learn exactly where
those commands went, you could see that in
| | 02:26 | the video "Finding commands."
| | 02:29 | Moving on, there was an Access rules
feature in Drupal 6 that let you block
| | 02:33 | people from registering as users based on
their usernames, e-mail addresses, or hosts.
| | 02:38 | That was at Administer > User
management and Access rules.
| | 02:44 | Drupal's developers figured that the
username and e-mail addresses were just far
| | 02:48 | too easy to spoof, and few
people use this feature anyway.
| | 02:51 | So in Drupal 7, you can only block
people by IP address, which is more secure.
| | 02:56 | You do that in Drupal 7 by going
to the IP address blocking function.
| | 03:00 | Under Configuration > IP
address blocking, and there it is.
| | 03:05 | Finally, we come to three core
modules that were simply thrown away.
| | 03:08 | We can see those in Drupal 6.
| | 03:10 | The first one is called Blog API.
| | 03:13 | We get to that by saying
Administer > Site Building, and Modules.
| | 03:18 | As we scroll down, we see this Blog API.
| | 03:21 | That was originally meant to allow
people to make blog posts to Drupal through
| | 03:24 | another site such as Blogger or MovableType.
| | 03:28 | Not many people use the Blog API module anymore.
| | 03:31 | If you're curious, you can read about
it at drupal.org/node/295 and you could
| | 03:37 | read about how it got
removed at drupal.org/node/537434.
| | 03:44 | Nowadays, you'd use the Feeds module to do
much of what the Blog API module used to do.
| | 03:49 | You can get the Feeds module
at drupal.org/project/feeds.
| | 03:54 | I got to say it's a great module.
| | 03:56 | I definitely recommend
that you take a look at it.
| | 03:59 | Another module that was removed is called Ping.
| | 04:02 | This one made sure that your Drupal site
notified others when you had new content.
| | 04:07 | Again, few people used it.
| | 04:09 | If you really want the functionality it
offered, check out the Multiping module,
| | 04:13 | which is at drupal.org/project/multiping.
| | 04:18 | If you want to read the discussion
about removing that Ping module, just take a
| | 04:21 | look at this other URL, drupal.org/node/231437.
| | 04:26 | The Throttle module was originally
designed to improve performance by choking
| | 04:31 | back your site when it got hit with
more traffic than it could handle.
| | 04:35 | But there were improvements in such
things as how Drupal caches data, so that
| | 04:38 | sort of made it obsolete.
| | 04:40 | You can read the discussion about
removing it at drupal.org/node/245504.
| | 04:46 | If you want to learn more about
getting better performance out of Drupal
| | 04:49 | generally, take a look at the
other URL on your screen, at
| | 04:53 | groups.drupal.org/high-performance.
| | 04:58 | Now I know that I've been saying that
these features haven't been much used, or
| | 05:02 | that they've been replaced by something else.
| | 05:03 | But I know there are going to be people
who've used Drupal 6 and who are going
| | 05:06 | to watch this video, and then go try Drupal 7.
| | 05:09 | They'll look for some important feature,
and be unable to find it and think it's
| | 05:13 | one of the ones that disappeared.
| | 05:15 | That's perfectly natural, because a
lot of features moved around in Drupal 7.
| | 05:18 | In fact, every administrative path is changed.
| | 05:22 | But don't worry. If you're looking for
something important, you can bet that
| | 05:25 | it's still in Drupal 7.
| | 05:27 | The things that I mentioned here really
were the ones that were either not used
| | 05:31 | very much, or have been
obsoleted by better technologies.
| | Collapse this transcript |
| Understanding community changes| 00:00 | I know. This course is about software,
about bits and bytes and 1s and 0s, and
| | 00:05 | technically that's all software is.
| | 00:07 | But in reality the community that
supports software is at least as important
| | 00:12 | as the code itself.
| | 00:14 | Community defines whether software will
keep up with the times and whether you
| | 00:17 | can get help when something goes wrong,
and whether you'll be able to find a job
| | 00:21 | with your software skills.
| | 00:23 | Code without community is
like a car without roads.
| | 00:27 | It might hum beautifully
but it can't go anywhere.
| | 00:30 | But fortunately Drupal's
community is one of the most active of any
| | 00:34 | software project on earth.
| | 00:36 | Let's look at some of the ways that
it's grown since Drupal 6 was released
| | 00:39 | and where it's going.
| | 00:41 | One thing hasn't changed since Drupal 6.
The place to get all of your news about
| | 00:46 | the Drupal community is on drupal.
org, which I've loaded up right here.
| | 00:49 | It looks, well, exactly the
same as when Drupal 6 was released.
| | 00:53 | At least on the day I'm making this video.
| | 00:55 | You wouldn't know from looking at it
but redesigning and re-architecting this
| | 00:59 | site has been a focus of a huge
effort over the last two-and-a-half years.
| | 01:03 | It's been led in part by the same
design firm that improved the interface of
| | 01:07 | Drupal itself, Mark Boulton Design.
| | 01:10 | If you go to their website at markboltondesign.com,
you can see some of their plans for Drupal.
| | 01:15 | Now not all of these will make it
into the final drupal.org, but over here,
| | 01:20 | you get a sense of where exactly this
site is going to be going, or at least
| | 01:23 | the general direction.
| | 01:26 | You can look at one part of
drupal.org that got the new design early.
| | 01:29 | Let's go to localize.drupal.org,
and that's how it looks. Not bad.
| | 01:37 | There have been some features that have
made it into the drupal.org site itself.
| | 01:40 | One of them is called faceted searching.
| | 01:42 | I'll show you that by searching for a
word that will find a lot of hits for,
| | 01:45 | let's just say, search.
| | 01:48 | We get our hits and if you look in the
right-hand column, you see this Sort by
| | 01:53 | various different criteria
and you also see Filter by.
| | 01:55 | So let's say that I know that I'm
looking for some kind of module that has
| | 01:59 | something to do with search.
| | 02:00 | If I click on Project, that narrows it
way down, and then if I want to remove
| | 02:05 | that I can remove it by
clicking on the minus sign there.
| | 02:08 | You can also narrow it down
with several different criteria.
| | 02:11 | So let's say I know it's a Project
and it had something to do with Chris
| | 02:14 | Shattuck, who is a Drupal developer.
| | 02:17 | And there we are, now we have a much better
sense of what exactly we were looking for.
| | 02:21 | Two other websites are worth mentioning.
The first one is drupal.com, not .org, but .com.
| | 02:28 | From a marketing point of you,
Drupal is a really valuable brand.
| | 02:33 | I mean hundreds of thousands of
people know it, and people tend to remember
| | 02:36 | .com instead of .org.
| | 02:39 | So thousands and thousands of people
would go to the drupal.com site every week,
| | 02:42 | and what did they see when they got there?
| | 02:44 | Well I'll show you something
from the archives at archive.org.
| | 02:48 | This was all that they saw
at drupal.com for many years.
| | 02:52 | Fortunately there is a new drupal.com
already, dedicated to promoting Drupal,
| | 02:57 | while drupal.org is still
more about supporting Drupal.
| | 03:00 | I have to say drupal.com
looks pretty good. Here it is.
| | 03:05 | Along the same lines is the
web site for the Drupal association.
| | 03:08 | Now that's a Belgium-based nonprofit
that among other things manages the
| | 03:12 | semiannual drupal.com event.
| | 03:15 | You can get to that by going to
association.drupal.org, and as you can see it
| | 03:20 | has the new design as well.
| | 03:22 | The demand for people with Drupal
talent, in particular those who are PHP
| | 03:27 | programmers, continues to grow in the
business world, and I'll show you just as
| | 03:31 | an example. If I go to monster.com,
which is a large jobs board and I do a
| | 03:36 | search for Drupal somewhere in the
Skills and Keywords, you can see that 169
| | 03:44 | jobs were found right off the bat.
| | 03:46 | Drupal-centered businesses are also thriving.
| | 03:49 | The biggest business news by far
since Drupal 6 is the launch of Acquia,
| | 03:54 | a Drupal support company co-founded by
Drupal's creator, Dries Buytaert, and it's
| | 03:58 | supported with $15 million of
venture capital to get it started.
| | 04:02 | You can find it at acquia.com.
| | 04:07 | Unlike a lot of other Drupal companies,
Acquia doesn't actually build sites.
| | 04:10 | Instead they provide several products and
services that support those of us who do.
| | 04:15 | We'll look at three of
them in this video series.
| | 04:18 | First we'll use Acquia's installer to
get Drupal on to our computers, because
| | 04:22 | it's so much better than the
programs I used to recommend.
| | 04:25 | It used to only have a choice of MAMP
for Mac and WAMP for Windows and just a
| | 04:29 | few others and they all had problems, but the
Acquia Drupal stack installer is just great.
| | 04:34 | The second thing from Acquia we'll look
at is called Acquia Drupal, which is a
| | 04:38 | version of Drupal that includes
some helpful additional pieces.
| | 04:41 | The third thing from Acquia that
we'll take a look at is called Drupal
| | 04:44 | Gardens, which is a way to use Drupal without
ever having to install it on your own computer.
| | 04:49 | It's what's called a hosted service for Drupal.
| | 04:52 | That covers a lot of what's new in the
Drupal community, but of course it's no
| | 04:55 | way near everything.
| | 04:57 | Your best way to stay informed in this very
busy community is to subscribe to Planet Drupal.
| | 05:02 | That's a collection of blogs about Drupal, and
my own blog at tomgeller.com is on it as well.
| | 05:07 | You can go to it by drupal.org/planet.
| | 05:12 | Posts as they come in and show up in
this main area and you can see exactly
| | 05:16 | which blogs are being covered in it
in this left-hand column and there are
| | 05:19 | dozens and dozens of them.
| | 05:21 | But as always, the best way to learn
about what's going on in the Drupal world
| | 05:25 | is to become an active member of the community.
| | 05:27 | To do that you can join conversations,
join groups that interest you, and just
| | 05:32 | take part and contribute code
if you are able to a drupal.org.
| | Collapse this transcript |
| Installing the AMP stack| 00:00 | Quite a bit has changed in the
installer for Drupal 7 in two ways.
| | 00:04 | First Drupal's own
installation process looks different.
| | 00:08 | Most of it works pretty much the same,
but there are some important improvements
| | 00:11 | and we'll go over those.
| | 00:13 | Second and in a way more important
is that the range of choices for the
| | 00:17 | supporting system that Drupal relies on,
that is the AMP Stack, has gotten much better.
| | 00:23 | To understand what that means,
let's review how Drupal works.
| | 00:26 | Drupal is written in the
PHP programming language.
| | 00:30 | It stores its data into a MySQL
database, then those two work together to
| | 00:35 | deliver HTML pages to a web
server which is usually Apache.
| | 00:40 | Those three things together, Apache,
MySQL, and PHP, are commonly referred to as
| | 00:46 | AMP or the AMP Stack.
| | 00:48 | In Drupal Essential Training, which I
recorded two years ago, the two best AMP
| | 00:52 | Stacks were MAMP for Mac
OS X and WAMP for Windows.
| | 00:56 | But they both have substantial problems.
| | 00:59 | WAMP in particular has been
a massive headache for me.
| | 01:01 | Most of the support emails I get
for the Drupal Essential Training course
| | 01:04 | are about getting Drupal to work with
WAMP, and you still had to download Drupal
| | 01:09 | after grabbing either WAMP or MAMP.
| | 01:11 | Fortunately there is now a much better solution.
| | 01:14 | The Acquia Drupal Stack installer,
which is available for both Windows andMac.
| | 01:19 | It's known as DAMP.
| | 01:20 | That's the Drupal AMP Stack.
| | 01:23 | It's a full AMP Stack plus a special
version of Drupal called Acquia Drupal.
| | 01:27 | You can get DAMP at acquia.com/downloads.
| | 01:32 | We'll install it on Windows, but the
procedure is almost exactly the same on a Mac.
| | 01:36 | Then there'll be two additional steps
we'll actually have to take before we
| | 01:39 | have Drupal running.
| | 01:41 | The first step is to replace the Acquia
version of Drupal that comes with DAMP
| | 01:45 | with the basic version of Drupal,
which is commonly called Core Drupal.
| | 01:49 | That's the official one so to
speak that you get from drupal.org.
| | 01:53 | You'll see how to replace Acquia Drupal
with Core Drupal in the video "Importing
| | 01:57 | Core Drupal into the AMP Stack."
| | 01:59 | Then after we've done that, the last
step is to run Drupal's own installer,
| | 02:03 | which you'll learn in the
video "Installing Drupal."
| | 02:06 | So, let's get started.
| | 02:07 | First we'll grab Acquia DAMP, and once
again that's from acquia.com/downloads.
| | 02:14 | In order to get it you grab the Stack
installer either from Mac, Windows, or the
| | 02:18 | Deb package for Ubunto or Debian.
| | 02:20 | The Acquia site is smart enough to go to
the version that you want, so if you go
| | 02:23 | to this site on Mac OS X, it'll
actually select the Stack installer for Mac OS X.
| | 02:27 | Whichever one it does just click
Download Now and save it to whatever your
| | 02:32 | download location is.
| | 02:35 | Once it's downloaded, you go to your
download location, which in my case is the
| | 02:40 | Downloads folder right here. Double-click
and then double-click on it to extract it.
| | 02:44 | Of course you should go through
whatever steps you would usually use in order
| | 02:48 | to install a program on your computer, and
there we are. This is the Drupal Stack installer.
| | 02:55 | We'll walk through the installation process.
| | 02:57 | First you click Next and then it
asks you what you'd like to install.
| | 03:01 | In this case we'll install
everything that it suggests which is the core
| | 03:04 | components, that's Acquia Drupal and
the AMP Stack, along with this mail server.
| | 03:09 | You click Next and we're told
exactly what's going to be installed.
| | 03:12 | Click Next again. You come to the
license agreement. Read it of course and then
| | 03:17 | accept it by clicking Next.
| | 03:19 | Then we can decide where exactly
we're going to install the program.
| | 03:22 | We have two options here. One is
where the program goes and the other is
| | 03:25 | where your sites will be.
| | 03:26 | I'm going to leave these in their
defaults. If you want to change them just
| | 03:29 | click on this little folder icon and
then you can select whatever location you like,
| | 03:33 | but I'll just click Next.
| | 03:35 | The next choices you have are
about what ports Apache and the MySQL
| | 03:39 | database program should use.
| | 03:41 | I recommend leaving these as they are.
Particularly on the Mac side I've noticed
| | 03:45 | there have been some problems
with changing the Apache port.
| | 03:48 | Now Acquia may change that in the
future, so if you have a need to use the
| | 03:52 | default port of 80 or 8088, that may be
possible by the time you see this video.
| | 03:56 | Just check the
documentation on the acquia.com website.
| | 04:00 | But for us we'll just click Next.
| | 04:03 | Finally we name our site and
enter our password and email.
| | 04:06 | I'm going to call this Drupal 7 New
Features. The Username I'm going to make
| | 04:11 | admin. For the Password I'm going to use
my own last name Geller, and confirm it
| | 04:18 | of course, and E-mail I'm just going to
put in admin@example.com. Of course you
| | 04:25 | should add your own information.
| | 04:26 | Now this site name is what's
going to show up on this site itself.
| | 04:30 | You will be able to change it later,
but as you'll see it'll show up as
| | 04:34 | the title of your site.
| | 04:35 | We then click Next and
get a confirmation screen.
| | 04:38 | If everything looks okay here,
click Next and Next again to start the
| | 04:42 | installation process.
| | 04:44 | This process takes a few minutes so
we will jump to the end. And that's it.
| | 04:48 | We've now installed both the AMP Stack
and Acquia Drupal and we click Finish and
| | 04:54 | that launches the Acquia Drupal Control Panel.
| | 04:56 | As you can see it starts up both the
web server and the database server.
| | 05:00 | Now if you want to see the site
itself, just click on this Go to my site.
| | 05:04 | That will open the site in your default
web browser, and as you see there is the
| | 05:08 | title that we entered earlier.
| | 05:10 | To administer this site, we would enter
the username and password that we put in
| | 05:13 | during installation phase.
| | 05:15 | You might remember that's
admin and Gellar, and log in.
| | 05:20 | If you're using Firefox or another
browser that stores passwords, it may ask you
| | 05:24 | if you want to store the password.
I'm just going to say Not Now.
| | 05:27 | But there we are. We now have Acquia
Drupal installed on our computer along
| | 05:31 | with the AMP Stack.
| | 05:33 | The next step is we're going to
replace Acquia Drupal with Core Drupal.
| | 05:37 | Now this course is about the
differences between Drupal 6 and Drupal 7.
| | 05:41 | So let's talk about some of those
differences, particularly between DAMP,
| | 05:44 | which didn't exist when Drupal 6 came out,
and those AMP stacks that were used with Drupal 6.
| | 05:49 | That is WAMP and MAMP.
| | 05:52 | First of all DAMP is a lot smaller than
MAMP, at 32 megabytes instead of 160 megabytes.
| | 05:58 | That really only makes a difference
during the download phase of course, but it
| | 06:02 | is a significant difference.
| | 06:03 | WAMP was always fairly
small at 16 or 32 megabytes.
| | 06:07 | The second difference is that
DAMP can host multiple sites.
| | 06:10 | It's what's called a multi-site
installation, and if we take a look at it, you
| | 06:14 | see this little pop down here.
| | 06:16 | When it first installs a site it just
calls that localhost, but you could in
| | 06:20 | fact import other ones or add new ones
and so forth, and that's actually what
| | 06:24 | we're going to do in order
to get Core Drupal into there.
| | 06:27 | The third thing about DAMP is that it's
easier to access configuration and log files.
| | 06:33 | Once again I can go back to the Control
Panel and in the Settings you see this
| | 06:36 | Config tab and Logs tab. If you click
on this View or the Edit links, then you
| | 06:42 | can actually go back and change these
very technical files which controlled how
| | 06:45 | Apache, MySQL, and PHP work in your computer.
| | 06:49 | The final point is it that there is
really good online documentation for DAMP.
| | 06:52 | Acquia has done a good job just writing
everything out as they produced this stack.
| | 06:57 | The stuff from MAMP and WAMP was okay,
but it was a little bit scattershot.
| | 07:01 | A lot of times you found yourself
trying to find answers in the forums rather
| | 07:04 | than in the documentation.
| | 07:06 | Well there you are. You now have
Acquia Drupal set up and ready to use.
| | 07:10 | But we're not going to leave it there,
because in this course we're concerned
| | 07:12 | with the basic version of
Drupal, as I said, called Core Drupal.
| | 07:16 | I'll show you how to import Core
Drupal into the Acquia DAMP Stack in the next video.
| | Collapse this transcript |
| Importing Drupal core into the AMP stack| 00:00 | The Acquia Drupal stack installer is a
real improvement over both MAMP and WAMP,
| | 00:05 | which is what I recommended
as the AMP stacks for Drupal 6.
| | 00:08 | But it does have one peculiarity.
| | 00:11 | Instead of installing Core Drupal,
which is what you download from the
| | 00:14 | drupal.org website, it installs
Acquia's own version of Drupal.
| | 00:18 | Now personally I like Acquia Drupal a
lot and actually I usually use that as
| | 00:23 | the base for the sites that I build
personally, but it is less common than Core Drupal.
| | 00:28 | It has a lot of extra pieces and
some complications that are outside the
| | 00:32 | purview of this course.
| | 00:33 | If you're asked to work on a Drupal
site that someone else has set up, chances
| | 00:37 | are it was created in Core
Drupal, not Acquia Drupal.
| | 00:40 | So unless that changes, the Drupal courses I
do for lynda.com will deal with Core Drupal.
| | 00:45 | So, let's get Core Drupal into
Acquia's AMP Stac. Here's how you do it.
| | 00:50 | The first thing that you need to do is
download Core Drupal, and the place to do
| | 00:54 | that is at drupal.org.
| | 00:55 | I'll go up to this tab that we had
open for Acquia and enter the URL. It is
| | 01:00 | drupal.org/project/drupal.
| | 01:07 | You can actually download Core
Drupal from the front page of drupal.org.
| | 01:10 | I usually go to this, page/project/
drupal, because then I can download any
| | 01:14 | version, and as I'm doing this course
before 7 comes out I can actually grab the
| | 01:18 | advanced versions, the
7.x-development snapshots.
| | 01:22 | To download it, you just click on
Download and save it as you normally would any
| | 01:26 | other file that you're going to install.
| | 01:28 | Once we've downloaded the file, we just go
to its download location and uncompress it.
| | 01:34 | For me that's the Downloads folder.
| | 01:36 | On Windows you might have to install an
additional program in order to uncompress it.
| | 01:40 | I've done so already. So I'll just double-click.
| | 01:45 | It'll take a little while for the file
to uncompress, but when it's finished
| | 01:48 | it'll end up with a folder similar to
this one that starts with the word drupal.
| | 01:52 | Once it's uncompressed, drag it to a
place where you know you can find it.
| | 01:55 | I'm going to put it on the desktop
and then go to the desktop so that I can
| | 01:59 | see it and there is.
| | 02:01 | If we open it we see all of the
files that make up Core Drupal.
| | 02:04 | The next step is to
import it into the Acquia DAMP.
| | 02:08 | So we go to it and then click on the
pop-up menu here and go down to More.
| | 02:14 | This is where you can import
additional versions of Drupal.
| | 02:17 | I click on Import, look for the files
that I just downloaded by clicking on
| | 02:21 | Browse, and you'll remember I put
that on the desktop, so there it is.
| | 02:26 | I just click on the enclosing folder and say OK.
| | 02:29 | So that's the files.
| | 02:31 | Now Drupal is made up of
both files and databases.
| | 02:34 | Since we're going to be creating a
completely new site, we create a new database
| | 02:38 | and we give it a name.
| | 02:39 | I'm going to call this database d7nf
for Drupal 7 New Features, and the site
| | 02:45 | itself I'll call d7nf.
| | 02:47 | Now you can't leave this as localhost
because the default version of Drupal that
| | 02:51 | the DAMP installs, that is Acquia Drupal,
has the name localhost and if you try
| | 02:55 | to do this it'll just complain
and say, "No, you can't do that."
| | 02:58 | So I'm going to call this d7nf and Import.
| | 03:01 | It takes a few moments, and then once
it's done it launches your new site.
| | 03:06 | Now you don't actually have to get rid
of the old Acquia Drupal; it's living
| | 03:10 | there alongside Core Drupal in the
Acquia Drupal Stack Installer, and as I go
| | 03:15 | back to it you'll see we have both the
original acquia_drupal and our Core Drupal here, d7nf.
| | 03:22 | So we now have a new AMP stack that
works a lot better than WAMP or MAMP.
| | 03:27 | We have Core Drupal completely installed,
but our installation isn't quite complete.
| | 03:32 | We still have to go through
Drupal's own installation process.
| | 03:35 | You might remember when we first
installed the AMP stack that was already done
| | 03:39 | for us because it installed Acquia
Drupal and went through the whole
| | 03:42 | installation process by asking us the
username and password first, and then just
| | 03:46 | finished with a complete site.
| | 03:48 | We still have to do this
with Core Drupal however.
| | 03:51 | Don't worry though. It's a quick and
easy process and there are some real
| | 03:54 | improvements over how
things were done in Drupal 6.
| | Collapse this transcript |
| Installing Drupal| 00:00 | We finished installing the Acquia
Drupal stack installer called DAMP and also
| | 00:04 | imported core Drupal into the DAMP.
Now we'll continue with Drupal 7's own
| | 00:09 | installation process.
| | 00:11 | Now for my earlier series we used
MAMP and not DAMP to install Drupal 6.
| | 00:16 | The reason is simply that DAMP
didn't exist at the time, so because we're
| | 00:19 | using MAMP for Drupal 6 and are
using DAMP for Drupal 7, some of the
| | 00:24 | differences you'll see are
actually going to be because the Amp stack
| | 00:27 | themselves are different.
| | 00:28 | Most notably you have to manually create the
Drupal database when you use MAMP and WAMP.
| | 00:33 | While DAMP does that for you
automatically. So if you decide to use MAMP, WAMP
| | 00:38 | or some AMP's stack besides Acquia's
DAMP, your installation process will be
| | 00:42 | different from what you see here.
| | 00:44 | It will almost certainly be more
difficult and that's why I recommend Acquia DAMP.
| | 00:48 | Now we've already installed that in the
video "Installing the AMP stack," and we
| | 00:53 | got core Drupal 7 set up in the video
"Importing core Drupal into the AMP stack."
| | 00:57 | The next thing to do is
actually run Drupal's installer.
| | 01:01 | If you're not already on the site use
this pop-up menu and select the site that
| | 01:04 | you want to go to, in our case
that's d7nf, and then say, Go to my site.
| | 01:08 | I am already there, so I'll just
click over on my Firefox browser screen.
| | 01:12 | Over on the left you see the list of
things that you have to go through in order
| | 01:16 | to install Drupal 7.
| | 01:17 | We'll be skipping two of them, because
we are installing Drupal on DAMP rather
| | 01:21 | than MAMP or WAMP. Namely, we don't
have to go through the Verify requirements
| | 01:25 | or Set up database steps.
| | 01:27 | If you need to know how to do those,
refer to my earlier course, Drupal 6
| | 01:31 | Essential Training, which
installs Drupal over MAMP instead.
| | 01:34 | Now the first thing that hits you from
the screen if you use Drupal 6, is that
| | 01:38 | Drupal 7 looks very different graphically.
| | 01:40 | Its new theme, which is the default for
all administration that you do in Drupal,
| | 01:45 | is appropriately called 7 after Drupal 7.
| | 01:48 | We'll talk more about
that in the video "New themes."
| | 01:51 | But let's get back to our list over
here. The first choice, Choose Profile,
| | 01:55 | lets you choose between a Standard
set of modules, which is the one I always
| | 01:58 | use, and the one I recommend
in a Minimal set of modules.
| | 02:01 | Minimal is the same software as
Standard, but it has fewer options enabled.
| | 02:06 | It's particularly useful for hard-
core developers and folks with a strong
| | 02:09 | do-it-yourself ethic.
| | 02:11 | It's good for people who want to build
their site from the ground up without
| | 02:14 | distractions, such as the
administrative overlay or a search box.
| | 02:17 | But we don't have to look at that.
We are just going to do the Standard
| | 02:20 | installation profile by
clicking Save and Continue.
| | 02:24 | The next screen is the same
between Drupal 6 and Drupal 7.
| | 02:27 | The default language for Drupal is
English, but you can choose to install it
| | 02:31 | in other languages, in which case your
administrative interface is going to be
| | 02:34 | in those languages.
| | 02:35 | Just click on this link to find out how,
but we're going to do it in English,
| | 02:38 | so Save and continue.
| | 02:39 | And as I mentioned it will skip over the
Verify requirements and Set up database
| | 02:43 | steps and just go right
into installing Drupal itself.
| | 02:46 | Now it's looking at the profile
we selected. If you choose Minimal,
| | 02:49 | it'll be a much faster install,
but other things won't be turned on.
| | 02:54 | Finally we come to our Configuration
screen. I'll give the site the same name
| | 02:57 | that we gave it earlier, which is to
Drupal 7 New Features, e-mail address I'll
| | 03:03 | just say admin@example.com, Username
is going to be admin, Password I'll save
| | 03:10 | geller, G E L L E R, and as we scroll
down to the bottom, we have this default
| | 03:17 | country now. I'm in United States, so
I will just start typing U, N, I, T and then
| | 03:22 | scroll down a little bit
until we get to United States.
| | 03:25 | On the surface a Drupal 7 installation for
the screen is very much the same as Drupal 6.
| | 03:30 | It does have this additional Receive
email notifications, which is really
| | 03:33 | wonderful and I recommend that
you still keep that already checked.
| | 03:37 | That way you'll find out if there are
any security problems with your version of
| | 03:40 | Drupal. Scroll down to the bottom, Save
and Continue just as before with Drupal 6,
| | 03:44 | and there's your site.
| | 03:47 | Because I'm using Firefox, I get asked
whether I want remember the password.
| | 03:51 | I'll just say, Not Now.
| | 03:52 | The last thing to do is click on
Visit your new site, and there it is.
| | 03:56 | There are a few things that are
different about this screen from Drupal 6.
| | 03:59 | One is that it's not full of all
that stuff that Drupal 6 used to have.
| | 04:02 | It had four paragraphs of text, which
most people either didn't read or didn't
| | 04:06 | understand if they did read.
| | 04:08 | Now a lot of that stuff is simplified
into the commands, because the first
| | 04:11 | thing people usually want to do is add new
content, which you would do by clicking there.
| | 04:15 | I want to go back and talk a little
bit about those requirements and database
| | 04:19 | screens, neither which we saw here.
| | 04:22 | There are some things that have
stayed the same since Drupal 6.
| | 04:25 | First of all you still need to copy over
the settings.php file. That hasn't changed.
| | 04:30 | The second thing is that Drupal 7 now
recommends at least 40 MB be given to PHP.
| | 04:36 | Now I am not going to show you how to
fix that, but you can find out how in
| | 04:39 | my course Drupal 7 Essential Training,
which will be coming out soon after
| | 04:43 | this course is released.
| | 04:44 | If you use the WAMP stack, you are
going to find that it only starts with 2 MB
| | 04:48 | I believe, and it's way underpowered and
it simply won't install Drupal 7 properly.
| | 04:53 | Once again these are some of the reasons
that I prefer the Acquia Drupal stack installer.
| | 04:57 | Another thing I want to mention is
that databases are now much better
| | 05:01 | supported in Drupal 7.
| | 05:02 | Firstly, the database type is
clearer and the list of available
| | 05:06 | databases includes SQLite.
| | 05:08 | More importantly, Drupal 7 has
abstracted the database layer, so you can
| | 05:12 | actually use just about any database you want
with Drupal with very little extra programming.
| | 05:16 | I'll talk a little bit more about
that in the video "Developing for Drupal."
| | 05:21 | The next thing I'd do is actually look
at the files in Drupal 7. I'll switch to
| | 05:24 | my desktop and open it up.
| | 05:28 | There are two things that are specific
to the Acquia Drupal stack installer that
| | 05:31 | are a little bit different from the
way it works with other stack installers.
| | 05:35 | First of all because it's a multisite
system, the sites folder is set up a
| | 05:38 | little bit differently.
| | 05:40 | I open up my Drupal folder and then sites
folder and you see we now have this d7nf folder.
| | 05:45 | That's for the core Drupal that we
installed, and if you install other sites
| | 05:49 | they will also have separate folders.
| | 05:51 | We open that up. This is the
settings.php for this particular website.
| | 05:55 | I like to also double-click that file itself.
| | 05:58 | In the Settings folder, Acquia DAMP
handles things a little bit differently then
| | 06:02 | you might be used to.
| | 06:03 | You might remember having to enter
database settings and they would show up, oh,
| | 06:07 | about middle of the file underneath
all of this explanation, right here.
| | 06:11 | Well, in this case it just has
databases equals array and it's blank.
| | 06:15 | If you scroll down to the very end of
the file, you'll actually see this 'Don't
| | 06:19 | edit anything below this line' and
that's where Acquia DAMP sticks all of its
| | 06:24 | magic about the database and so forth.
| | 06:26 | So if you need to move your
installation into a remote server, you are going to
| | 06:30 | have to install on the remote server.
Again, this is only if use Acquia DAMP.
| | 06:35 | I know we have been through a
lot just to get Drupal installed.
| | 06:38 | Even ignoring the differences due to
the new DAMP stack, it's quite a bit
| | 06:41 | better than Drupal 6.
| | 06:43 | I know because I installed it many
times into MAMP and on a remote server
| | 06:47 | with its own AMP stack.
| | 06:48 | Just a reminder, you'll get tips on how
to verify requirements and install the
| | 06:51 | database in my earlier series,
Drupal 6 Essential Training.
| | 06:55 | If you run into additional troubles
when using some other AMP stack, I'm afraid
| | 06:59 | they're probably not because of
Drupal, but rather because of system
| | 07:02 | administration issues that I
just can't cover in the series.
| | 07:05 | For those, I recommend you talk with
your system administrator or seek out
| | 07:10 | further help within the Drupal community.
| | Collapse this transcript |
|
|
2. The InterfaceWorking with the administrative overlay| 00:01 | If you've just installed Drupal 7 for
the first time and tried clicking on just
| | 00:04 | about any link you see on the initial
page, you've seen the administrative
| | 00:07 | overlay. Hre I'll show.
| | 00:09 | Click on Configuration and it pops up. That's
this white part that goes over the page below it.
| | 00:15 | And basically it pops up whenever
you're doing any kind of administrative task.
| | 00:19 | Well, the page you are looking at is
visible, just barely underneath it.
| | 00:23 | Some people love it.
Dome people hate it.
| | 00:25 | This video will show you how to use
it, avoid it, and even turn it off
| | 00:29 | altogether if you want.
| | 00:31 | Now that we have got it up, I'll
first show you how to close it.
| | 00:33 | You just click on this little x up here.
| | 00:34 | I'll show you around some of the
features of the administrative overlay.
| | 00:38 | I'll go back up to Configuration and
Account settings, and here we see the first one.
| | 00:43 | We have these tabs up here at the top,
when you click on any one of these it
| | 00:47 | doesn't refresh the entire screen, just
the administrative overlay, just like so.
| | 00:52 | And as you can see just barely
underneath we still see our title of
| | 00:55 | the underlying site.
| | 00:57 | When you scroll through the
administrative overlay, the underlying site does not scroll.
| | 01:01 | You can see that by noticing
this blue area up here at the top of the
| | 01:05 | underlying site, which is
separated from this white area.
| | 01:07 | And as we scroll, the
underlying site doesn't actually change.
| | 01:11 | It is sort of like having two pieces
of paper on the desk, and you're only
| | 01:15 | moving one on top of the other.
| | 01:17 | To show this a little bit more clearly,
I am going to quickly create a page.
| | 01:20 | I'll close out the administrative
overlay and click Add Content, which by itself
| | 01:25 | brings up the administrative overlay.
| | 01:26 | I'll just save Basic Page. This is
just going to be called Junk Node and I'll
| | 01:32 | just fill up the body with blah, blah,
blah, and copy that over a whole bunch of times.
| | 01:42 | There you go. I'll save that, so
we now see this in the background with
| | 01:47 | all this blah, blah, blah.
| | 01:49 | Now when I raise up the Configuration
page, underneath it all you can see, down
| | 01:54 | here the text of the underlying
page is still showing through.
| | 01:57 | I'll close that out again.
| | 01:59 | Now one thing that's interesting when
you click on anything that raises the
| | 02:02 | administrative overlay is
what happens with the URL.
| | 02:05 | If we go back to our homepage here, if you
look up here, we just see our basic domain.
| | 02:09 | Remember we're running this off of our
own computer so it's this local name,
| | 02:13 | d7nf, and then the port which
we get from the DAMP AMP stack.
| | 02:18 | When we click on anything that
creates the administrative overlay like the
| | 02:21 | Structure link right here,
we now have a URL in two parts.
| | 02:25 | here's the first part.
| | 02:27 | Then we have this #overlay=,
which shows us the part that hovers above it.
| | 02:32 | If you want to show either the
underlying page or the administrative overlay
| | 02:36 | just by itself you remove
that part that you don't want.
| | 02:40 | So for example, if I remove this
overlay =admin/structure and also remove
| | 02:44 | that pound and hit Return,
we go right back to that page.
| | 02:47 | Once again, I'll bring up an
administrative overlay page and I can actually
| | 02:52 | remove this #overlay= part,
hit Delete and Return.
| | 02:58 | Then we see what was on the administrative
overlay, but only as the basic page itself.
| | 03:02 | that is it's only at one level.
| | 03:04 | So that's one way that you can
get rid of it, if it's annoying you.
| | 03:07 | To get it back again, just go back
Home and then if you click again on
| | 03:10 | Configuration, it'll show up
again as an administrative overlay.
| | 03:13 | But let's say you really dislike the
administrative overlay entirely. There is
| | 03:17 | a way to turn it off. Just go up to
Modules, scroll down to Overlay, uncheck that box.
| | 03:26 | Scroll all the way to the
bottom and click Save configuration.
| | 03:31 | Now the administrative overlay will
never show up, and I'll show up that by I
| | 03:35 | going to my homepage here, going to
Content, which would normally pop up the
| | 03:39 | Overlay, and it doesn't.
| | 03:40 | And as long as we are on Content, I am
actually just going to delete that node.
| | 03:45 | The administrative overlay has an
interesting history. One of the biggest User
| | 03:50 | Interface differences between Drupal and
its competitor Joomla! is that Joomla!
| | 03:54 | enormously differentiates between
what the administrator sees and what
| | 03:58 | ordinary users see.
| | 04:00 | That wasn't true for Drupal 6, and that
in fact irked some people who wanted to
| | 04:04 | feel a wall between those two worlds.
| | 04:07 | Lots of discussions and lots of study
led to this solution, and personally I
| | 04:11 | think it's pretty good, especially since
you can turn it off if you don't like it.
| | 04:15 | Frankly the first time I tried it, I
really didn't care for it because I used to
| | 04:19 | navigate around the administrative
pages by typing their URLs up here and it
| | 04:23 | bothered me that I had to type #Content
and whatever it was in order to
| | 04:29 | get the pages that I wanted.
| | 04:30 | But after a few days of using it,
I found myself clicking around a lot more than
| | 04:34 | I did in Drupal 6, and in the
end I was able to use it faster.
| | 04:38 | And if for some reason I ever want to
go back to typing URLs, I still can.
| | 04:42 | That's one of the features of Drupal 7
is that it gives you a lot more choice
| | 04:45 | than Drupal 6 did, in matters of interface.
| | Collapse this transcript |
| Finding commands| 00:00 | Some of Drupal 7's
changes only affected the text.
| | 00:04 | That is what things are called, rather than
the more obvious graphical and code changes.
| | 00:09 | These text changes are subtle, but
they can make a difference in perception,
| | 00:13 | especially for people who're
using Drupal for the first time.
| | 00:16 | For example, what used to be called
Users are now called People and what used
| | 00:21 | to be called Themes is now called Appearance.
| | 00:24 | On top of these text changes, there
were a lot of organizational changes.
| | 00:28 | Links moved from one part of Drupal's
administrative interface to another.
| | 00:32 | That make things easier for Drupal newbies,
but can be confusing to old dogs like me.
| | 00:37 | This video gives you an overview of all
of those changes, and to show this off,
| | 00:42 | I loaded up Drupal6 in another tab on
this window, so you see it right here.
| | 00:46 | Now in Drupal 6, when you wanted to
administer anything, the first thing you
| | 00:50 | did was click Administer and that gives you
a list of all of the administrative commands.
| | 00:55 | If you wanted to look at just one
group of them, for example, Content
| | 00:58 | Management, you could then click the
submenu Content Management, which would
| | 01:02 | show you just do things that are in
that part of the Administer screen.
| | 01:06 | In Drupal 7, by contrast, we have the
Dashboard. You click up here on Dashboard
| | 01:11 | and you get this screen.
| | 01:12 | I'll explain this in another video
about the Dashboard, but one of the tabs
| | 01:16 | here is called By Task, and this should
look familiar to you if you're use to Drupal 6.
| | 01:21 | Again, it has a bunch of different
groups, Appearance, Content, Structure and
| | 01:25 | so forth with several settings underneath
them, very much like what you had in Drupal 6.
| | 01:31 | Now when you compare the two
screens, you'll see that the way they're
| | 01:34 | grouped isn't the same.
| | 01:36 | Drupal 7 has a lot more groups for one thing.
| | 01:38 | You have Content, Structure, Appearance,
People, Modules, Configuration and so forth.
| | 01:43 | Also, you'll notice that each one of
those groups has fewer links and a lot of
| | 01:46 | things have moved around.
| | 01:48 | Let's go over some of those changes.
| | 01:50 | First, there's a big structural change.
In Drupal 6 when you clicked on any of
| | 01:55 | these Content, Management, Site
Building, any of the groups, all that you got
| | 01:59 | was a list of different links underneath it.
| | 02:02 | In Drupal 7, sometimes you'll
get a list of links underneath it.
| | 02:05 | For example, when you click on
structure, or if I go back a screen, you might
| | 02:10 | actually get something
that you could use right away.
| | 02:12 | Like when you click on Appearance. See
then we get our Theme screen right away.
| | 02:16 | Let's go back to our
Dashboard By Task screen again.
| | 02:20 | You'll also notice when I click on
Appearance, there are two things underneath it,
| | 02:23 | Update and Settings. Those who
have turned into tabs on the Appearance page,
| | 02:27 | see there is Update and Settings,
and you get to exactly the same place
| | 02:31 | whether you click first Appearance
and then the tab, or if you just click
| | 02:35 | directly on Update.
| | 02:37 | Now let's go through all of these
categories that we had. We'll go back to our
| | 02:41 | Dashboard By Task again, and the
first one is obviously Dashboard.
| | 02:45 | That takes you here.
Nothing really to say about that.
| | 02:48 | The second thing I want to go over is
Help, but before I do that, you'll notice
| | 02:51 | that Dashboard, Content, Structure,
Appearance, all of these things that are
| | 02:54 | listed up here on the toolbar, these
are the same categories here, Dashboard,
| | 02:59 | Content, Appearance, Structure and so forth.
| | 03:01 | You can use either one, and in fact, I
found myself almost never going to the
| | 03:05 | Dashboard in Drupal 7. I just
use these links in the toolbar.
| | 03:09 | There is one link that doesn't show up
in the Dashboard though, which is the
| | 03:12 | Help link, and there is
not much to say about this.
| | 03:15 | It's exactly the same
between Drupal 7 and Drupal 6.
| | 03:19 | For the other administrative categories,
it's easiest to summarize them using
| | 03:23 | charts, because there's an awful lot of them.
| | 03:25 | I am just going to go through them
quickly, but you might want to use these
| | 03:29 | charts for reference if you're used
to using Drupal 6 and can't find where
| | 03:32 | something is in Drupal 7.
| | 03:34 | Also, I am going to go through these
from the point of view of Drupal 6.
| | 03:38 | So first I'll go through Content
Management and explain where to find the
| | 03:41 | command for Comments and Content
and Content Types and so forth.
| | 03:45 | In the Content Management area, we had
Comments, Content, Content Type, Post
| | 03:50 | Settings and so forth.
| | 03:52 | This is where they have all gone in Drupal 7.
| | 03:54 | Content is now its own category and
Comments is a sub-tab underneath that.
| | 04:00 | Content Type and Taxonomy have both
been put under the Structure Group.
| | 04:05 | Then we come to Post Settings, which
is unusual because it's actually been
| | 04:08 | split into several different areas.
Some of it is in Site Informatio, and then
| | 04:13 | Rebuild Permissions, which was formerly on
that Post Settings page, is now in Status Report.
| | 04:18 | RSS Publishing is now in
its own group, Web Services.
| | 04:22 | And I am just going to switch back to
Drupal 7 very quickly so you can see that
| | 04:25 | Content, Structure, and RSS Publishing area.
| | 04:29 | Going back to Drupal 7, we have
Content and Structure and then that Web
| | 04:33 | Services part is actually under
Configuration, Web services, and there is
| | 04:38 | our RSS Publishing.
| | 04:41 | Continuing on inside Configuration,
this has gone from 12 items to 18 items in
| | 04:46 | nine categories and it's such a big
thing that I have actually put all of that
| | 04:50 | Configuration bit into a
separate video later on in this course.
| | 04:55 | In User Management, what's now called
People, many of the things ended up under
| | 04:59 | that People screen, but actually are made
much easier to understand: Access, Rules,
| | 05:04 | Permissions, Roles, User Settings and Users.
| | 05:06 | I want to talk about three of those in
particular, Permissions, Roles and Users.
| | 05:12 | In Drupal 6 this was all under User
Management. You had to go to different
| | 05:16 | screens for Permissions, Roles and Users.
| | 05:19 | In Drupal 7, if you click on
People, you get all of that at once.
| | 05:23 | You have People and it just
immediately tells you who is on your site.
| | 05:26 | And then when you click on Permissions,
you get a sort of sub-sub-tab here,
| | 05:31 | which gives you Roles.
| | 05:32 | I think this is very intelligent,
because Permissions are really very closely
| | 05:36 | tied to Roles, and that's something
that was never acknowledged in Drupal 6 and
| | 05:40 | made much clearer in Drupal 7.
| | 05:42 | Going on, we have Reports, which really
have stayed pretty much the same between
| | 05:46 | Drupal 6 and Drupal 7.
| | 05:48 | If we take a look at the two, click on
Drupal 6 and go to Reports, we have a
| | 05:53 | list of Recent Log Entries and so forth.
| | 05:55 | In Drupal 7 when we click on Reports,
again it's pretty much the same.
| | 06:00 | And that takes us to the end of the
differences between the menus in Drupal 6 and Drupal 7.
| | 06:04 | As you could see the biggest changes
are inside Configuration, which will go
| | 06:08 | into in a separate video.
| | 06:10 | The process of going from Drupal 6 to
Drupal 7 has been extremely complicated
| | 06:15 | and there have been many changes along the way.
| | 06:17 | I tried to track them all, because I
was busy writing a book on it and as I'd
| | 06:21 | write something about one change it
would change again and then again, and
| | 06:24 | it was a very tumultuous time, but to
tell you the truth, I think it turned
| | 06:28 | out pretty well.
| | Collapse this transcript |
| Configuring your site| 00:00 | In the video called finding commands,
we talked about how the five categories
| | 00:05 | of administration commands in Drupal 6 were
moved around all over the place in Drupal 7.
| | 00:10 | There was one area we sort of glossed
over, because it was so big.
| | 00:14 | The Site Configuration section.
| | 00:17 | The number of links went from 12 in
Drupal 6 to 18 in Drupal 7, and now they are
| | 00:21 | split into nine categories.
| | 00:23 | That's an awful lot.
| | 00:24 | We're going to delve into those 18
administrative links and draw parallels from
| | 00:29 | how they worked in Drupal 6, to
how they work now in Drupal 7.
| | 00:33 | Now we can't dig down to the very core
of these differences, there are simply
| | 00:36 | too many, but I hope this video will
give you a better understanding of Drupal
| | 00:40 | 7's organization,
particularly as it contrasts to Drupal 6.
| | 00:45 | We'll do this in two steps. First,
we'll go down to Configuration screen in
| | 00:50 | Drupal 6 to find where
everything went in Drupal 7.
| | 00:53 | Then we'll look at some things that
are entirely new in Drupal 7. There is a
| | 00:56 | lot, so it's going to have to be a
real whirlwind tour. So are you ready?
| | 01:00 | All right, let's go.
| | 01:01 | First, to get to our Configuration
pages. In Drupal 6, we click on the
| | 01:05 | Administer, and Site Configuration.
In Drupal 7 we click Configuration.
| | 01:12 | Now starting down the list
in Drupal 6, we have Actions.
| | 01:16 | In Drupal 7 that went just to Actions
right here under the System submenu.
| | 01:22 | In Drupal 6 continuing down we have
Administration Theme. This is the part that
| | 01:26 | lets you set a different theme for
when you have administration pages, over
| | 01:30 | when you have ordinary user pages, and
in Drupal 7 that's turned on by default,
| | 01:34 | as you see with this 7 theme that pops up
whenever you click an Administrative link.
| | 01:39 | In Drupal 7 it's moved to a completely
different area which is under Appearance,
| | 01:43 | and then all the way at the bottom
here, you have Administration Theme.
| | 01:47 | Continuing down the list in
Drupal 6, we have Clean URLs.
| | 01:51 | In Drupal 7, going back to
Configuration page, we still have clean URLs,
| | 01:57 | down here under Search and Metadata.
| | 01:59 | One difference between Drupal 6 and
Drupal 7 is in Drupal 7 they are generally
| | 02:03 | turned on automatically.
They are a lot easier to manage.
| | 02:06 | In Drupal 6, we have Date and Time.
| | 02:10 | In Drupal 7 that's been
split into two different things.
| | 02:12 | As we scroll down to Regional and
Language, we have Date and Time and Regional
| | 02:17 | Settings. Some parts of the original
Date and Time from Drupal 6 are handled in
| | 02:21 | one and some are handled in the other.
| | 02:23 | Neither of those are the same as the Locale
module, which is always been about translation.
| | 02:28 | Going back to Drupal 6, we
have this Error Reporting link.
| | 02:32 | In Drupal 7, once again,
that's been split into two parts.
| | 02:35 | The first part on the Configuration
page is under Site Information, where you
| | 02:40 | can specify different pages for when
people get an access denied page or 403, or
| | 02:45 | a Not found page. That is a code 404.
| | 02:48 | It's also been split into a section in
Configuration under Development, as we
| | 02:52 | scroll down here, Logging and Errors.
| | 02:55 | Some of the controls from
Drupal 6 are now on this page.
| | 02:59 | Going further down in
Drupal 6, we come to File system.
| | 03:03 | In Drupal 7 we find that once again on
Configuration, scroll down a little bit
| | 03:08 | and we have File system.
| | 03:09 | It's very much the same, except in
Drupal 7 you can now have both public file
| | 03:13 | paths and private file paths.
| | 03:16 | In Drupal 6 you had to choose one or the other.
| | 03:19 | Going back to Configuration in
Drupal 6, we have Image Toolkit.
| | 03:24 | In Drupal 7 that hasn't changed
really. It's just down here under
| | 03:28 | Media > Image Toolkit.
| | 03:30 | Continuing down in Drupal 6 we have
Input Formats. In Drupal 7 that shows up
| | 03:36 | as Text Formats, but it's basically the
same thing and it's under Content Authoring.
| | 03:41 | In Drupal 6 we have Logging and Alerts.
| | 03:43 | That's the same in Drupal 7, Logging and
Alerts, which you find here under Development.
| | 03:48 | It's actually called Logging and Errors now.
| | 03:51 | In Drupal 6 we continue down and
we have the Performance link here.
| | 03:55 | That's the same in Drupal 7 but it's
a little bit misleading, because even
| | 04:00 | though it's the same looking link,
there've been a lot of changes behind the
| | 04:03 | scene and if you're interested in
that, I would do a search for Drupal 7
| | 04:06 | performance on the drupal.org web site.
| | 04:09 | Continuing down in Drupal 6, we have
Site Information. That's the same in Drupal 7.
| | 04:14 | It's up here by the top, Site Information.
| | 04:17 | The one big change here is whereas in
Drupal 6 we had something called the
| | 04:22 | Mission that went below
your Title and your Slogan.
| | 04:26 | In Drupal 7 they just got rid of the
Mission. They found that most people
| | 04:29 | weren't using it, and it was sort of
confusing. What's the difference between a
| | 04:32 | Mission and a Slogan?
| | 04:33 | So they just got rid of it.
| | 04:35 | And the final one in Drupal 6, let's go
back our Configuration page, is Site Maintenance.
| | 04:40 | In Drupal 7 we'll go back to our
Configuration page and that's basically the
| | 04:44 | same thing, it's just called Maintenance Mode.
| | 04:47 | Well, that's it for Drupal
6's Site Configuration page.
| | 04:50 | Now let's take a look at some
of the new stuff in Drupal 7.
| | 04:53 | I'll skip over parts that were
moved from elsewhere in Drupal 6.
| | 04:58 | For examples, as I said this part People
was formerly called Users. It's really
| | 05:01 | basically the same thing though.
| | 05:03 | I gave an overview of such bits in the
video named "Finding commands," which is
| | 05:07 | part of this series.
| | 05:09 | But let's look at some of the other
things on this Configuration page.
| | 05:12 | The first thing is Image styles.
| | 05:16 | if you use Drupal 6 much, you
know a lot of this as Image cache.
| | 05:19 | It's basically they took the Image
cache module and moved it into Drupal 7.
| | 05:23 | This is a way that you can manage
images and content, and it's really great,
| | 05:27 | We're going to be going over this in
the video "Using images and content."
| | 05:32 | The second new thing in
Drupal 7 is the Search settings.
| | 05:36 | This was actually under Site
configuration in Drupal 6, but you first had to
| | 05:39 | turn on the Search module.
| | 05:41 | That module is now
enabled by default in Drupal 7.
| | 05:45 | And you can see that, when you go to
your basic Homepage, when you first install
| | 05:49 | Drupal 7, and you see a search box.
You didn't see that in Drupal 6 when you
| | 05:52 | went to the Homepage.
| | 05:55 | Continuing on in the Configuration page
in Drupal 7, we have URL aliases, down
| | 06:00 | here again, under Search and Metadata.
| | 06:03 | This is another thing that was actually
available in Drupal 6, but you first had
| | 06:07 | to turn on the module path.
| | 06:09 | once you did, the URL Alias's
link was under Site building.
| | 06:12 | The final thing in Drupal 7 that
you see here on the Configuration page
| | 06:16 | that's new is Shortcuts.
| | 06:18 | We'll discuss that in the
video "The toolbar and shortcut bar."
| | 06:21 | Well, that was a lot of stuff!
Did you get it all?
| | 06:24 | I know, don't worry about it.
| | 06:26 | The good news is that if you know
Drupal 6, most of what you want is either here
| | 06:31 | someplace under the same name or
it's moved to a pretty obvious place.
| | 06:35 | There are some things that have been
removed entirely and you can learn about
| | 06:38 | those in the video, "Things that disappeared."
| | 06:41 | All of these changes were made after
a great deal of thought and debate.
| | 06:44 | If you're curious about those back
stories and the debate, you can look them up
| | 06:48 | by searching on the Drupal.org website.
| | Collapse this transcript |
| Using the revised Dashboard| 00:01 | A big part of the Drupal 7
redesign was to make the administrative
| | 00:04 | interface less intimidating.
| | 00:07 | Drupal 6's main administration
page was notoriously confusing.
| | 00:11 | Here I'll show you.
| | 00:12 | The way you got there on Drupal 6 was
you clicked Administer and then you see
| | 00:16 | this page which has 32 links.
| | 00:18 | Yes, I counted them. 32 links in five categories.
| | 00:22 | Remember, if you will, the first time
you saw the screen, many people will just
| | 00:26 | throw up their hands and run away.
| | 00:28 | Now, compare that with the main
administration page in Drupal 7, which we get to
| | 00:33 | by clicking on Dashboard. Ah, much cleaerr.
| | 00:36 | It's not only clearer;
it's also very customizable.
| | 00:40 | This video will show you how
to make it dance to your tune.
| | 00:42 | Now, as you just saw you can get
there by clicking on Dashboard.
| | 00:46 | Once you're there you have two
additional tabs: By Task which actually looks a
| | 00:51 | lot like the old
administrative page on Drupal 6,
| | 00:54 | and By Module, which actually
was similar to Drupal 6 By module.
| | 00:58 | If you scroll up to the top of this
administrative page in Drupal 6 you have By module.
| | 01:02 | Turn back to Drupal 7 now.
| | 01:04 | Let's go back to By Task.
| | 01:06 | Now, instead of being 32 links and
five categories, we have 27 links in seven
| | 01:11 | categories, so they're a
lot more itemized I would say.
| | 01:14 | And when you click on the header of
any of these, such as Appearance, you then
| | 01:18 | have some of those sub tabs
there Update and Settings.
| | 01:21 | I've showed this in another video as well,
so there is no need to recap all of that here.
| | 01:25 | Let's go back to the Dashboard itself.
| | 01:28 | From the beginning it shows what the
most recent content posted is, who's new on
| | 01:33 | the site, what users are new, and also
lets you search the site, but you can
| | 01:37 | customize this however you like.
| | 01:39 | The way we do that is by
clicking on Customize Dashboard.
| | 01:42 | At the top of this page we have a
number of different things that we can place
| | 01:46 | into the Dashboard. We already have some
things here, the Who's new, Search form,
| | 01:51 | and Recent content as I mentioned.
| | 01:52 | You can remove these if you want as well.
| | 01:54 | The way you do this is by dragging and dropping.
| | 01:57 | And interestingly this is the only
place in the Drupal administrative interface
| | 02:01 | where drag-and-drop works as you
would expect in a graphical program.
| | 02:04 | I'll show you how that works.
| | 02:06 | Let's say we wanted to put Recent
comments underneath Recent content. We just
| | 02:10 | grab it, drag it, and there it is.
| | 02:12 | We could also drag it above
Recent content just like that.
| | 02:16 | Now, in our case we don't have any content
or comments, so we won't see very much there.
| | 02:20 | I am just going to drag it underneath
Recent content there and click Done, but
| | 02:24 | we do see that that's where
it would be if we had content.
| | 02:27 | Let's go back to that customization again.
| | 02:29 | So you see these things, Syndicate,
Shortcuts, Powered by Drupal, and so forth.
| | 02:34 | If these sound familiar it's because here
is a secret. They're all just ordinary blocks.
| | 02:40 | I can prove that by going up to
Structure and clicking on Blocks and then
| | 02:45 | scrolling down here to our disabled blocks.
| | 02:48 | See we have our Syndicate. Somewhere up
here we have the Powered by Drupal block.
| | 02:52 | There it is in the footer.
| | 02:53 | And in fact if I create a new block,
I'll just this call this Temp block and
| | 02:58 | do with the title Temp and the body Temp,
scroll down to the bottom and Save the block,
| | 03:03 | then I can go back to my Dashboard and
customize it and there is our Temp block.
| | 03:09 | We could just put it in any
part of the Dashboard that we want.
| | 03:12 | Then when we say Done there it is.
| | 03:15 | Now, I'm just going to take that out
again, the Customize Dashboard, drag it out,
| | 03:19 | or in fact we could just go back up say
Done go to Structure > Blocks and delete it,
| | 03:24 | just as we did in Drupal 6.
| | 03:29 | This new Dashboard is a big
change for administrators.
| | 03:32 | In a way it helps move Drupal
from something for a hard-core system
| | 03:36 | administrators to something that
everyone can manage with a few clicks.
| | 03:40 | With this Dashboard, you as the
administrator can actually set up a control
| | 03:44 | panel for your other administrators
on the site that they can understand.
| | 03:48 | That makes it a lot easier for you
to really customize the administrative
| | 03:51 | interface on Drupal 7.
| | 03:54 | We click up here on Dashboard and we
immediately get the information that we
| | 03:57 | really need right away without
having to do a lot of clicks.
| | Collapse this transcript |
| Working with the toolbar and the shortcut bar| 00:00 | One of the most popular
modules in Drupal's history is called
| | 00:04 | Administration Menu.
| | 00:05 | It's a fairly simple module.
| | 00:07 | It's just a strip of pop down menus at
the top of the screen, but it makes site
| | 00:11 | management a lot easier for administrators.
| | 00:14 | Drupal 7 successfully incorporated
that module's main feature as the toolbar,
| | 00:18 | which you see at the top of
every page in this black area.
| | 00:21 | You'll only see it though if you have
permission to see it and of course as the
| | 00:25 | site administrator, we can see it ourselves.
| | 00:27 | You can change that
permission of course in Permissions.
| | 00:30 | Just below that is the shortcut bar,
this gray area right here. Technically the
| | 00:35 | shortcut bar is actually part of the
toolbar, so everyone who can see the
| | 00:38 | toolbar can also see the shortcut bar.
| | 00:41 | The difference between the two is that the
links in the toolbar are frozen in place.
| | 00:45 | They're Drupal's main clickable
interface and you can't change it.
| | 00:48 | It's basically the Administer menu from
Drupal 6, but made horizontal and pretty.
| | 00:53 | The shortcut bar on the other hand,
this gray area, can be made to show links to
| | 00:57 | any part of your site that
you like and I'll show you how.
| | 01:00 | We don't really have to go over how the
toolbar works because we've been using
| | 01:03 | it this whole course.
| | 01:04 | You click on it and it gives you
the administrative part that you need.
| | 01:08 | And then you close out the
administrative overface if necessary.
| | 01:11 | Two parts we haven't shown
are up here to the right.
| | 01:14 | Log Out I don't think we need to discuss at all.
| | 01:16 | And then this brings you to your user
account just like so. One other part of the
| | 01:21 | toolbar and shortcut bar is this
little arrow here which you can use to close
| | 01:25 | the shortcut bar, so it sort of
folds up underneath the toolbar.
| | 01:29 | So that's the toolbar.
| | 01:31 | Now let's move onto the shortcut bar.
| | 01:33 | It starts out with just two links in
it, Add content and Find content, but you
| | 01:37 | can add things and remove things as
you like, and they're basically two
| | 01:40 | different ways to do that.
| | 01:42 | One is really convenient once you know
where it is and I'll show you that by
| | 01:45 | going to pretty much any administrative page.
| | 01:47 | Let's say Appearance.
| | 01:48 | Now, you see this little plus next to
Appearance. As we hover our cursor over it,
| | 01:53 | we see Add to Default shortcuts.
| | 01:55 | I'll click it and there it is.
| | 01:58 | Now, wherever we are in the site, we
are on the Configuration page, it doesn't
| | 02:01 | really matter. The Dashboard.
| | 02:03 | If we want to get to that page all
we have to do is click Appearance.
| | 02:07 | And there we go. Once we're there we
can remove it from the shortcut bar by
| | 02:11 | clicking on what's now a minus sign. You click
it, say yes I do want to remove it, and it's gone.
| | 02:16 | The other way to add and remove things
from the shortcut bar takes a little bit
| | 02:20 | more digging, but it's a lot more flexible.
| | 02:23 | You can see that at the end of the
shortcut bar here, Edit shortcuts.
| | 02:26 | And before I go there I'm just
going to take a note here. This is at
| | 02:28 | admin/appearance and
I'll actually copy that URL.
| | 02:32 | Now, I'll go to Edit shortcuts, and
say yes I'd like to add a shortcut.
| | 02:37 | I'll call it Appearance.
| | 02:40 | And down here I'll say this is
where I want it to go and Save.
| | 02:45 | There it is and once again, when I
click it that's where I go. So far so good.
| | 02:49 | Now, things get a little bit tricky.
| | 02:52 | We've been editing a single shortcut bar.
| | 02:55 | Every user with permission to see the
toolbar will see that same one, which is
| | 02:58 | called default, but you can actually
create as many shortcut bars as you want.
| | 03:03 | That's useful if you have people on your
team performing different tasks. You can
| | 03:07 | give each group it's own shortcut bar.
| | 03:09 | For example, a news editor might have
one that says Post news articles, while a
| | 03:13 | community manager shortcut bar it
might have one that says Add member.
| | 03:16 | And I'll show you how to do that by going up
to Configuration and scroll down to Shortcuts.
| | 03:22 | I'm going to create a shortcut bar
called editor by clicking there and saying
| | 03:26 | Editor and Create new set.
| | 03:28 | Now just to show you, I'm going to go
back to Configuration and Shortcuts and we
| | 03:33 | see we have Default and Editor.
| | 03:35 | You can delete the editor set, but you
can't delete the default set. That's the
| | 03:38 | basic one which again everyone
sees unless you tell them otherwise.
| | 03:42 | I'm going to go back and add
another shortcut. I'll go up to let's say
| | 03:45 | Content > Add new content > Article.
| | 03:48 | And as you expect, I
have this plus sign up here.
| | 03:51 | If I click it, it goes to the default
shortcuts and we see it up here next to Appearance.
| | 03:56 | If we go back to Configuration and Shortcuts,
we can actually list the links in each of them.
| | 04:00 | We haven't changed our editor shortcut set yet.
| | 04:03 | So you might be asking how can I
actually change that editor shortcut set?
| | 04:08 | Well, I'll show you. You
do it in the user account.
| | 04:11 | To do that I go up and click on my own
account, which is admin, and I have this
| | 04:16 | new tab here called Shortcuts.
| | 04:17 | When I click on that, I can select
which shortcut set I want to use or I
| | 04:23 | can create a new one.
| | 04:24 | I'm going to switch over to
Editor and say Change set.
| | 04:27 | Great, I'm now using the Editor shortcut set.
| | 04:29 | When I close out this window,
| | 04:31 | now when I go to Configuration and let's
just say Account Settings, and I add one here,
| | 04:36 | now it says Add to Editor shortcuts.
| | 04:39 | So as you can see you can have
multiple sets if you like one again for news
| | 04:43 | editors and other for
community managers and so forth.
| | 04:46 | Now, when you create a new user,
they get the default shortcuts to start off.
| | 04:51 | As someone with administrator
privileges, you can change which shortcuts they
| | 04:54 | get by going to that person's user
page, just as you did on your own page.
| | 04:58 | The way you would do that is you would
go to People and then you go down and
| | 05:01 | edit the person just as you normally would.
| | 05:04 | You can also grant individual users permission
to decide what shortcut bars they want to use.
| | 05:09 | And the way you do that is by going to People,
click on Permissions, and then scroll down.
| | 05:15 | There is actually a shortcut
section down here where you can, as you say,
| | 05:20 | Select any shortcut set.
| | 05:22 | I could give that, for example, to every
authenticated user if I wanted, but for
| | 05:26 | now I'll just go back Home.
| | 05:28 | These two bars, the toolbar and shortcut,
bar are really great boons to people who
| | 05:33 | get around by pointing and clicking.
| | 05:34 | They don't replace every function of
that Administration Menu module which
| | 05:38 | I mentioned earlier.
| | 05:39 | And you can still get it at
Drupal.org/project/admin_menu.
| | 05:45 | The most notable difference in
Administration Menu is that it has pop-out menus.
| | 05:50 | So when you move your mouse up here
instead of just seeing Appearance or People
| | 05:54 | you would actually see all of
the sub things underneath that.
| | 05:56 | That's actually very useful
if you like to point and click.
| | 05:59 | Some people dislike this toolbar and
shortcut bar altogether because they
| | 06:03 | think it's a distraction.
| | 06:04 | Well, fortunately just like the
administrative overlay, you can turn it off.
| | 06:09 | You go Modules scroll down to Toolbar and
you would check this box and then Save
| | 06:15 | configuration and it
would be turned off entirely.
| | Collapse this transcript |
| Configuring contextual link controls| 00:00 | Over 25 years ago, the point and click
interface catapulted home computers from
| | 00:05 | something that was just used by
hobbyists and grudging businesspeople to being
| | 00:09 | a fun and useful device
for ordinary people at home.
| | 00:12 | Drupal has been undergoing a similar
transformation over the past few versions,
| | 00:16 | becoming less text and programmer-
centric and much more graphical.
| | 00:21 | Drupal 7 introduces several nice
features that make administration even more
| | 00:25 | graphical and intuitive.
| | 00:26 | We already saw one of them in a video
earlier in the series about the Dashboard
| | 00:30 | where you can rearrange blocks on a
page by dragging and dropping them.
| | 00:34 | Now, we're going to take a quick look
at another one. Contextual link controls.
| | 00:38 | This is really a very simple thing
to show, but it has some subtleties.
| | 00:42 | I'll show you over here
on this search block here.
| | 00:44 | I'm logged in as the administrator, so
when I move my cursor over it, you see
| | 00:48 | this little widget that shows up.
| | 00:49 | We click that and we can
Configure it. We see that it's a block.
| | 00:52 | When you click on Configure block, we
just goes straight to the place where we
| | 00:56 | can say where exactly it goes on the
page and change the title and so forth.
| | 01:01 | That's pretty obvious.
| | 01:02 | What's not quite as obvious is that
the contextual link control changes
| | 01:06 | depending on what sort of
thing you're pointing at.
| | 01:08 | For example, here we have management,
which is actually a menu. When we click on
| | 01:13 | the link control here we get not only
Configure blocks, since it does appear
| | 01:17 | on the block, but also we could edit the
menu to change it's name or list the links.
| | 01:22 | And when of course add them and remove
them the way we normally would in any
| | 01:25 | other kind of menu change.
| | 01:28 | Finally, I'll show you
what it looks like on a node.
| | 01:30 | I'll just add new content and just say
it's an article and just say Test node.
| | 01:35 | It doesn't really matter what it says.
Scroll down to the bottom. It's going to be
| | 01:39 | on the front page. Then we'll say
Save and go back to our front page.
| | 01:44 | Now, as I hover over this one we see
our link control we can actually go in and
| | 01:48 | edit or just simply delete that node.
| | 01:50 | Now I want to mention that only shows
up when you're looking at the node in a
| | 01:54 | list view such as on the front page.
| | 01:56 | If I were to go to the node itself we would
just have to click on the View or Edit tabs.
| | 02:00 | I'm going to go back to that front
page and just quickly delete this.
| | 02:06 | Done! Contextual link controls are a
simple little trick, but what's important
| | 02:12 | is that the code that makes the
impossible is actually built into Drupal's core.
| | 02:17 | That has a bigger implication then you
see here because it means that people who
| | 02:20 | develop modules for Drupal, and there are
a lot of such people out there, can take
| | 02:24 | advantage of these contextual controls.
| | 02:27 | The upshot I think is that as time
goes by a lot of modules are going to have
| | 02:30 | the same sort of point and click
convenience that this little widget offers.
| | 02:34 | And that's going to make Drupal much
more accessible to the public as a whole.
| | Collapse this transcript |
|
|
3. Themes and ModulesBuilding with new themes| 00:00 | Let's face it.
| | 00:01 | The first thing that people notice
about your site is its graphic design.
| | 00:05 | Lots of Drupal sites just stick with
the default theme, which in Drupal 6
| | 00:09 | was called Garland.
| | 00:10 | I'll show it you right here.
| | 00:11 | I'm sure it looks familiar
if you have used Drupal 6.
| | 00:14 | It's a good design but it's getting
kind of dated, especially since so many
| | 00:18 | people use it and it doesn't have some
of the flourishes that people expect in a
| | 00:22 | web design these days.
| | 00:23 | For example, take a look at this menu
links style. It's just a very bare effect
| | 00:28 | as you rollover your cursor.
| | 00:30 | Let's look at some of the
other themes offered with Drupal 6.
| | 00:32 | To get there you go to
Administer > Site Building and Themes.
| | 00:37 | As you scroll down you see that
there are Blue Marine, Chameleon, Marvin,
| | 00:41 | Minelli, and Pushbutton and they're
likewise not so bad but they are kind of
| | 00:45 | drab in modern terms.
| | 00:47 | These were all actually holdovers from
Drupal 5. There was nothing new in Drupal
| | 00:50 | 6 and three of these themes were in Drupal 4.
| | 00:54 | So it was definitely time for a change.
| | 00:56 | So let's take a look at Drupal 7.
| | 00:58 | Drupal 7 has a new primary theme,
which is called Bartik, after the early
| | 01:02 | programmer Jean Bartik who worked on
ENIAC. It looks a lot like Garland but it has
| | 01:07 | some small changes that bring it upto
date and by the way Garland is still
| | 01:10 | available even if it's not enabled by default.
| | 01:13 | I can show you one of these small
changes by adding a little bit of content
| | 01:17 | and I'll just create a Junk node and
scroll to the bottom and add it as a menu
| | 01:22 | link called Junk node.
| | 01:24 | Now you'll notice when I rollover,
it just underlines there but if I go to the
| | 01:28 | Homepage it actually lights up and
rolls-over as well so you have a nice little
| | 01:33 | bit of modern effect there.
| | 01:34 | I am just going to
delete that node now, like so.
| | 01:39 | So that's the default theme. Now let's
look at how you manage themes in Drupal 7.
| | 01:43 | To do so click on Appearance and you'll
notice immediately something new at the
| | 01:47 | top, Install new Theme.
| | 01:49 | That's a great feature and I'll show
you how it works in the video "Installing
| | 01:52 | themes and modules." Also new in
Drupal7 are these tabs up here at the top.
| | 01:57 | The Settings tab is familiar to you.
| | 01:59 | That's how you change the global
settings, which affect all themes.
| | 02:02 | In Drupal 6 you got there by clicking
Configure. This Update tab lets you update
| | 02:06 | themes directly through Drupal's
interface. You don't have to mess around on the
| | 02:09 | Web server anymore to add a theme and
we'll show you how that works in the video
| | 02:13 | "Updating themes and modules."
| | 02:16 | But let's go back to our list now.
| | 02:18 | At the bottom we have some Disabled
Themes and then below that we have an
| | 02:22 | Administration theme.
| | 02:23 | The Administration theme is why you see
a different interface when you look at
| | 02:27 | administration pages as opposed to the
main site that a visitor would see, and
| | 02:32 | if you wanted to, you could change it
so that you also saw that in the default
| | 02:35 | theme or Bartik are any of the others.
| | 02:37 | I am going to just switch over to
Garland and make that our default theme and
| | 02:40 | compare that to the Garland in Drupal
6 because there is a small difference.
| | 02:44 | I click Enable and set Default and
then close out the Administrative Overlay,
| | 02:48 | and here we are at Garland.
| | 02:50 | Let's take a look at Garland on
Drupal 7 as opposed on Drupal 6.
| | 02:54 | It looks very much the same. Here it is
on Drupal 7 and here it is on Drupal 6.
| | 02:59 | There is a difference though when
you go into Appearance and change the
| | 03:02 | settings you now have a choice of
making it either Fluid Width theme or a Fixed
| | 03:07 | Width theme and if we change it to Fixed Width
and then save, you see exactly what that means.
| | 03:12 | Instead of being able to make this
center area larger and smaller, it stays the
| | 03:16 | same size, which is good if you
have a design that calls for that.
| | 03:20 | Another change between 6 and 7 is there
is no longer a mission statement in themes.
| | 03:25 | So at the top of the screen here we
have the Title and then we have an optional
| | 03:29 | Slogan below that but we don't
have another line in addition to that.
| | 03:33 | You would see that in Drupal 6 by
going to Administer > Site Configuration and
| | 03:38 | Site Information and there is your
Mission. It's no longer in Drupal 7 and that
| | 03:42 | affects how your theme appears, of course.
| | 03:44 | Now let's talk about the other theme
that's new in Drupal 7, which is called,
| | 03:48 | interestingly enough, Seven.
| | 03:50 | To get there, of course, you click
on Appearance and scroll down and I'll
| | 03:54 | make that the default.
| | 03:56 | Once we close our administrative window
you then see your site just the same way
| | 04:00 | that you saw the administrative interface.
| | 04:01 | If we go back Home you see it's
actually quite dull, I am going to change it
| | 04:05 | back to Bartik, but of course we'll
still have Seven as our Administrative
| | 04:08 | theme, and there we are.
| | 04:11 | The final theme that's new in Drupal
7 is called Stark and it's not a theme
| | 04:16 | that you would want to use just by
itself. It's listed down here at the bottom
| | 04:19 | as a disabled theme.
| | 04:21 | The real reason that it exists is as a
base for other themes that you're going
| | 04:25 | to build. I'll go ahead and enable it,
just so you can see what it looks like
| | 04:29 | and close the Administrative Overlay.
| | 04:31 | It's just a little bit of layout and
really no text styling at all. As I say,
| | 04:36 | it's something only to be used for
building your own themes, and then I'll just
| | 04:39 | switch it back to Bartik.
| | 04:43 | Now I have saved the best part for last.
The new themes, Bartik in particular,
| | 04:47 | have a lot of block regions.
| | 04:51 | You might remember in Drupal 6, if you
go to Administer > Site Building and Blocks
| | 04:56 | you see these regions header, right
sidebar, left sidebar, content and footer,
| | 05:00 | and that's pretty much all that you get.
| | 05:02 | Well, take a look at what you get in
Bartik. To do that we go to Structure and
| | 05:06 | Blocks and Demonstrate block regions.
| | 05:09 | Look at that. Header is this featured
thing up here. If, for example, you're
| | 05:13 | running a newspaper site and there is a
big store, you can just splash it right
| | 05:16 | at the top of the page.
| | 05:18 | Sidebar first and second, much like
left and right before, a highlighted
| | 05:23 | area, Help and Content.
| | 05:24 | The help area is now a block area so
instead of only having help information
| | 05:29 | there you could put all sorts of things there.
| | 05:31 | Then at the bottom you have all of
these column options. It's really wonderful.
| | 05:35 | So that's a lot of changes but remember
these are only the themes that come with
| | 05:38 | core Drupal. If you use Acquia Drupal,
which we discuss in another video in the
| | 05:43 | series, you get even more themes.
| | 05:46 | And then we should find some URLs. I'll
just type these up here so you can see
| | 05:49 | what they are, drupal.org/projects/
themes. So that's one it'll be flown in.
| | 05:56 | The other one is going to be themegarden.org
and I am just going to close those windows.
| | 06:03 | And as always you can download a
huge number of free themes from
| | 06:07 | drupal.org/projects/themes and
you can see demonstrations of them
| | 06:12 | at themegarden.org.
| | Collapse this transcript |
| Reviewing the new and modified modules| 00:00 | Some of the changes to core modules in
Drupal 7 are sort of behind the scenes.
| | 00:05 | Unless you compare the list of modules
in Drupal 6 to that of Drupal 7 you might
| | 00:09 | not notice that there's
anything different at all.
| | 00:11 | So, we are going to do exactly that. First
thing we have to do is go to the modules page.
| | 00:15 | In Drupal 7 you do that by
clicking Modules and in Drupal 6 you click
| | 00:19 | Administer > Site Building and Modules.
| | 00:22 | The first thing, you notice when you
look at this list is in Drupal6 there
| | 00:26 | are two groups: Core-optional, which
I'll close, and Core-required, which I'll
| | 00:30 | open by clicking on it.
| | 00:32 | There are five modules in Core-required,
which in Drupal 7, they're still there,
| | 00:36 | but they don't show up in a
separate group. Instead it's all just Core.
| | 00:40 | What Drupal 7 does instead is it
puts required by:Drupal next to it.
| | 00:44 | You'll notice that some modules such as
Comment are required by other modules,
| | 00:48 | like Forum, where some are
simply required by Drupal as a whole.
| | 00:51 | Let's do a search for those, required by:Drupal.
| | 00:57 | Most of the ones that we will find have
to do with fields, that is being able to
| | 01:01 | add fields to entities such as Content
Types and Profiles and Taxonomies. You'll
| | 01:07 | learn all about those in the
video "Adding fields to content types."
| | 01:11 | This one field is one of those.
| | 01:12 | Field SQL Storage is another one.
| | 01:15 | Filter has to do with Content Text Filtering,
| | 01:18 | filters required by Drupal. This is
very much like Text Formats in Drupal 6.
| | 01:22 | List is another one that has to do with
fields. Node is one that was required in
| | 01:25 | Drupal 6. Number has to do with fields.
Options has to do with fields and so on.
| | 01:30 | Most of them have to do with fields.
| | 01:32 | System is one that was required in
Drupal 6 and Text is another field one,
| | 01:36 | User required in Drupal 6 and then
we're back at the beginning again.
| | 01:40 | Let's start going down the list.
I'm not going to mention those that are the
| | 01:43 | same in Drupal 6 and Drupal 7. Instead
I am only going to call out those that
| | 01:48 | are either new in Drupal 7 or have
disappeared or have moved in some interesting way.
| | 01:53 | First we'll start with the ones that
have disappeared. Two that were in Drupal 6
| | 01:56 | but are not in Drupal 7, I am going to
open this Core-optional group again, are
| | 02:00 | Blog API and Ping down here.
| | 02:04 | You could find out more about both of those
in the video about things that disappeared.
| | 02:08 | In Drupal 7, as we go down, we
have a new one here, Contextual Links.
| | 02:12 | you can find out about that in the
video about contextual link controls.
| | 02:16 | Going down just one more. We have Dashboard.
| | 02:18 | That's also a new feature in Drupal 7
and I have a video about that in the
| | 02:22 | series about the Dashboard.
| | 02:23 | We've already mentioned all of the
ones regarding fields and I told you about
| | 02:27 | Filter which was formerly Text Formats.
| | 02:30 | Then as we come down a
little bit more. We come to Image.
| | 02:33 | Both Image and File up here have to
do with the new image system, which is
| | 02:38 | really great. It lets you put images
and content much easier than you were able
| | 02:41 | to in Drupal 6 and you can learn about that
in the video about using images and content.
| | 02:47 | Scrolling down further in Drupal 7 we
have this Overlay module. We have a video
| | 02:52 | about that as well about
Using the administrativeoverlay.
| | 02:56 | Just below the Overlay module is Path.
| | 02:58 | Now Path also existed in Drupal 6 but
what was interesting as it wasn't checked
| | 03:02 | then but it is checked in Drupal 7.
| | 03:05 | What people found out was that everybody
always checked the Path module. This is
| | 03:09 | the one that lets you say, for example,
your domain name/whatever the title of
| | 03:14 | the node is as opposed to
/node/6 or whatever it is.
| | 03:17 | It basically turns your URLs into
something more readable, which is great for
| | 03:21 | search engine optimization.
| | 03:22 | Going down further in Drupal 7 we
have RDF. RDF stands for Resource
| | 03:27 | Description Framework.
| | 03:29 | RDF adds context to data on your site.
It basically makes your site more
| | 03:34 | readable by other machines.
| | 03:35 | It's a very interesting system which
I'm afraid is a little bit more complex
| | 03:39 | than I can get into now but if you want
to learn more see Drupal.org/node/443824
| | 03:46 | for an excellent description
of what it is and how it works.
| | 03:50 | As you go to a further, much like the
Path module the Search module is now
| | 03:54 | highlighted by default.
| | 03:55 | This is why when you first install
Drupal 7 you get a search box which you
| | 03:59 | didn't get in Drupal6.
| | 04:00 | It was easy enough to add in
Drupal 6. You just added the module.
| | 04:03 | But in Drupal 7 since they found that everyone
was using it they just turned it on by default.
| | 04:08 | Going down a little further we have
this Shortcut module and you learned about
| | 04:11 | that in the video about
the toolbar and shortcut bar.
| | 04:14 | As we scroll down a little bit
further we get one of my favorite modules,
| | 04:17 | the Testing module.
| | 04:18 | Now unless you're developer, chances
are you'll never use this module.
| | 04:22 | We'll talk about what exactly it does in
videos later in this course about development.
| | 04:28 | But basically it lets module developers
check their code and it really improves
| | 04:32 | the quality of it. It runs automated
tests against the code that they write so
| | 04:36 | that the Drupal platform in general is
going to be a lot more stable because it
| | 04:39 | will be easier to make it stable, and
we can thank the Testing module for that.
| | 04:43 | Continuing down we have the Toolbar.
As I mentioned that's sort of grouped with
| | 04:46 | the shortcut bar and we cover that in a
video on the toolbar and shortcut bar.
| | 04:50 | The Update Manager is also new.
| | 04:52 | This is a big win in Drupal 7.
| | 04:55 | Basically what it lets you do is
update your modules and themes without ever
| | 04:59 | leaving the Drupal interface.
| | 05:01 | Where as before you had to go and sort
of get at the guts of your server and
| | 05:04 | start messing around with UNIX and so
forth, now you just click a few things in
| | 05:08 | Drupal and it works.
| | 05:09 | I'll be showing you that in the
videos about updating themes and modules
| | 05:13 | Finally, there is one thing missing here which
we had in Drupal 6 which was the Upload module.
| | 05:18 | In Drupal 7, because of some of the
changes having to do with fields,
| | 05:21 | it's simply not needed. It's handled
through what's called the Field API, the same
| | 05:25 | thing that gives us fields and
content and profiles and so forth.
| | 05:28 | Now that I've gone through the list I
do want to mention one other thing about
| | 05:32 | a module that's not part of core but
just about everybody installed it. Or if
| | 05:37 | they didn't install it they had to create a
workaround on their server. It's called Cron.
| | 05:41 | In my earlier course, Drupal Essential
Training, I noted that you had to set up
| | 05:45 | a UNIX program called Cron in order
force certain periodic checks of your Drupal site.
| | 05:50 | If you couldn't set up that
program or you didn't want to could use a
| | 05:54 | module called Poor Man's Cron instead.
| | 05:56 | Well, I never liked having to deal
with either of those and I'm really happy
| | 05:59 | to say that you don't have to Drupal 7 because
a Cron-like function is now built into Drupal.
| | 06:05 | To modify it, click Configuration and
you have a choice here, Cron. Click that.
| | 06:10 | You can change how often it runs or just
make it run right now by clicking Run Cron.
| | 06:14 | I know there was a lot to swallow, all at once.
| | 06:17 | I find that looking over the Module
page is a good exercise though for
| | 06:21 | everyone getting familiar with Drupal
or in this case getting familiar with the
| | 06:24 | new version of Drupal.
| | 06:25 | That's especially true in Drupal 7
because as you click the Modules page and go
| | 06:29 | down here you see that many of them
have this Configure link right next to it.
| | 06:33 | So anything that's new you can just
click Configure, or Help for that matter,
| | 06:36 | and find out more about it.
| | Collapse this transcript |
| Installing themes and modules| 00:00 | I think that one of Drupal's biggest
barriers for many users has been that it's
| | 00:04 | demanded a fairly high level
of system administration skills.
| | 00:08 | Getting Drupal installed is the
first hurdle. Then if you want to add any
| | 00:12 | modules or themes, you have to go back
to the server and mess around with UNIX
| | 00:16 | commands and all that.
| | 00:17 | Even if you're already a UNIX wizard,
you might not have sufficient permission
| | 00:21 | to use the commands on your server.
And so with earlier versions of Drupal,
| | 00:24 | you're pretty much stuck.
| | 00:26 | But Drupal 7 let's you perform some
of the most important tasks through the
| | 00:30 | Drupal interface itself.
| | 00:31 | After Drupal is installed you
almost never have to touch the server.
| | 00:35 | This video will show you how to install new
themes and modules using these techniques.
| | 00:39 | You can still install them the old way,
but after you see the new way I think
| | 00:42 | you'll agree it's much, much easier.
| | 00:45 | Now the procedure you're going to see
is the same for both themes and modules.
| | 00:49 | They are both quick, so
we'll go through both of them.
| | 00:51 | First, we'll start with themes.
| | 00:52 | Go up to Appearance, and of course,
as you know, you see the list of themes
| | 00:55 | here, enabled ones at the top
and disabled ones at the bottom.
| | 00:59 | Up at the very top, we see this line
"Set and configure the default theme for
| | 01:03 | your website" or
"Alternative themes are available."
| | 01:05 | If you click that Alternative themes,
and I am going to do this in a new tab,
| | 01:09 | then you see the theme page for Drupal.
| | 01:11 | I am going to filter for Drupal 7
compatibility, since you can only use Drupal 7
| | 01:15 | themes with Drupal 7.
| | 01:16 | So, I do that and Search, and there we go.
| | 01:20 | We now have a selection of Drupal 7 themes.
| | 01:22 | Since I'm making this before Drupal 7
has actually been released though, a lot
| | 01:26 | of these themes are in developer stage
and I've looked through many of them and
| | 01:29 | they're not quite working.
| | 01:31 | There is one in particular toward the
bottom of the screen here that I know does work,
| | 01:34 | so I am going to use that for my example.
| | 01:36 | It's called Corolla, and it's way down here.
| | 01:40 | Now, with Drupal 7 you could click
Download and put it on your local machine
| | 01:44 | and then put it on your server, or you
can actually download it directly into
| | 01:48 | Drupa, and I'll show you how to do that.
| | 01:50 | I am going to right-click on Windows
or Ctrl+Click on Mac to bring up this
| | 01:54 | contextual menu and say Copy
Link Location for the Download link.
| | 01:58 | Then I'll switch back to Drupal 7
and here I click Install new theme.
| | 02:03 | I have a choice now of either uploading
the file I downloaded, if I downloaded
| | 02:07 | it somewhere, or I can
install it directly from a URL.
| | 02:11 | So, that's what I'll do.
| | 02:11 | I'll paste in the URL that I just
grabbed and say Install, and that's it.
| | 02:16 | There is one strange thing right
now, which is that it takes away the
| | 02:19 | administrative overlay when
you install a theme this way.
| | 02:22 | That maybe changed in later
versions by the time you see this.
| | 02:25 | But for now I want to switch to that
theme, so I'll go to my administration
| | 02:28 | pages and then go to Appearance.
| | 02:31 | Then when I scroll down, I'll see
Corolla right there. Very often they
| | 02:35 | are installed disabled.
| | 02:37 | So you'll want to look for it both
in the enabled and the disabled area.
| | 02:40 | I say Set default, and now I have
my new theme when I go back to my
| | 02:44 | homepage, and that's it.
| | 02:46 | Corolla has now been installed.
| | 02:48 | I am just going to switch it back to
Bartik, since we don't really need to leave
| | 02:51 | it that way for the rest of the course.
| | 02:53 | There is one thing you should know.
Although you can install themes this way
| | 02:57 | and you can disable themes this way, as I
will do right now by just saying Disable here,
| | 03:02 | you can't actually delete them off the server.
| | 03:04 | For that, you still have to go onto the
server and pull off the files themselves.
| | 03:10 | This technique installs modules and
themes into the All folder, so they're
| | 03:14 | available for all of your Drupal
sites in a multi-site installation.
| | 03:18 | If you only want them available to
specific sites, you'll have to do that
| | 03:21 | manually on the servers
using the old-fashioned method.
| | 03:25 | I'll show you how to do that.
| | 03:26 | First, I'll switch back to my
desktop where I have Drupal 7 installed.
| | 03:30 | So, here's our Drupal-7 folder. I'll
open that up and look in sites and all,
| | 03:36 | and there's our theme.
| | 03:36 | Now, if I actually want to delete it,
I would just drag it to the trash.
| | 03:39 | But as I said you could also put it in
a specific site if you want, by putting
| | 03:43 | it in that particular folder.
| | 03:45 | Now, we are going to try
the same thing with modules.
| | 03:47 | For that I'll switch back to my
website and from there I'll click on Modules.
| | 03:52 | You see in the Modules page the same
thing that you saw in the Appearance page.
| | 03:56 | You have this link to contributed
modules, which I am going to open this again
| | 03:59 | in a new tab, will show you all of the
modules that are available for Drupal.
| | 04:04 | Again, you can filter by compatibility,
so we'll just see the 7.x modules.
| | 04:09 | I am going to install one of these.
| | 04:11 | First, I'll find one that I know is
stable already and the token is fairly
| | 04:14 | simple and it's stable.
| | 04:16 | So, instead of doing the direct
download into Drupal, I am going to download it
| | 04:20 | as a file this time.
| | 04:21 | So, I click on Download and
Save File and then close that.
| | 04:25 | Now, I go back to my download area, which
is my desktop in this case, and there it is.
| | 04:31 | Now if I go back to my site,
here we are, Drupal 7 New Features, and
| | 04:34 | click Install New Module.
| | 04:36 | I could then upload it by clicking
Browse and going back to my download area,
| | 04:39 | which in my case again is the
Desktop, and Install, and there we go.
| | 04:44 | Then if we go to our
Administration pages and again to Modules,
| | 04:47 | we can scroll down and see the
Token module that we just installed.
| | 04:51 | I won't turn it on since we won't be
using it for the rest of the course.
| | 04:54 | Finally, I want to mention a place you can
go to install either a module or a theme.
| | 04:59 | Just click on Reports and Available
updates, and here you have a choice of
| | 05:03 | installing either a new module or a theme.
| | 05:06 | Drupal is clever enough to figure out
whether you want to install one or the
| | 05:09 | other and will put it in the correct place.
| | 05:12 | If you're used to installing themes
and modules the old way, I think you'll
| | 05:15 | agree that this is much easier, and
Drupal's developers really deserve a lot of
| | 05:19 | credit for making it work.
| | 05:21 | If you've never installed themes and
modules the old way and you're curious
| | 05:24 | about all the pain you're missing out on,
you can relive it all by watching the
| | 05:28 | videos in Drupal 6 Essential Training,
named "Finding and Installing A New
| | 05:32 | Theme" and "Unpacking and Installing Modules."
| | Collapse this transcript |
| Updating themes and modules| 00:00 | Drupal can be a harsh mistress.
| | 00:02 | A plain HTML website has a lot less
functionality than a Drupal site, but at the
| | 00:06 | same time there is a lot less that can go wrong.
| | 00:09 | So Drupal and all its supporting
modules undergo a constant process of bug
| | 00:14 | fixing, security
tightening, and general revision.
| | 00:17 | Unfortunately, a lot of Drupal
administrators don't bother to keep up on the
| | 00:21 | latest versions, probably because up
until now, you had to know a fair amount
| | 00:25 | about server administration
just to update your modules.
| | 00:28 | In the video "Installing themes and
modules," I showed you how Drupal 7
| | 00:31 | introduced a new way to install new
themes and modules through Drupal's
| | 00:35 | web-based interface.
| | 00:37 | Now, I'll show you how it let's you
update those themes and modules through a
| | 00:40 | very similar process.
| | 00:42 | First, I'll show you how Drupal lets you
know that a module needs to be updated.
| | 00:46 | Now, when I am clicking around in my
administrative interface, eventually I'll
| | 00:49 | see a notice like this,
"There are updates available."
| | 00:52 | And then it will say, "See
the available updates page."
| | 00:55 | And fortunately, you can just click
there and it takes you right to it.
| | 00:58 | Now, before I started making this video,
I installed an old version of Token, so
| | 01:02 | I knew that it would catch this.
| | 01:04 | It says, yes, Token needs to be updated.
| | 01:06 | If you want to read what's new in it,
you can click on this and in fact I'll
| | 01:09 | just right-click, so we can see what is.
| | 01:11 | I opened it up in a new tab and there
this lists all of things that's new in
| | 01:15 | this version, over the
one that I have installed.
| | 01:17 | Let's go back to our site now.
| | 01:19 | You also have this link here, which
will lead you back to the project page, and
| | 01:23 | again I'll open that in a new tab.
| | 01:25 | Just in case you want to read up with
what exactly it is you're updating, that's
| | 01:28 | useful especially if you have dozens
and dozens of modules or somebody else
| | 01:32 | created the site and you're not
really sure what everything actually does.
| | 01:36 | Let's go back to our site
and I'll actually update this.
| | 01:38 | All you have to do is check this
box and click Download these updates.
| | 01:43 | If you had a number of these, you could
just click this box at the top and all
| | 01:46 | of them would be selected.
| | 01:48 | Click Download these updates.
It goes through the process.
| | 01:51 | Before it actually installs the update,
it warns you that you have to back up
| | 01:56 | your database and site.
| | 01:57 | If you need to learn how, of course,
you can open this up and it will walk you
| | 02:00 | through the whole process.
| | 02:01 | I think this is a wonderful idea,
because so many people will download things
| | 02:05 | and install them without really
knowing what's going on and without taking
| | 02:08 | the proper precautions.
| | 02:10 | If you don't want to go through
reading the whole process on how to properly
| | 02:13 | backup your database and site, you can
also learn through my Drupal Essential
| | 02:17 | Training course here on lynda.com.
| | 02:19 | For us, I am just going to click Continue
and it goes through the whole process.
| | 02:24 | Now, before we finish we
should still run database updates.
| | 02:28 | This is something that
hasn't changed since Drupal 6.
| | 02:31 | Every time you update something
on your Drupal site, you should run
| | 02:34 | this database update.
| | 02:35 | You can click that link or just as
before, you can go up to the address bar
| | 02:39 | and type in update.php.
| | 02:42 | And as before with Drupal 6, only the
administrator can do that or somebody who
| | 02:46 | has the appropriate permissions.
| | 02:48 | I'll go ahead, it gives me the usual
warnings, click Continue, and it's done.
| | 02:53 | Then we go back to our frone page,
and if we go to our Modules page and
| | 02:56 | scroll down to that module, which
you'll remember is Token, we see that it's
| | 03:00 | been updated to alpha2.
| | 03:01 | Now, I won't go through the same
process for updating this theme, since it's
| | 03:05 | really exactly the same.
| | 03:07 | But I do want to mention one caveat.
If you've made any modifications directly
| | 03:12 | to your module or theme, remember that
they'll be wiped out when you overwrite
| | 03:16 | them with the new version..
| | 03:17 | That's the same as with Drupal 6 in
previous versions, but I think it bears repeating.
| | 03:21 | It's also why good Drupal programming
practices, such as modifying.info files on
| | 03:26 | customized modules and so forth, are
as essential as always and you can find
| | 03:30 | those out on the drupal.org website.
| | Collapse this transcript |
|
|
4. ContentCreating and administering content| 00:00 | There has been no big changes in how
you create content between Drupal 6 and
| | 00:04 | Drupal 7, but there have been a number of
small changes and they add up to a lot.
| | 00:10 | So, let's take a look at them.
| | 00:11 | The first thing is what it's called
when you create content. In Drupal 6, we
| | 00:15 | have Create content, whereas in Drupal 7,
we've either Add content or Add new content.
| | 00:21 | The second thing you notice is the names of
the two basic content types are different.
| | 00:26 | In Drupal 6, they were Page and Story, whereas
in Drupal 7, they're Basic page and Article.
| | 00:31 | Let's create a basic page in both Drupal
7 and Drupal 6, and walk for it quickly
| | 00:36 | through the changes on
the Content creation page.
| | 00:40 | Starting at the top in Drupal 6,
we have the Title, Menu settings and Body.
| | 00:44 | I always thought that Menu settings were
sort of strangely placed, and in fact,
| | 00:48 | that's been fixed in Drupal 7.
| | 00:49 | Now we have the Title and Body right up
here at the top and Menu settings is at
| | 00:54 | the bottom in this new
area called vertical tabs.
| | 00:57 | I'll come back to those in just a minute.
| | 01:00 | Continuing down in Drupal 6, we see
Input format and we have two options,
| | 01:05 | Filtered HTML and Full HTML.
| | 01:08 | Drupal 7 added a third one called Plain
text, and it also changes a little bit
| | 01:13 | the way that you see these.
| | 01:14 | Drupal 6, it takes up a lot of
vertical space and you have to click this tab
| | 01:18 | in order to show it.
| | 01:19 | That's because it explains what each of
these things is underneath the thing itself.
| | 01:23 | In Drupal 7, as you change this,
it has a nice little bit of JavaScript that
| | 01:28 | changes it right in front of you.
| | 01:31 | Continuing down to the bottom, we have the
vertical tabs, which I think are a wonderful thing.
| | 01:36 | The Menu settings as I say are pretty
much as before, except again, they have a
| | 01:39 | little bit of JavaScript magic, so you
only see the options when you click to
| | 01:43 | show that you want to
add a menu to this content.
| | 01:46 | Revision is pretty much the same.
URL path settings is the same as in Drupal 6,
| | 01:51 | if you turn on the path module.
| | 01:53 | The difference here is that in Drupal
7, the path module is on by default,
| | 01:56 | whereas in Drupal 6 it was off by default.
| | 01:59 | Comments in Drupal 7 have
been simplified quite a bit.
| | 02:03 | In Drupal 6, I found them
somewhat confusing to be honest.
| | 02:07 | You had Disabled, Read-only and Read/
Write and then there were additional
| | 02:10 | settings in the content type and so on.
| | 02:13 | In Drupal 7, they've gotten rid of
that particular nomenclature and now it's
| | 02:17 | just Open or Closed, and looking at the
content types you can see exactly what
| | 02:21 | that means a little bit better.
| | 02:23 | Authoring information is the same and
Publishing options are the same for both
| | 02:27 | Drupal 6 and Drupal 7.
| | 02:28 | Now, I'd like to show you
the other basic content type.
| | 02:32 | On Drupal 7, it's called Article,
whereas on Drupal 6, it's called Story.
| | 02:38 | Scroll up and change Create content
to Story, go back here one page, and
| | 02:43 | change it to Article.
| | 02:45 | Now again, you won't see very many
differences. This is a lot like Story was in
| | 02:49 | Drupal 6, but there are some
important and interesting ones.
| | 02:53 | We have this Image place here where you
can actually add an image to your article.
| | 02:57 | This is a big change, because as you
remember from Drupal 6, it was difficult to
| | 03:01 | add images into your content.
| | 03:03 | In this case, it's being
added as a separate field.
| | 03:06 | Then in Drupal 7, you also have
a place where you can add tags.
| | 03:09 | I'll show you how all this works by
creating a node. I'll call this title
| | 03:14 | Beautiful Lake Tahoe, and the body
will be "it's a wonderful place to visit."
| | 03:24 | We'll add an image, and I've
put this one on my desktop.
| | 03:27 | Let's go the Desktop, scroll down,
and add lake-tahoe and Upload.
| | 03:34 | There we see a little thumbnail. This
is a nice little bit. It actually changes
| | 03:39 | your graphic into various sizes once
you've uploaded them, and we'll talk more
| | 03:43 | about that when we get to
talking about images and content.
| | 03:46 | Then finally for tags, I'll just say,
lake tahoe, california, nevada, beauty,
| | 03:54 | nature, and scroll to the bottom and save.
| | 03:57 | And as you can see, it puts your
graphic in this larger size in the
| | 04:01 | node itself, even though you saw the
thumbnail earlier and at the bottom we have tags.
| | 04:05 | Just as with Drupal 6, if you would
have clicked on one of these tags.
| | 04:08 | It would take you to a page with
all the stories that were so tagged.
| | 04:11 | Now, where exactly are those tags coming from?
| | 04:14 | We can see them by going up to
Structure and down to Taxonomy, and you see that
| | 04:18 | there's a pre-created vocabulary
called Tags, and if we list the terms, there
| | 04:23 | they are, just as Taxonomy worked in Drupal 6.
| | 04:26 | Now, let's talk a little bit
about how content is managed.
| | 04:30 | We click Content and on Drupal 6, you
might remember you had to actually click
| | 04:34 | Administer, Content Management, and
Content. You had three clicks together.
| | 04:38 | It's basically the same screen, but
on Drupal 7, it's much easier to reach.
| | 04:42 | One other difference is that in Drupal 6,
we had Administer, Content Management,
| | 04:47 | and then Comments was a
separate page from Content.
| | 04:51 | On Drupal 7, you see that as a little
tab up here as part of the Content page.
| | 04:56 | Once you're there by the way,
you have a separate sub-tab for
| | 04:59 | Unapproved comments.
| | 05:01 | Looking at all of these content changes,
I think the biggest one is the Article
| | 05:05 | content type, which has both tags
and images available by default.
| | 05:09 | That's actually something made easy by
changes in how Drupal stores fields and
| | 05:13 | we'll be talking more about that in the "
video "Adding fields to content types.
| | 05:18 | But even without that, the interface
changes, such as the use of vertical tabs,
| | 05:21 | rather than disclosure links,
really makes content a lot easier to work
| | 05:25 | within Drupal 7.
| | Collapse this transcript |
| Adding fields to content types| 00:00 | In Drupal 6, if you didn't have the
module CCK or Content Construction Kit,
| | 00:05 | you essentially had to make do with the
basic Story and Page Content types.
| | 00:10 | You could add others, but you
couldn't have any fields to them.
| | 00:13 | For example, for an image or a
product price or a street address.
| | 00:16 | Drupal's developers took the hint and
the bulk of CCK is now part of Drupal core.
| | 00:21 | The whole thing is not there, but
rather its fundamental parts have been
| | 00:25 | abstracted and added in, and
what's now called the Field API.
| | 00:30 | Because the way Drupal 7 handles fields
is an evolution from CCK, we'll compare
| | 00:35 | it to Drupal 6 with CCK
installed and all of its modules enabled.
| | 00:39 | Remember though that almost none of
what we are about to do is possible in
| | 00:43 | Drupal 6 without CCK installed.
| | 00:46 | If you've worked with CCK before, this
will all seem pretty familiar in Drupal 7.
| | 00:51 | To demonstrate, we'll create a new
content type in both Drupal 7 and Drupal 6.
| | 00:56 | In Drupal 7, you do that under
Structure and Content types, and in Drupal 6,
| | 01:01 | it's under the Administer,
Content Management, and Content Types.
| | 01:06 | This page looks pretty similar, once
you've CCK installed of course so that
| | 01:09 | you see the manage fields
links over here in Drupal 6.
| | 01:13 | So we'll just create a content type in
both of them, by clicking Add Content Type
| | 01:17 | and we'll walk through this and
call it a Vacation package, doesn't really
| | 01:25 | need a description, and as I mentioned
in the "Creating content" video, we now
| | 01:29 | have these vertical tabs over here on
the left. I am just going to walk through
| | 01:33 | those a little bit right now.
| | 01:35 | First of all, you can change the Title
field label, so instead of being called
| | 01:38 | Title, it might be called Location,
if it's a vacation package for example.
| | 01:43 | You can force people to preview their node
before they actually committed to your
| | 01:46 | site by changing this Preview before
submitting, and you can add submission guidelines.
| | 01:51 | There's nothing new about that in Drupal 7.
| | 01:53 | Publishing options are all
pretty much the same as in Drupal 6.
| | 01:57 | Display settings is quite new, and you
now have the choice on a content type by
| | 02:01 | content type basis as to whether it
should say written by so-and-so on
| | 02:05 | such-and-such a date.
| | 02:06 | I'm going to turn that off for our
content type, as I usually do for most of them,
| | 02:10 | except if they're a news story or
something that I want to have bylined.
| | 02:14 | A blog is a good place for
author and date information.
| | 02:18 | In the "Creating content" video, I sort
of glossed over Comment settings, when
| | 02:22 | you're actually editing a node.
| | 02:23 | That's because most of those
happen in the content type.
| | 02:26 | Click on Comment settings and you can
see the different controls you have.
| | 02:30 | It's actually slimmed down quite a bit from Drupal 6.
| | 02:32 | Let's take a look at those.
| | 02:34 | Scroll down to Comment settings and
you have all of these radio buttons.
| | 02:39 | I always found it quite confusing, so I'm
really very happy that they spent some
| | 02:43 | attention on getting this more understandable.
| | 02:45 | Then we have Menu settings. This is
something new in Drupal 7. You can choose
| | 02:50 | what menus are available to put
nodes of this content type into.
| | 02:55 | That's good because in Drupal 6, when
you created a node, if you want it to
| | 02:58 | put it into a menu, you then saw a list of
every available menu option, which is a huge list.
| | 03:05 | So now you can just say, okay, you can
only add nodes of this type that have
| | 03:08 | links in the Main menu or the
Navigation menu, whichever you like.
| | 03:13 | I'm just going to save this content
type in both Drupal 6 and Drupal 7.
| | 03:17 | So again in Drupal 6, I'll go
up and call it Vacation package.
| | 03:22 | Here we have to type in the type,
which we didn't did in Drupal 7.
| | 03:25 | vacation_package, no description.
| | 03:29 | I'll leave everything else as
it is and say Save content type.
| | 03:33 | Now that we have our content type
set up, we can start adding fields.
| | 03:36 | In Drupal 6 and Drupal 7, it's
pretty much the same. Manage Fields.
| | 03:43 | Now you might have noticed on the previous
screen, we also had a link Manage Display.
| | 03:47 | We'll get to that in just a moment, but
you also see a tab up here for it as well.
| | 03:51 | The first thing that you notice on this
screen, which is different from Drupal 6
| | 03:54 | with CCK, is the Body field is now editable.
| | 03:58 | In Drupal 6, you couldn't really do
anything with it, as you see it's grayed
| | 04:01 | out, but here you can treat it just
like any other field actually, and in
| | 04:05 | fact, you can delete the Body field, so
all you have is a Title and any custom
| | 04:09 | fields that you've added.
| | 04:10 | I'm going to add a field.
| | 04:11 | I'll call it Price, field_ price.
| | 04:15 | The type will be called Decimal and
then it'll just be a Text field and save.
| | 04:21 | I'll do the same thing on Drupal 6,
scroll down. New field is called Price,
| | 04:28 | field type is Decimal and Text field.
| | 04:31 | Most of the settings for a specific
field are pretty much the same and I'm not
| | 04:35 | going to go through all of them.
| | 04:36 | The one thing to notice is the
Drupal 7 sometimes breaks it up into two
| | 04:40 | screens instead of one, which is a
little bit easier, because when you look at
| | 04:44 | Drupal 6 with CCK, you are sometimes
really overwhelmed with all these things
| | 04:48 | and there are things that you have
click in order to see the settings and it
| | 04:51 | goes on and on like that.
| | 04:53 | I'm just going to keep the
default settings in both cases.
| | 04:55 | In Drupal 7, I'll click through and
then again I have to go and click a second
| | 05:00 | time, since it was broken into two screens.
| | 05:03 | There, now we have our custom content
type with a custom field. In both of
| | 05:07 | course, you can move it around and save
it and you can go back and edit it and
| | 05:12 | delete it just as before with Drupal 6.
| | 05:15 | The next different thing is this Manage Display.
| | 05:17 | They exist in Drupal 6 under Display
fields, but it's more flexible now.
| | 05:23 | For one thing, you can set up custom
display settings down here, so that this
| | 05:27 | field will appear differently, whether
it's in full content or in a teaser or
| | 05:31 | RSS, or if it shows up
after being hit with a search.
| | 05:35 | We won't go through those settings, but
as you'll see, when you click any one of these,
| | 05:38 | a new button appears up here
and then you can select exactly what you
| | 05:42 | want with that field in that context.
| | 05:45 | The final thing that's different in
Drupal 7 on the screen is Comment Fields
| | 05:48 | and Comment Display.
| | 05:50 | You can actually change the comments in
response to a node in very much the same way,
| | 05:55 | so instead of just having one big
place where people say, "oh, I think this
| | 05:58 | is great," they can have multiple fields.
| | 06:00 | So how do you rate this, what you
think about it, who have you recommended it to,
| | 06:04 | what sort of person do you
think would be good for, and so forth?
| | 06:07 | And those are handled very
much like the node itself.
| | 06:10 | Once you've created a content type of course,
you might want to see how exactly it works.
| | 06:15 | Well, let's go ahead and add a
node of the type that we just created.
| | 06:18 | We see Vacation package. Click through,
you see Title, Price, Body. Basically
| | 06:23 | from here on edit works
exactly the same as in Drupal 6.
| | 06:26 | You just have more options for
setting up the content type itself.
| | 06:29 | Now, a lot of this video is not
about content types per se. It's about
| | 06:34 | something called Field API, and that actually
goes on much further than we've covered here.
| | 06:38 | We got a taste of its benefits with the
way that you can add fields to a content
| | 06:42 | type, but it's not just for that.
| | 06:44 | User profiles and taxonomies also
benefit from the field API. All of these
| | 06:50 | things are something that are now
called entities in Drupal and they have so to
| | 06:53 | speak equal citizenship and that
you can manipulate them equally well.
| | 06:57 | This is possible because of
something in Drupal 7 called Entity Query API.
| | 07:02 | This is a big deal, even though it's
something that we as administrators might
| | 07:05 | not see. Drupal's creator Dries Buyaert
called the biggest architectural change in
| | 07:09 | the history of Drupal.
| | 07:11 | Now that's a big thing to say,
and he said that in July of 2010.
| | 07:15 | From my point of view as an administrator,
it just feels that Drupal makes more sense.
| | 07:19 | From what I've been told, it wasn't easy
to implement in Drupal 7, and I for one
| | 07:24 | appreciate all the hard work that
Drupal's developers put into making it happen.
| | Collapse this transcript |
| Using images in content| 00:00 | In the video "Creating and
administering content," you saw how Drupal 7 comes
| | 00:04 | with image handling capabilities built-
in which wasn't the case with Drupal 6.
| | 00:09 | Now we are going to take a look at
how exactly it works, for those of you
| | 00:13 | familiar with Drupal 6's image handling
modules, I will give away the secret right now.
| | 00:17 | Basically Drupal 7 incorporates
substantial parts of four modules: image API,
| | 00:23 | image field, image cache and file field.
| | 00:26 | If that doesn't mean anything to you, don't
worry just watch on and it'll all become clear.
| | 00:30 | The first thing I am going to do is
create a content type called Vacation
| | 00:34 | package. This is actually similar to
the one we created in the video, "Adding
| | 00:37 | fields to content types."
| | 00:39 | So if you already started there, go
ahead and use that one but I am going to
| | 00:42 | start it from the beginning again, we
do that by clicking on Structure, Content
| | 00:46 | Types and Add content type. Call
it Vacation package. Don't need the
| | 00:52 | Description, so we will scroll down.
| | 00:54 | I will close up the Comments,
so we don't have any comments.
| | 00:59 | We don't want the display the author
and date information and then just click
| | 01:02 | Save and add fields. Here I will add
two fields. The first one will be called
| | 01:08 | Price and it will be a Decimal field
and save and I'll just leave all of these
| | 01:15 | default settings for that field. There
is more that I have to save here. I will
| | 01:19 | just leave it as default and we
are back at our Add Field screen.
| | 01:24 | Now I will add a second one called Photo.
Field name is photo and the field type
| | 01:29 | in this case is Image.
| | 01:32 | Here we only have one choice, Image,
so I will say go ahead and save.
| | 01:35 | Now I am going to walk through all of
the settings for this. One nice thing with
| | 01:39 | this is that you can define a default
image which is put in before somebody
| | 01:43 | enters something into that particular
spot in a node and that will just show up
| | 01:47 | on every node. But we will just continue
on by clicking Save field settings and
| | 01:52 | then we have more settings here. Going
down you can decide which file extensions
| | 01:56 | to allow, say where the files get stored.
| | 02:00 | You can also have a Maximum resolution,
Minimum resolution, and Maximum upload size.
| | 02:04 | I actually like to check the Maximum
upload size because on some computers, and
| | 02:09 | this is all determined by your PHP
settings, this is an amazingly huge number
| | 02:14 | and you don't really want people
uploading 160 MB files to your computer.
| | 02:19 | I will enable the Alt and Title fields,
which I recommend that you do as well
| | 02:23 | because this makes your graphics more
accessible to people who have difficulty
| | 02:27 | seeing or using screen readers.
| | 02:30 | Then we come down to this interesting
thing, Preview image style, and we have
| | 02:34 | three choices: thumbnail, medium and
large. These are defined through the magic
| | 02:39 | of the image cache module, which was
incorporated into Drupal 7. You can change
| | 02:43 | how those image styles are defined and
add your own and I'll show you that in
| | 02:47 | just a few minutes, but for now,
we'll just leave it as thumbnail.
| | 02:50 | There are some other settings we don't
really have to go into and Save settings.
| | 02:54 | Great we now have Title, Body, Price
and Photo. I will just move those up
| | 02:58 | above the Body and save.
| | 03:01 | Now that we have that let's create a
little bit of content and see how that works.
| | 03:04 | Add content, Vacation package
and we will just say Lake Tahoe vacation.
| | 03:12 | Price is $199. We have a photo. which
I just happened to put on my desktop
| | 03:17 | here, lake-tahoe and for the Body,
we will just say "Come and get it, the
| | 03:24 | water's beautiful!" and save.
| | 03:31 | Now when we scroll down on this page,
we see our Photo, we see our Price,
| | 03:36 | all exactly as we expected it. Let's go back
and talk a little bit about those settings.
| | 03:40 | That thumbnail, medium and large, and
actually we will make some changes, so
| | 03:44 | that this graphic comes up a little
bit different whenever somebody uploads a
| | 03:47 | graphic, we do that by going up to
Configuration and scrolling down a little bit
| | 03:52 | to Image styles. Here they are.
| | 03:54 | Now you could edit these, so instead of
having thumbnail, medium and large,
| | 03:58 | you could add another one or you
change the ones that are built in.
| | 04:01 | I am going to add a style. I am
going to call this desaturate_small.
| | 04:07 | This desaturate_small style is going to make
the graphic smaller than the one that we
| | 04:11 | uploaded and it's going to take away
all of the color. We say Create new style
| | 04:16 | and then scroll down and you see
that you can add effects. I will add the
| | 04:21 | Desaturate one as I said and Add, then
I see it in the list here, then I'll add
| | 04:26 | one more, which is to scale it, and Add.
| | 04:30 | When you add some of these effects,
you get some options I am going to say
| | 04:34 | that I want this to be no larger
than 200 x 200 and I don't want to allow
| | 04:40 | upscaling, which would make smaller graphics be
blown up to that size, and I'll say Add effect.
| | 04:46 | Great now we've created that style and
we have two effects on it. I do want to
| | 04:50 | mention that it matters
which order these are in.
| | 04:53 | In my case I think I wanted to scale
first and then desaturate, so that it
| | 04:57 | doesn't take the black-and-white and
then smush it down. Sometimes you will get
| | 05:00 | unusual effects that way.
Say Update style and we are done.
| | 05:03 | So what if we are done and what
difference does it make? Well, if we go back to
| | 05:07 | our front screen, we see the teaser for
that node and I would like this teaser
| | 05:12 | to have a little graphic on it,
in that new style we created.
| | 05:15 | We can do that by going up to Structure
and Content types and Vacation package.
| | 05:21 | You will remember from the video about
content types that you can change the
| | 05:24 | display just for the teaser or RSS feeds and
so forth and that's what I am going to do here.
| | 05:29 | I am going to change the display and
make it a custom setting just for the teaser.
| | 05:34 | Aha, we already have that. That's great.
| | 05:37 | On the teaser, instead of that photo
being hidden, I am going to change it to
| | 05:40 | being an image and save.
| | 05:42 | When I do that I get this little gear
over here which lets me set some of the
| | 05:47 | options on showing it. Instead of
showing that photo at the original size,
| | 05:51 | I am going to change it to a new
desaturate_small and I'll link it to the node
| | 05:57 | and update and save.
| | 06:01 | Now let's go back to our homepage.
There, now we see that nice little
| | 06:06 | black-and-white picture and when you
click on it, we go through to the bigger
| | 06:09 | picture in the node itself.
| | 06:12 | That shows you how Drupal handles
images as separate fields but I want to
| | 06:15 | mention that the old tricks that you used to
get images into Drupal 6, they still work.
| | 06:20 | You can still add inline images, that
is graphics that are part of a node's
| | 06:24 | content and not stored at all as a
separate field, by uploading the image and
| | 06:29 | then writing HTML to reference it.
| | 06:31 | If you need further help with that,
see the video "Creating your sites basic
| | 06:34 | info pages" in my Drupal 6
Essential Training course.
| | Collapse this transcript |
| Understanding the updated blocks| 00:00 | You know that blocks are containers
for content that can appear in specific
| | 00:04 | block regions of your Drupal layout.
Those block regions are determined by the theme.
| | 00:09 | None of that has changed in Drupal 7.
What has changed is that blocks are much
| | 00:14 | more flexible than they were before.
| | 00:16 | Virtually all content is now blockified
so to speak, so it can move around the
| | 00:21 | page much more freely. Also the
default theme Bartik, which you see here, has a
| | 00:26 | lot more block regions than Drupal 6's
good old Garland and the interface for
| | 00:30 | administrating blocks is easier to use.
| | 00:32 | I will show this first by taking a look
at the block interface in Drupal 7 but I
| | 00:36 | will also go and take a
look little bit in Drupal 6.
| | 00:39 | In Drupal 7 you get there by clicking
Structure and then Blocks. This page is
| | 00:44 | very much like the Block
Administration page in Drupal 6.
| | 00:46 | I will go there by going to Drupal 6,
Administer, Site building, and Blocks.
| | 00:52 | There is one difference. In Drupal 6
you see the block regions on the Block
| | 00:56 | Administration page, Header here,
Right sidebar, Left sidebar and so forth.
| | 01:00 | Partly that's possibly because Drupal 6
didn't really plan to have as many block
| | 01:04 | regions as people have started using.
| | 01:06 | Let's take a look at it in Drupal 7.
You don't see the block regions on the
| | 01:10 | Block Administration page. There's a
good reason for that because when you're
| | 01:14 | administering by default, you not seeing
the theme itself. We are working on the
| | 01:18 | Bartik theme as you can see from this
tab over here, but our administrative
| | 01:22 | overlay is the Seven theme.
| | 01:24 | So to show the block regions we click
right here, Demonstrate block regions.
| | 01:29 | Now we see them in the theme itself
and as you can see there's a lot more.
| | 01:33 | Instead of the five that were
originally in Garland, there are 15 in Bartik.
| | 01:38 | Now the fact that Bartik has 15
block regions isn't really that unusual.
| | 01:43 | Drupal 6 had themes which had 15 block
regions. In fact one of the most popular
| | 01:47 | ones Acquia Marina had 15 and some
of them had even more, but what is
| | 01:52 | interesting is that this theme is
included in core, so suddenly people were just
| | 01:56 | downloading Drupal without any
contributed themes are going to have a lot more
| | 01:59 | flexibility in the way
that they design their pages.
| | 02:02 | To leave this block region
demonstration you just click up here.
| | 02:06 | Now let's take a look at a couple of
new blocks that didn't exist in Drupal 6,
| | 02:10 | One of them is System help and
another one is Main page content. These were
| | 02:15 | things that just showed up in Drupal 6
and you couldn't change where they were.
| | 02:19 | If we go into Drupal 6 and I'll just
go back to our front page, if a Help
| | 02:23 | message were to appear, it would show
up here at the top, sort of right above
| | 02:28 | the content and the content itself
would always be in this middle area here in
| | 02:32 | the Content block region.
| | 02:33 | Well in Drupal 7 you can completely change that.
| | 02:36 | In fact let's go back and do that.
I will close out this. Here we have a little
| | 02:40 | bit of content that's in the Content region.
| | 02:42 | I will go back up to Structure and
Blocks and move the Main page content, let's
| | 02:47 | say to the right-hand sidebar which
is called Sidebar second, scroll to the
| | 02:51 | bottom and save, close it out, there.
Now we could actually start having our
| | 02:56 | content here and if we wanted we could
for example put a big picture here or
| | 03:01 | some feeds or whatever.
| | 03:02 | I'm going to switch it back so it
looks the way that we expect. We go up to
| | 03:05 | Structure and Blocks once again, scroll
down and I put the content back into the
| | 03:10 | Content area and save and it's back
to normal. Let's take a look at the
| | 03:15 | individual block controls. I will
scroll down to one, let's just say Navigation,
| | 03:19 | which is the same between Drupal 6
and Drupal 7 and click configure.
| | 03:23 | I will do the same in Drupal 6.
We go to Administer, Site building, Blocks,
| | 03:30 | scroll down to Navigation and configure.
| | 03:33 | The first thing you will notice in
Drupal 7 is that it's a lot more compact.
| | 03:37 | Again that's because of these
vertical tabs which you know from creating
| | 03:40 | content. The Block title is the same
in both but then we have this Region
| | 03:44 | Settings, which doesn't exist in
Drupal 6. This is really nice because what
| | 03:49 | happened in Drupal 6 is you'd create
the block and then you'd have to go back to
| | 03:52 | the Administration page in order to
decide where to put it, but a lot of times
| | 03:56 | when you create a block you
know where it's going to go.
| | 03:58 | So we just go ahead and
put it there from this page.
| | 04:01 | Now we only have two themes enabled,
Bartik and Seven. If we had more they would
| | 04:06 | all show up here and you'd be able to
say "okay when it's on this theme, I want it
| | 04:10 | in this region" and so forth
for all of the different themes.
| | 04:14 | Going down further, we have our
visibility settings. These were actually pretty
| | 04:18 | complicated in Drupal 6. You see we
have user visibility and a set a controls,
| | 04:22 | role specific visibility, page, and
it took a little bit of figuring out.
| | 04:27 | In Drupal 7 we have all of those in
vertical tabs, so it's much cleaner, and then
| | 04:31 | we have an additional one, Content types.
| | 04:34 | You could actually decide which nodes
you want to display this block. So let's
| | 04:39 | say we have our Vacation package type,
which we created here. This is a Content
| | 04:43 | type and we wanted this block only to
show up when we were shown the Vacation
| | 04:47 | package. We just clicked that and it
just wouldn't appear in the other ones.
| | 04:50 | We'll just say Save block
and get out of that screen.
| | 04:53 | Like so many changes in Drupal 7, the
changes to the block system aren't earth
| | 04:57 | shattering. Rather they are set of
well considered incremental improvements
| | 05:02 | backed by some pretty ingenious programming.
| | 05:05 | I really love the flexibility
that blocks have got in Drupal 7.
| | 05:08 | I think that together with the changes
in the theming system, we are going to
| | 05:11 | see some really interesting
layouts in future Drupal 7 sites.
| | Collapse this transcript |
| Showing the revised menus| 00:00 | Drupal's menu system got a
substantial overhaul in version 7, which is good,
| | 00:05 | because it tended to be
kind of confusing in Drupal 6.
| | 00:08 | If we go up to our Drupal 6 tab
here and go to our menus we click
| | 00:12 | Administer > Site building > Menus,
| | 00:15 | you can see that there are only three
menus by default Navigation, Primary
| | 00:19 | links, and Secondary links.
| | 00:21 | Those three they don't really
mean anything from their names.
| | 00:24 | It's hard to tell what a primary
link is and what a secondary link is.
| | 00:28 | In Drupal 7 however there are now
four menus and we get to that by going to
| | 00:32 | Structure and Menus.
| | 00:35 | Those four menus tend to be better labeled.
| | 00:38 | Main menu, well, that's fairly clear,
Management, Navigation, and User menu.
| | 00:42 | We are going to go through all of
these and show you exactly what's in them.
| | 00:46 | The first one, Main menu, has only one
item in it which we get to by clicking
| | 00:49 | on List Links > Home.
| | 00:51 | Well, that should look familiar to you.
| | 00:53 | If I close my administrative
overlay here, it's this menu up here.
| | 00:57 | In Bartik, items in that menu show up
as tabs which I think is quite nice.
| | 01:01 | Let's go back and take a look at
our menus by clicking Structure > Menus.
| | 01:05 | The Management menu is the big menu that
you see over here on the left-hand side.
| | 01:09 | Now, this is very much like Drupal 6.
| | 01:12 | I'll go to that menu by going to Drupal 6,
click on Navigation, and you see all of the links.
| | 01:18 | This is all of the stuff down here,
which you remember expands as you go.
| | 01:23 | It makes this left side kind of
difficult if you're an administrator.
| | 01:27 | Now, on Drupal 7 a lot of that stuff
has been replaced by the toolbar and other
| | 01:31 | administrative features.
| | 01:32 | But you could in fact make this Administer
menu pop out just as you did in Drupal 6.
| | 01:37 | What you do is you'd go up to
Structure and Menus and then List Links.
| | 01:44 | Over here you could then
expand any one of these.
| | 01:46 | Let's say I wanted to expand the
Administer menu,. Click edit, scroll down a
| | 01:50 | little bit and Show as expanded.
| | 01:53 | By the way, this screen where you
added a particular link in a menu is not
| | 01:57 | really very different from Drupal 6,
so we don't have to go through it.
| | 02:00 | In this case, I'll click Save then go
back to our front page and you will see it
| | 02:04 | expanded my much like in Drupal 6.
| | 02:06 | I am going to go back up
and change it back by clicking
| | 02:09 | Structure > Menus > Management list links and
then back again to that Administer and reset.
| | 02:15 | This is a nice little feature
for any of the built-in menus.
| | 02:19 | You could send it back to its
default configuration by clicking reset.
| | 02:23 | You could also go into edit and uncheck
the box that you just checked, but I'll
| | 02:26 | just say reset, and yes I do want to
lose my customizations and go back.
| | 02:31 | Going back to our full menus list, Structure
and Menus, the last one we have is this User menu.
| | 02:36 | When we list the links we see two items.
| | 02:39 | The first, one although it's says
admin now, it will show the username.
| | 02:43 | It's the thing that we have up here in
the right-hand corner of the screen, admin,
| | 02:47 | and then the other one of course is, Log out.
| | 02:49 | Now, if you do log out then you'll see
something quite different and I'll show you that.
| | 02:54 | It disappears entirely while the logging
block, which is over here, then it pops into play.
| | 02:59 | I am going to just sign
back in again and there we are.
| | 03:04 | This is a case of a menu that's
built-in that sort of contextual.
| | 03:07 | It can tell what's going on.
| | 03:09 | Now some of these menus show up in
specific places based on the theme and
| | 03:13 | enabled modules that don't
have anything to do with blocks.
| | 03:16 | For example, this menu here
shows up also in the toolbar.
| | 03:20 | But every menu that you create also
appears as a block, and I can show that by
| | 03:25 | going to Structure > Blocks.
| | 03:28 | By default, some of them
are placed in specific places.
| | 03:31 | For example, we have a Navigation menu
here in Sidebar first, right above the
| | 03:36 | Management menu and you
saw that just a minute ago.
| | 03:39 | Here, it is the Management menu.
| | 03:41 | The Navigation menu isn't showing up
because there are no links that the
| | 03:44 | administrator would use.
| | 03:46 | There's one other new feature in
menus in Drupal 7 which I think is really
| | 03:49 | neat and we talked about this a little bit
when we showed content creation in this course.
| | 03:54 | Let's go into this node and edit it.
| | 03:56 | I'll just click on our little
contextual menu here and say Edit.
| | 04:00 | Now, this is of the content type
Vacation package. Scroll down to the bottom,
| | 04:06 | and see our Menu settings.
| | 04:07 | Now, you might remember in Drupal 6
if you edited a node and you clicked on OK,
| | 04:11 | which menu do I want this to be in,
you would get this big pop up that would
| | 04:15 | show you all of the menus.
| | 04:16 | And it was really overwhelming.
| | 04:18 | Well, here we only see the Main menu.
| | 04:21 | Well, how does that happen?
| | 04:22 | The answer is it happens in the content type.
| | 04:25 | If we go up to Structure and Content
types and then to edit Vacation package,
| | 04:30 | remember we were just looking at a
node of the Vacation package type.
| | 04:33 | We can scroll to the bottom
and change our Menu settings.
| | 04:36 | Now, we can choose which menus show up when
we're editing a node of that content type.
| | 04:41 | So, let's say that we want to not put
it in Main menu, but instead want to put
| | 04:44 | it in User menu, and Save content type.
| | 04:48 | Now, when we go back and edit that node, we
scroll to the bottom and look at our Menu settings,
| | 04:55 | we have a different group of
options of where we can put it.
| | 04:58 | That makes it a lot more manageable if
you have other people creating content,
| | 05:01 | because this way you won't
have links all over the place.
| | 05:04 | I think Drupal's new menu system is a
lot better, but it's enormous flexibility
| | 05:08 | can add to some of the confusion.
| | 05:11 | The default values are a lot better
than in Drupal 6 and you are not faced with
| | 05:14 | that huge list of mostly irrelevant
choices when you want to create a menu item.
| | 05:19 | The important thing to remember is to go
and edit the content type as I did just
| | 05:23 | a minute ago in order to determine
where people can put links to nodes of a
| | 05:28 | particular content type.
| | Collapse this transcript |
|
|
5. UsersLetting users delete their accounts| 00:00 | Some problems in life are easy to
solve, while some are really hard.
| | 00:04 | You can't always tell the
difference from looking at them.
| | 00:07 | A dirty window could just be a swipe
on the inside with a soapy sponge or you
| | 00:12 | might need to lower
yourself from the roof on wires.
| | 00:15 | The issue of letting users to lead their
own accounts from a Drupal site was one
| | 00:19 | of those deceptively hard problems.
| | 00:21 | It was a feature request
first filed in - wait for it - 2001.
| | 00:26 | 8 years before it was finally solved.
| | 00:28 | In fact, it was node number eight on
the drupal.org web site, which now has
| | 00:32 | almost a million nodes.
| | 00:34 | But they did solve it and it's a
small change in Drupal 7, but it's worth
| | 00:38 | showing off because it
was such a persistent itch.
| | 00:40 | There is one other good reason to show it.
| | 00:42 | In Drupal 6, when you delete a user,
all of the content becomes attributed to the
| | 00:47 | anonymous user, but as you'll see in Drupal
7 you have flexible options for that content.
| | 00:52 | Here, I'll show you. In both Drupal
6 and Drupal 7 I am going to create a
| | 00:55 | new user and I'll call that new user Fishy
Joe with the email address fishy@example.com.
| | 01:05 | Password doesn't really
matter and go down and Save.
| | 01:10 | Again, we'll do the same in Drupal 6.
| | 01:12 | We do that under Administer >
User management > Users and Add.
| | 01:18 | Again, Fishy Joe, email address is
fishy@example.com, there we go, and Save.
| | 01:27 | Great! So we have the new user on both.
| | 01:29 | Now, let's delete that user.
| | 01:30 | We'll go ahead and list it, this is on
Drupal 6 mind you, scroll down, click in
| | 01:35 | the checkbox for Fishy Joe and Delete.
| | 01:38 | It asks of course if we want to
do that and say Delete all. Great!
| | 01:42 | The user's been deleted, but
that's really all that you can do.
| | 01:45 | You can just delete and you don't have
any real choices about what happens with
| | 01:48 | the content that that person created.
| | 01:50 | Now we'll do the same thing in Drupal 7.
| | 01:52 | We've created the user.
| | 01:53 | So now I'll go back in
the list. Select Fishy Joe.
| | 01:56 | Now, you see there is no choice for
delete, because when we say Cancel we will
| | 02:02 | have additional options there.
| | 02:03 | Say, Cancel and Update and here
are all of the options that we get.
| | 02:08 | We can disable the account and keep the
content exactly as it is, unpublish it, and so forth.
| | 02:13 | You can also require the user to confirm
that they really want to cancel the account.
| | 02:17 | We are not actually going to cancel
this one because there are some other
| | 02:20 | things I want to show you with it.
| | 02:21 | But, this shows you the power that you as an
administrator have when you delete an account.
| | 02:26 | But in Drupal 7 you can now
give the user more power as well.
| | 02:30 | To do that you go up to Configuration
and Account settings. Much of this page is
| | 02:34 | similar to Drupal 6,
| | 02:35 | While some other parts of it I'll show
you in other videos, but let's get down
| | 02:39 | to the important part,
registration and cancellation.
| | 02:41 | You notice down here, When canceling a
user account, you have all of those options
| | 02:47 | that you saw in the previous screen.
| | 02:49 | This will be the default option that you set.
| | 02:51 | In other words, if you delete somebody and
don't change what was there, what happens?
| | 02:55 | Another interesting part of it
and the more important part is under
| | 02:58 | this permissions link.
| | 03:00 | Let's click on permissions and
scroll down all the way to User.
| | 03:06 | In the User section, we have
this Cancel own user account.
| | 03:10 | I am going to grant that
to the authenticated user.
| | 03:13 | In other words, every logged in
user such as Fishy Joe, and save it.
| | 03:18 | Now, I'm going to go and log out as the
administrator and log in again as Fishy
| | 03:22 | Joe so you can see exactly what
happens if I decide to delete my account.
| | 03:26 | I'll log out, log in as Fishy
Joe, and my password. Great! I am in.
| | 03:33 | I am going to go my user screen and
Edit and as I scroll down I see that I have
| | 03:39 | a new option, Cancel account, that
wasn't in Drupal 6. I click it.
| | 03:44 | It asks me for confirmation and it's done.
| | 03:47 | Again, it's a small change, but it does
give power to your user and that helps
| | 03:52 | them trust your site more.
| | 03:53 | I didn't mention this earlier, but
letting users delete their own accounts could
| | 03:57 | actually be considered legally
required, depending on how you interpret
| | 04:01 | directives from various
national and regional governments.
| | 04:04 | Well, no worries. With Drupal 7 you
have the power and so do your users if
| | 04:08 | you give it to them.
| | Collapse this transcript |
| Defining roles, permissions, and profiles| 00:00 | Not much has changed in
Drupal 7 as far as users go.
| | 00:04 | We looked at one thing that changed in the
video "Letting users delete their accounts."
| | 00:08 | But now I'd like to talk about two more changes.
| | 00:11 | The first one has to do with roles.
You can make everyone with a specific role
| | 00:15 | into an administrator of the site with
rights to do nearly everything, and of
| | 00:20 | course you can take those
rights away later if you want.
| | 00:22 | The second change is related to
how you customize user profiles.
| | 00:26 | I will show you each of
these features in this video.
| | 00:29 | We get there first by going to the User
Management screen, which in Drupal 7 you
| | 00:32 | will remember is called People.
| | 00:34 | Click on People and then Permissions,
and the first thing you notice is there is
| | 00:38 | an additional column here.
| | 00:39 | We have the Anonymous User and
Authenticated User here, which is the same as
| | 00:43 | it was in Drupal 6.
| | 00:44 | It's a person who is not signed into
the site, Anonymous, and who is signed into
| | 00:48 | the site, Authenticated.
| | 00:50 | The Administrator starts out with all
of the rights that core Drupal gives you
| | 00:55 | as the site owner as well.
| | 00:57 | You could administer blocks, you
could create content, and so forth.
| | 01:00 | But it can be a little
tricky under certain situations.
| | 01:03 | As we scroll down we will
see one example of that.
| | 01:06 | You see that it has all the rights that
you would expect, but then there's this
| | 01:11 | new content type that I created, Vacation
package, and it didn't automatically get those rights.
| | 01:17 | Of course, you could add them the same
way you would add permissions in Drupal 6.
| | 01:20 | You just check the boxes, scroll to
the bottom, and say Save permissions.
| | 01:26 | But that's not all.
| | 01:27 | The Administrator role doesn't
have to be called Administrator.
| | 01:30 | You could in fact create a new role and
then assign that person to get all new
| | 01:34 | rights and I will do that right now.
| | 01:36 | You do that by clicking on Roles.
| | 01:38 | Create the role that you want or you
could just use one that already exists.
| | 01:42 | But I will call this one
sitemaster and Add role.
| | 01:46 | Then to change who actually gets
that Administrator role, you go up to
| | 01:49 | Configuration and Account
settings and then down here you see
| | 01:53 | Administrator Role.
| | 01:54 | Now I am going to change that to
sitemaster and Save configuration.
| | 02:01 | Now when I go back to People and
Permissions I see I have this sitemaster role.
| | 02:07 | But as I said, that's kind of
tricky because users with that role don't
| | 02:10 | automatically get all those permissions.
| | 02:13 | You have to add them in again as you see here.
| | 02:16 | But what happens if you enable a new module?
| | 02:18 | Well, I will show you.
| | 02:19 | We will go up to Modules and add
Aggregator, go down to the bottom and save it,
| | 02:25 | and then go back and take
another look at our Permissions.
| | 02:29 | You see up here at the top the rights
for Aggregator went to Sitemaster, who is
| | 02:34 | the new administrator while
Administrator didn't get that.
| | 02:37 | Another nice thing in Drupal 7 is if
you click Authenticated User, all of the
| | 02:42 | roles above it also get checkmarks.
| | 02:44 | It's a nice little JavaScript thing.
| | 02:46 | So you see Authenticated User,
Administrator and Sitemaster since they have to
| | 02:50 | be authenticated would automatically
get those rights and when we remove it,
| | 02:55 | Drupal remembers what it was before.
| | 02:57 | So Sitemaster keeps it while Administrator
doesn't. Because the behavior of this
| | 03:01 | Administrator role is a little
peculiar, remember the rule of thumb.
| | 03:05 | check your permissions from time to
time when you are making any kind of
| | 03:08 | structural changes to your site and
you do that again by clicking People
| | 03:12 | and then Permissions.
| | 03:13 | The other big change to User Management
is in how you customize User Profiles.
| | 03:18 | You might remember in Drupal 6 that
there is a Profile module and it's
| | 03:22 | disabled by default.
| | 03:24 | Here I will go to Drupal 6 and show you
under Administer > Site Building > Modules,
| | 03:30 | scroll down a bit and there it is.
| | 03:34 | I am going to enable that module,
Save configuration, and then go to User
| | 03:39 | management and Profiles, which
is a new item that just appeared.
| | 03:43 | Now we could get start
adding fields to profiles.
| | 03:46 | So all well and good in Drupal 6.
| | 03:48 | Well, what's changed in Drupal 7?
| | 03:50 | We click on Modules we will see the
Profile module is actually still there.
| | 03:56 | However, there is now another
method to add fields to profiles and it's
| | 04:00 | actually the preferred one.
| | 04:02 | It uses the same fields in the core system,
you might remember from the video "Adding
| | 04:07 | fields to content types."
| | 04:08 | I mentioned in that video that profiles
are now something called entities, which
| | 04:12 | is the same as a node is an entity and
comments are entities in taxonomy terms.
| | 04:17 | As entities, profiles take advantage
of the same field API that lets you
| | 04:22 | add fields to nodes.
| | 04:23 | So why would you ever use
the Profile module in Drupal 7?
| | 04:26 | Well, it does have one advantage.
| | 04:28 | It let's you place profile fields on
separate pages in the user profile.
| | 04:33 | So for example, when someone is editing
their profile there will be a little tab
| | 04:36 | at the top that says this is my home
information and another tab that says this
| | 04:40 | is my work information.
| | 04:42 | The other reason that you would want
to have the Profile module is if you are
| | 04:46 | migrating a site from Drupal 6 and you
have done a lot of work in the Profile
| | 04:49 | module, that won't unfortunately
translate into the field API system.
| | 04:55 | So how do you use fields
and profiles in Drupal 7?
| | 04:58 | Well, I will show you.
| | 04:59 | You go up to Configuration and Account
settings and here you see Managed Fields.
| | 05:04 | I will click that and you will recognize this.
| | 05:06 | It looks exactly the same as when you
created a content type and added fields to it.
| | 05:11 | By the same token, you can change
the display of those fields here.
| | 05:14 | Of course, you only have that once
you have fields added to your profile.
| | 05:19 | So in Drupal 7 we now have two somewhat
contradictory methods of adding profile
| | 05:24 | fields, the Profile module and Drupal
7's native use of fields and profiles.
| | 05:30 | There are big hopes that these two
methods will be merged in Drupal 8 or perhaps
| | 05:34 | through a contributed module.
| | 05:36 | If you want to read the
details about that herculean task see
| | 05:39 | drupal.org/node/394720.
| | Collapse this transcript |
|
|
6. DevelopmentAssuring quality with the testing module| 00:00 | You've probably heard the
saying "measure twice cut onc"".
| | 00:04 | That makes sense in the physical world
where you can't undo a cut, but in the
| | 00:07 | development world, the winning path is
to cut, see how the cut turned out, then
| | 00:11 | redo the cut, then check it again,
and on and on until you get it right.
| | 00:15 | Since Version 4, the Drupal way of
doing that iterative process has involved a
| | 00:19 | module called Simple Test,
which is still available at
| | 00:22 | drupal.org/project/simpletest.
| | 00:26 | Simple Test automatically stress-tests
a module by running your custom scripts
| | 00:30 | of actions against it, then it reports
the results of those tests back to you.
| | 00:34 | Drupal's developers thought that Simple
Test was so good that they integrated it
| | 00:39 | into Drupal 7 as the Testing module.
| | 00:41 | This video won't show you how
to actually write your own tests.
| | 00:44 | That's really much too big a job, and you
have to know the programming language PHP.
| | 00:48 | Instead, we'll run some of the tests
that are included with Drupal 7, look at
| | 00:52 | the reports that it creates, and follow
some links to see where to go to create
| | 00:56 | custom tests yourself.
| | 00:58 | By default, the Testing module is turned off.
| | 01:01 | To turn it on, of course, you go up
to Modules, scroll down until you see
| | 01:05 | Testing, turn it on, and save configuration.
| | 01:09 | Once you've turned it on, you configure
it by clicking Configuration, then you
| | 01:13 | scroll down until you see the
Development area, and there it is, Testing.
| | 01:19 | Drupal 7 includes quite a lot of tests
that you could run automatically, that is,
| | 01:23 | without writing any additional scripts.
| | 01:25 | If you click on any of these arrows,
you see the individual tests that run
| | 01:28 | against that module.
| | 01:30 | Again, when all is said and done,
there are dozens and dozens of tests.
| | 01:34 | By the way, notice that the
Aggregator module has tests available.
| | 01:37 | Even though we haven't turned on the
Aggregator module, you can test modules
| | 01:41 | that aren't actually enabled on your site.
| | 01:44 | To run all of the tests for a module,
you simply click in the checkbox.
| | 01:48 | to run an individual one, you would
open up that particular module and then
| | 01:51 | check and uncheck as you'd like.
| | 01:53 | I'm going to run all of the tests that
are included against the Actions module.
| | 01:57 | So we just click there, scroll
down to the bottom, and say Run tests.
| | 02:03 | To save some time, we'll just fast-
forward through these tests in this video.
| | 02:06 | In reality, this testing suite takes a
couple of minutes, but as you can see,
| | 02:11 | you get a progress bar while the tests
are running, along with some real-time
| | 02:14 | information about what's going on.
| | 02:17 | When the tests are done,
you of course get a report.
| | 02:20 | You can see the reports by scrolling
down here and opening up any of the links
| | 02:24 | that it gives you, and here we have our results.
| | 02:27 | For the most part, they're given in one-
line statements like this, but in some cases,
| | 02:31 | more information is required.
| | 02:33 | In that case, it gives
you a verbose message link.
| | 02:35 | When we click on it, we see exactly what
the test was and what the results were.
| | 02:40 | It shows the page that it
affected and what it actually did.
| | 02:43 | In this case, it requested a user account.
| | 02:46 | Let's go back to the Testing
module and take a look at some of the
| | 02:48 | settings that you have.
| | 02:50 | Once you're back on the Testing page,
scroll up to the top and click Return to list.
| | 02:54 | Of course, you could also click
the back arrow in your browser.
| | 02:58 | On the main Testing page, you can
look at some of the settings you have by
| | 03:01 | clicking the Settings tab.
| | 03:02 | For the most part, you
won't have to touch these.
| | 03:04 | As you see, you only have
two settings in general.
| | 03:07 | The second link is just an HTTP
authentication settings, which you would add if
| | 03:11 | you had some sort of special
settings in your web server.
| | 03:13 | If you are a non-programmer like me,
you'll probably never use the Testing
| | 03:18 | module for your own projects, but
it does have an additional advantage.
| | 03:22 | You can actually use the Testing
module to help produce Drupal itself.
| | 03:26 | To learn how to do that,
go to drupal.org/contribute.
| | 03:33 | Once there, scroll down to Testing,
and click on the link to find out how you
| | 03:37 | could help, even if you're not a developer.
| | 03:39 | Beyond what you learn on this page, you
can also look through the Issue Queue on
| | 03:43 | any particular module that you're
interested in and would like to help develop
| | 03:47 | and join the discussions in the Issues
Queues to find out exactly what you could
| | 03:50 | do to help test them.
| | Collapse this transcript |
| Developing for Drupal| 00:00 | The familiar iceberg metaphor
applies to Drupal 7's improvements.
| | 00:04 | Most of what's there is hidden from view.
| | 00:07 | This series mostly focuses on
changes to how you administer Drupal.
| | 00:11 | That happens mostly through
Drupal's own browser-based interface.
| | 00:15 | Now we're going to survey changes to
how you program Drupal modules using
| | 00:19 | Drupal's Application Programming
Interface or API as it's better known.
| | 00:24 | Now, I have to point out that I'm not
a developer myself and this video will
| | 00:27 | only go over the changes very superficially.
| | 00:30 | But we will go over all of the important ones.
| | 00:33 | The best way to get an overview of the
API changes since Drupal 6 is by going
| | 00:37 | back through the release notes of
Drupal 7's development versions.
| | 00:40 | To do that, go to drupal.org/project/
drupal and then scroll down underneath
| | 00:48 | where you see the release numbers and
say View all releases, because the ones
| | 00:52 | you see up here are only the most recent ones.
| | 00:55 | Once you're there, you read backwards
in time and see what the most recent
| | 00:59 | versions were that were released.
| | 01:01 | To narrow it down to just one API
version, you would click it up here, in this
| | 01:04 | case, Version 7, and click Apply.
| | 01:07 | Then you see we have alpha7, alpha6,
and so on going backwards in time.
| | 01:12 | Click Read more at the bottom if you
want to see back even further in time.
| | 01:16 | As always, you can find complete technical
documentation on Drupal's API at api.drupal.org.
| | 01:24 | Once you're there, be sure to click on
the Drupal 7 tab, or if you like,
| | 01:28 | you could just go to api.drupal.org./api/
7 as you see in the browser bar here.
| | 01:36 | Let's talk very briefly about some of
the most notable changes to Drupal's API.
| | 01:41 | The first big change is the Testing module.
| | 01:44 | This is what was formerly known as
Simple Test and you can still get that at
| | 01:48 | drupal.org/project/simple test.
| | 01:52 | It comes with many testing scripts to
test the built-in modules with Drupal, and
| | 01:56 | it will run scripts that you create
against any modules that you create.
| | 02:00 | We demonstrated this in the video
on the Testing module in this series.
| | 02:04 | To learn how to develop your own test
for the Testing module, a good place
| | 02:08 | to start is the Documentation for Simple
Test, which is again on the Simple Test page.
| | 02:13 | The next big developer change in
Drupal 7 is the database layer.
| | 02:16 | Previous versions of Drupal could
really only connect to a certain limited list
| | 02:20 | of databases easily.
| | 02:22 | To connect to any other databases, you
had to do quite a bit of programming.
| | 02:26 | In Drupal 7 however, that database
connection has been abstracted and so now you
| | 02:30 | can connect Drupal to any database,
as long as there is a PDO driver.
| | 02:35 | You would then get a Drupal database
driver if it exists, and if it doesn't, you
| | 02:39 | can write them fairly easily.
| | 02:40 | You could learn about PDO
drivers at the URL on your screen,
| | 02:43 | php.net/manual/en/pdo.drivers.php
and you can get more details about
| | 02:51 | programming those Drupal database
drivers at drupal.org/node/310069.
| | 02:58 | The third substantial change in
Drupal 7 is RDF or the Resource
| | 03:03 | Description Framework.
| | 03:04 | We talked very briefly about this in
an earlier video when I was showing you
| | 03:08 | what the new modules were.
| | 03:09 | RDF lets you describe your
data better to other sites.
| | 03:13 | For example, if we were to go to
Google and type in a movie title, let's say,
| | 03:18 | burn hollywood burn alan smithee film -
one of my favorite films, by the way -
| | 03:25 | Oh! It only got two stars.
| | 03:28 | Well, the interesting thing here is that
you can see what the rating is, because
| | 03:31 | that was transmitted from IMDB to
search engines through RDF probably.
| | 03:37 | Basically, it lets your site define what
information is and not just that it is information.
| | 03:43 | The next big change in Drupal 7 is
there are now better installation profiles.
| | 03:47 | Now, we haven't talked very much about
installation profiles, but we will talk
| | 03:51 | about them when we go on to the
video about other versions of Drupal.
| | 03:54 | Essentially, Drupal has split in a way.
| | 03:57 | There is the core Drupal, which
people consider now more of a platform on
| | 04:01 | which you can build things, and then there
are the products that people build from Drupal.
| | 04:05 | One example of such a product is
OpenPublish, which is a version of Drupal,
| | 04:09 | which has additional modules and so forth,
that lets you set up a new site very easily.
| | 04:14 | In any case, these installation
profiles are now developed a lot like ,odules,
| | 04:18 | and you can learn about
this at the URL on your screen.
| | 04:21 | The next big change, this will be a
big one for those of you who like all
| | 04:24 | sorts of visual effects in your sites,
is jQuery and some other pieces are now
| | 04:28 | part of drupal Core.
| | 04:30 | The big one is jQuery UI, which gives
you all that visual oomph, that is, things
| | 04:34 | appearing and disappearing on the screen.
| | 04:37 | One example of that is when you're
editing a node and you say that you want to
| | 04:40 | have a menu link to that node, you
click in the checkbox and then all of the
| | 04:45 | controls appear, that is, they don't
clutter up the screen until you say yes, I
| | 04:48 | actually want to see the controls.
| | 04:50 | There are some other jQuery bits
besides jQuery UI and some JavaScript bits.
| | 04:54 | If you want to learn exactly what they
are, take a look in the /misc folder of
| | 04:58 | your Drupal installation.
| | 05:00 | That's it for the big changes, but I do
want to point you to a few other resources.
| | 05:03 | The resources you see on your screen
here will tell you more about how to
| | 05:07 | convert your old Drupal 6 modules to
Drupal 7, exactly what is changed between
| | 05:12 | different versions in Drupal 7 and,
of course, as always, api.drupal.org is
| | 05:17 | your source for all of the programming details
that you need in order to make your own modules.
| | 05:22 | So, that's what's happened
between Drupal 6 and Drupal 7.
| | 05:26 | If iou want to see the future, you can
get a sense of it by referring to a blog
| | 05:29 | post that Drupal founder Dries
Buytaert wrote about Drupal 8.
| | 05:33 | He wrote it all the way back in November
2009 before Drupal 7 was ready for release.
| | 05:37 | But at that point, he already had a pretty
good sense of what the next steps would be.
| | 05:41 | You can go and take a look at it at
buytaert.net/8-steps-for-drupal-8.
| | 05:52 | One thing that's apparent from his post
is how Drupal 7's improvements are not
| | 05:55 | only useful for developers now, but how
they are important stepping stones for
| | 05:59 | Drupal's continual
improvement into Drupal 8 and beyond.
| | Collapse this transcript |
|
|
7. Community ChangesOther versions of Drupal| 00:00 | Lately, the Drupal community has been
putting up more and more variants on core
| | 00:04 | Drupal, called distributions.
| | 00:06 | Drupal itself is becoming more of a
platform on which individual developers can
| | 00:10 | build customized applications.
| | 00:13 | These distributions are in essence the
applications that Drupal makes possible.
| | 00:18 | A distribution typically includes core
Drupal, plus some additional bits and pieces.
| | 00:23 | As I'm recording this, none of the
distributions we'll discuss is available for Drupal 7 yet.
| | 00:28 | They're all based on core Drupal 6, but
I expect that many, if not most of them,
| | 00:34 | will eventually become
available in Drupal 7 versions.
| | 00:38 | I'll just give an overview of some of
the bigger distributions, but we won't
| | 00:41 | have time to delve deeply into
how to actually make them work.
| | 00:45 | If lynda.com releases courses about any
of these distributions, you'll learn about
| | 00:49 | them on the lynda.com site and
from reading the lynda.com newsletter.
| | 00:53 | You can find that newsletter at lynda.
com/news/newsletter.aspx. So now let's
| | 01:01 | get on to our distributions.
| | 01:02 | The first one is Acquia Drupal.
| | 01:06 | One of the first videos in this series,
installing the AMP Stack, walk through
| | 01:10 | Drupal's installation process using
the new Acquia Drupal stack installer,
| | 01:14 | also known as DAMP.
| | 01:16 | You can get that and Acquia
Drupal itself at Acquia.com.
| | 01:21 | DAMP includes Acquia's own version of
Drupal, appropriately called Acquia Drupal.
| | 01:25 | I've already installed it and in fact,
so have you if you've installed the DAMP.
| | 01:29 | It was the one that shows up as local host.
| | 01:31 | That is the default site in your
installation. Here we have it.
| | 01:34 | It looks very much like core Drupal,
but it does have some additional parts.
| | 01:39 | Now, earlier in this course I showed you
how to replace Acquia Drupal with core Drupal.
| | 01:43 | Let's talk about what you get if
you don't make that replacement.
| | 01:47 | The first thing you notice is this
warning about an Acquia Network subscription.
| | 01:51 | Acquia provides a suite of services to
help you be sure that your site is up and
| | 01:55 | running and working correctly.
| | 01:56 | To learn more about that, go to Acquia.com.
| | 02:00 | The next thing that you notice is
the Administration toolbar up here.
| | 02:03 | Now remember we're actually looking at
Drupal 6, but I mention that there is
| | 02:06 | this thing called admin menu which is
very much like the toolbar in Drupal 7,
| | 02:11 | but with these drop-downs and call-out menus.
| | 02:14 | This is included in Acquia Drupal.
| | 02:16 | It's still unclear whether they'll
include this in the Drupal 7 version, but
| | 02:20 | that should be coming out very soon.
| | 02:23 | A good way to see what's different
between Acquia Drupal and standard Drupal is
| | 02:26 | to look at the Modules list.
| | 02:27 | Of courses, since this is Drupal 6,
you'd get there by clicking Administer, and
| | 02:32 | then Site building, and then Modules.
| | 02:35 | We won't go through all of them, but you
can see just how many modules are added
| | 02:40 | to the core Drupal in
order to make Acquia Drupal.
| | 02:43 | In fact, everything, except the bit
you see here, Core - optional and Core
| | 02:47 | - required, all of these other things are
part of Acquia Drupal and not core Drupal.
| | 02:52 | Moving on, there are two distributions in
the category of shopping carts for Drupal.
| | 02:57 | The first one is called Ubercart,
which you can get from ubercart.org.
| | 03:02 | Ubercart is actually a suite of
modules that sits on top of Drupal.
| | 03:06 | The best way to understand what
Ubercart does is to look at sites that have
| | 03:10 | been built using it.
| | 03:11 | To do that, go up to About, scroll down
to the Ubercart in Action, and then you
| | 03:17 | can see a list of online
stores that are actually using it.
| | 03:20 | Also in the shopping cart
category is Drupal Commerce.
| | 03:24 | I'm very excited about this one because
it's the same developers who created Ubercart.
| | 03:29 | It's clear that Drupal Commerce is
going to be strong on Drupal 7 and in fact,
| | 03:33 | they're only developing for Drupal 7.
| | 03:34 | They haven't really done the Drupal 6 version.
| | 03:37 | I'm looking forward to seeing what
Drupal Commerce does, but as I'm making this
| | 03:40 | video, it hasn't actually been released.
| | 03:43 | It should be released pretty
much at the same time as Drupal 7.
| | 03:46 | To recap the two shopping cart solutions,
Ubercart is mature and well-supported,
| | 03:52 | but it's not quite clear who's
going to be developing it in the future.
| | 03:55 | Drupal Commerce, on the other
hand, is all very Drupal 7 based.
| | 03:59 | It was built from the ground up by
the people who built Ubercart, so I'm
| | 04:02 | actually betting on it for the future.
| | 04:04 | The next category of distributions
on Drupal is news management sites.
| | 04:09 | The first one of these is called
Managing News, which you can get
| | 04:13 | at managingnews.com.
| | 04:15 | It's hard to show exactly what Managing
News does until you have a site up and running.
| | 04:19 | I've already installed it, but as you
can see it doesn't show you very much
| | 04:22 | from the very beginning.
| | 04:23 | You can, however, take a look at examples
by going to their Examples tab right up here.
| | 04:29 | It's extremely strong in mapping especially.
| | 04:32 | So, let's say that you have a news
feed coming in from the New York Times.
| | 04:36 | Managing News will actually look at
the news feed, figure out where the
| | 04:39 | locations are, and put points on the maps,
and it does other such nifty things like that.
| | 04:44 | It's by a company called Development
Seed who besides doing amazing things with
| | 04:48 | maps, just has a terrific design sense.
| | 04:50 | It's a very attractive solution and I
think it's really an excellent thing if
| | 04:54 | you're running a news site.
| | 04:56 | But it's not the only
distribution out there for news sites.
| | 04:59 | There's also OpenPublish, which
you can get at openpublishapp.com.
| | 05:03 | I've installed this one as well and
once again, it's hard to see exactly what
| | 05:07 | it does without looking some of the
examples, which you can do on the OpenPublish site.
| | 05:12 | However, as you can see, it's less map-
oriented and more oriented around topic
| | 05:16 | hubs and separating your
news into different categories.
| | 05:20 | It's really more for a sort of straight
ahead news site and by the way both this
| | 05:24 | and some of the other distributions jas
this neat little Administration toolbar
| | 05:28 | up here, which is different from the
Drupal 7 one. It's just a nice way to
| | 05:32 | administrate your site and then you can
just hide it off to the side this way.
| | 05:36 | To recap the two news management
distributions, Managing News is very graphical
| | 05:41 | and it's especially good at
aggregating multiple news feeds and then mapping
| | 05:45 | information and figuring out exactly
what's in the news items that come in.
| | 05:50 | OpenPublish, on the other hand, has a lot of
features that connect with external services.
| | 05:55 | So if you'd like to do for example
advertising on your site, OpenPublish has
| | 05:59 | modules for that, along
with a lot of other things.
| | 06:02 | Again, we didn't have time to going to
them all, but just exploring OpenPublish
| | 06:05 | will show you just how deep it is.
| | 06:08 | The last distribution we'll look at
is called Open Atrium, which you can get
| | 06:12 | from openatrium.com.
| | 06:14 | Like Managing News, it's made by
Development Seed and it has the same really
| | 06:18 | nice graphical interface to it.
| | 06:21 | Again, this is a distribution that
it's hard to explain without actually
| | 06:25 | setting up an entire site, but
basically, it lets you set up an entire
| | 06:28 | intranet, so that people within a
company can communicate with each other well
| | 06:32 | or you could make it available to the
world at large and people can set up
| | 06:35 | individual groups and connect that way.
| | 06:38 | It basically puts the power of
creating groups on your Drupal site into the
| | 06:42 | hands of your users.
| | 06:44 | Here we have it installed, but once
again, you don't see very much until you've
| | 06:47 | started using it for a while.
| | 06:49 | To recap about Open Atrium, it's
basically an intranet in a box or you can use
| | 06:54 | it to build social network applications.
| | 06:56 | It's by the people who make Managing
News and again I love their graphic design
| | 07:00 | sense and their
thoroughness in making this just work.
| | 07:03 | This group of distributions you've
seen is by no means comprehensive.
| | 07:07 | There is a whole bunch of specialty
distributions we didn't even talk about.
| | 07:11 | For example, there's a Wedding
distribution that helps you plan weddings.
| | 07:15 | There's the Open Media distribution
that helps public access channels get
| | 07:19 | organized, that is for TV, and Tattler,
which is similar to OpenPublish, but geared
| | 07:24 | more for the public relations
professionals than the journalist.
| | 07:28 | The place to find out about
all of these distributions is at
| | 07:32 | drupaldistrowatch.com.
| | 07:35 | The best thing about these distributions is
that they're all built on standard Drupal.
| | 07:40 | If you know how to modify a Drupal
site, you know how to modify any of
| | 07:43 | these applications.
| | 07:45 | You can add modules, add themes,
whatever you like, but be aware of how their
| | 07:49 | added complexity can affect
administration sometimes in unexpected ways.
| | 07:53 | Be careful. If the distribution offers a
button or link or something like that to
| | 07:58 | do something, use it, because if you
use your normal Drupal methods, it might
| | 08:02 | not take care of all the special
cases that are built into the application.
| | 08:06 | Finally, if you're feeling
ambitious, you can always create your own
| | 08:10 | distributions and as always the
drupal.org site is your school for learning
| | 08:14 | how to do that.
| | Collapse this transcript |
| Building with Drupal Gardens| 00:00 | This video will show you a way to
get started with Drupal 7 in a managed
| | 00:04 | environment, that is where someone else
has already installed it and does all the
| | 00:08 | work to keep it updated.
| | 00:09 | The service is called Drupal Gardens
and it's from Acquia, the same company
| | 00:13 | that produces the AMP Stack we saw in the
video earlier about installing the AMP Stack.
| | 00:18 | Besides simplifying maintenance and
including lots of useful tools, Drupal
| | 00:22 | Gardens has an amazing Theme Builder
that gives you a really high level of
| | 00:26 | control over the look of your site.
| | 00:28 | To get signed up with it,
go to drupalgardens.com.
| | 00:31 | I've already created an
account, so I'll just log in.
| | 00:42 | Once you've logged in, you see a list
of sites that you've already created.
| | 00:45 | I'm going to start creating a new site
by clicking up here and naming the site.
| | 00:50 | I'll call this lynda2 and continue.
| | 00:56 | The next option you have
is to choose a template.
| | 00:59 | A template is a collection of
features that are turned on or off and also a
| | 01:02 | group of pages that it
will either include or not.
| | 01:05 | For example, we have this Campaign
template where most of the modules are turned
| | 01:09 | on, Product template where everything
is turned on, a Blog template, and then a
| | 01:14 | Create your own template where it
starts with everything turned off and you can
| | 01:18 | just turn them on individually as you like.
| | 01:20 | I'm going to go with the Campaign
template. Scroll down and say Create site.
| | 01:25 | Now this installation should look
familiar to you because in the background,
| | 01:28 | Drupal Gardens is actually installing a
new instance of Drupal on its servers.
| | 01:35 | There it is.
| | 01:36 | Our site is now installed.
| | 01:38 | It offers you some help, which
I'll just close for right now.
| | 01:41 | You'll notice that it looks very
much like ordinary Drupal that you
| | 01:44 | would install yourself.
| | 01:45 | However, there are quite a
few changes underneath the hood.
| | 01:48 | First of all, you have this My sites
button and if you want to go back to that
| | 01:52 | list of sites that you saw at first,
just click there and there we are.
| | 01:55 | I'm going to go back to editing our
site by clicking on it and then start
| | 01:59 | exploring the menus that we have to
see what some of these differences are.
| | 02:03 | First of all, a Drupal Gardens
site comes with some sample content.
| | 02:07 | That's just to show you
exactly how the site works.
| | 02:09 | If we close this out and start
exploring, you'll see okay, well there is a
| | 02:12 | sample article, some comments, the blog
has a sample post or two, and so forth.
| | 02:17 | If you want to create your own site
from scratch, and you understand exactly
| | 02:21 | how everything works, which probably
you do, you could go back and then just
| | 02:24 | delete all of these.
| | 02:26 | Continuing on, let's take a look
at what's under the Structure menu.
| | 02:29 | There are some additional choices here,
specifically Mailing lists and Media Types.
| | 02:34 | Again, I won't go into the details of
what everything is, but these let you do
| | 02:38 | additional things on your site
without installing any new modules.
| | 02:41 | This is a good time to mention, not
only don't you have to install new modules,
| | 02:45 | but you can't install new modules.
| | 02:47 | Essentially, you're stuck with the
modules that are included with Drupal Gardens.
| | 02:52 | So you have to decide for
yourself whether it's going to give you
| | 02:54 | enough functionality.
| | 02:56 | The good news is that if it doesn't,
you can actually export your entire site
| | 03:00 | from Drupal Gardens, load it up on your
own computer, and then start playing with
| | 03:04 | it just as if it's a customized
distribution of Drupal that you created with all
| | 03:08 | of your content and so forth. It's very handy.
| | 03:11 | I give a lot of credit to the Acquia
folks for allowing you to do that because a
| | 03:14 | lot of hosted sites like this
don't let you just take your site off.
| | 03:17 | You're sort of locked in
with them once you're there.
| | 03:20 | Anyway going on, I'm going to close
out this administrative overlay, because
| | 03:24 | doing so makes Appearance available.
| | 03:26 | Now this is how you select a theme,
but also how you modify themes.
| | 03:29 | I'm going to come back to that because
it's the biggest thing in Drupal Gardens
| | 03:33 | and it's going to take a
little while to explain.
| | 03:35 | Continuing on, one of the
differences in People is that the roles are a
| | 03:39 | little bit different.
| | 03:40 | First of all, you have some new
roles that don't come with core Drupal.
| | 03:43 | Blogger, Editor, and so forth.
| | 03:45 | You also have this distinction
between site owner and administrator.
| | 03:50 | This is because Drupal Gardens is a
hosted service and although you own your
| | 03:54 | site, you don't own
everything on Drupal Gardens.
| | 03:57 | It's a bit of a distinction, but don't worry.
| | 03:59 | You'll still be able to administer your
site as much as you need to and again,
| | 04:02 | if you don't find that you're getting
enough access, you can remove your site
| | 04:05 | from Drupal Gardens and start
it yourself on your own server.
| | 04:09 | Continuing on to Modules, you'll
notice that the Add new module has gone from
| | 04:13 | here as well as the Update tab.
| | 04:15 | As I said, you can't add your own
modules, but if you look through the list it
| | 04:18 | really is a huge list of
things that we're added onto it.
| | 04:21 | There is a Gallery function, some
additional statistical functions.
| | 04:26 | Continuing on, basically Configuration and
Reports work pretty much the same as in Drupal 7.
| | 04:31 | Of course, there are additional
choices on Configuration because there are so
| | 04:35 | many extra modules, but we
don't have to go through those.
| | 04:38 | Now the big thing in Drupal
Gardens is the Appearance tab.
| | 04:42 | When we click on that,
it brings up the Theme Builder.
| | 04:45 | Of course, you can switch themes very
simply just as you could in Drupal 7 by
| | 04:49 | selecting the new theme and then saying Publish.
| | 04:54 | When you publish a theme you have to name it.
| | 04:56 | I'm just going to call this
lynda2-theme. And it's done.
| | 05:01 | Now you notice this text
appeared that it's now live.
| | 05:04 | As you work on a Drupal
Gardens site, it's actually there.
| | 05:08 | It's available to the whole world.
| | 05:09 | So you have to either take your
site offline, which you can do in the
| | 05:13 | Configuration as you normally would
with Drupal, or just be sure that you know
| | 05:17 | what you're doing as you go.
| | 05:18 | What I usually do is I design the whole
site first before announcing it and then
| | 05:21 | if I have to do any tweaks, I'll take
it down briefly while I make the changes.
| | 05:25 | I won't go through all of the Theme Builder,
except to say that it really is amazing.
| | 05:30 | Not only can you select different themes,
that's the simple part, you can also
| | 05:34 | change all the colors, which really
gives the whole thing a different look as
| | 05:38 | you scroll through.
| | 05:40 | The Layout, you can change
how many columns there are.
| | 05:42 | In this case we have one column on the
left and one on the right, but we could
| | 05:45 | have just the left-hand column or both
of the columns on the right like so, or
| | 05:50 | we could change it back to its original layout.
| | 05:53 | The Styles tab is where you have very
strong control over the CSS in the site.
| | 05:58 | Let's just take a look at that.
| | 06:00 | Let's say that I want to
change these menus up here.
| | 06:02 | I click on them and then I could change,
for example, the spacing that's around them,
| | 06:06 | make it bigger, smaller.
| | 06:09 | I could add a little bit of a
border to each one of these.
| | 06:12 | I could add the border on top if I wanted.
| | 06:14 | You could see once you start
messing with that, you have all kinds of
| | 06:17 | possibilities for design.
| | 06:19 | I'm really very impressed
with this feature especially.
| | 06:22 | As with Borders & Spacing, you can also
change the Font, so instead of Helvetica,
| | 06:27 | well, let's say we want it a little bit bigger.
| | 06:28 | We want it to be all caps.
| | 06:31 | We want it to be a different face
entirely, Georgia let's say, and then
| | 06:36 | publish and it's done.
| | 06:37 | It's actually live at that moment.
| | 06:41 | But let's say you're not getting
enough control from the Theme Builder.
| | 06:44 | Well, the Advanced tab lets you put
your own custom CSS that overrides whatever
| | 06:49 | Drupal Gardens has already given you.
| | 06:51 | Of course in order to do this, you
have to know CSS and you can learn CSS on
| | 06:55 | several video series on lynda.com.
| | 06:58 | The last neat thing about Drupal Gardens
is, as I said, you can export the entire
| | 07:02 | site or you can export just the themes.
| | 07:05 | I'm going to do that
right now by clicking Export.
| | 07:07 | I'm going to export it as lynda2 and save it.
| | 07:11 | I'm then going to go to my Download area,
which in this case was the Desktop and open it up.
| | 07:19 | When I open it up, you can see that
it's a theme very much like one that you
| | 07:23 | might create from scratch.
| | 07:24 | Now the Theme Builder is not quite as
flexible as creating something from scratch.
| | 07:29 | If you want to learn how to create a
Drupal theme from scratch so you have all
| | 07:31 | that control or to be able to modify the
one that you get out of Drupal Gardens,
| | 07:36 | see the lynda.com course Drupal:
| | 07:38 | Creating and Editing Custom Themes by
my friend Chris Charlton. But I have to
| | 07:43 | say even though you get a lot more
flexibility when you program your own theme,
| | 07:47 | as Chris shows you how to do, I
think this is really a remarkable tool.
| | 07:51 | I'm excited to see the explosion of
designs that Drupal's going to see as a result.
| | 07:56 | I don't know whether you can tell, but I
am really impressed with Drupal Gardens.
| | 08:00 | It's not the only host at
Drupal solution out there.
| | 08:02 | In fact there are dozens of ISPs that
as Internet Service Providers that have
| | 08:06 | some kind of one click install for Drupal.
| | 08:09 | Some of them even handle such matters
as updates, but Acquia has really gone
| | 08:13 | whole hog to make Drupal Gardens useful.
| | 08:16 | In fact, I'm working on a course right
now specifically about Drupal Gardens for lynda.com.
| | Collapse this transcript |
|
|
ConclusionAdditional resources and what's next| 00:00 | Thanks for watching Drupal 7 New Features.
| | 00:03 | I've tried to give you a sense of
what's happened over the past two-and-a-half
| | 00:06 | years to make this version possible.
| | 00:08 | Well, let's take a look at some next steps.
| | 00:10 | Of course, my Drupal 6 Essential
Training course is still available for those of
| | 00:14 | you who are still working on that version.
| | 00:16 | Two other Drupal courses were produced
for Drupal 6, but most of the information
| | 00:21 | in them will still be good for Drupal 7.
| | 00:24 | My Drupal 6 Online Presentation of Data
course is still valid, particularly the
| | 00:28 | sections about the Views module.
And Chris Charlton's course Drupal:
| | 00:32 | Creating and Editing Custom Themes is
still a great way to thoroughly understand
| | 00:36 | Drupal's graphical interface.
| | 00:38 | But the web development world doesn't
stop with Drupal, of course, and the
| | 00:42 | lynda.com website has
dozens of series on the subject.
| | 00:46 | On the lynda.com site, just go to
Subject and scroll all the way down to Web
| | 00:52 | Development near the bottom.
| | 00:56 | In particular, I recommend you consider
watching courses on CSS and PHP as those
| | 01:01 | are Drupal's two main languages.
| | 01:04 | To go even further, try a MySQL course,
such as Bill Weinman's MySQL Essential
| | 01:09 | Training, or you can get two courses
in one with Kevin Skoglund's PHP with
| | 01:13 | MySQL Essential Training.
| | 01:16 | JavaScript Essential Training and
jQuery Essential Training are also good
| | 01:19 | courses to study, particularly if you
want to take advantage of the fact that
| | 01:23 | jQuery is now part of Drupal 7.
| | 01:26 | Finally, I'd like to recommend once
again that you get an account on the
| | 01:29 | drupal.org web site and
get to know that site well.
| | 01:32 | That's been the place to get Drupal
news and information ever since Drupal got
| | 01:37 | started, and that's not going to change.
| | 01:39 | The Planet Drupal blogroll at drupal.org/
planet aggregates dozens of blogs about
| | 01:45 | Drupal, giving you a multifaceted
view of what's going on in the community.
| | 01:50 | I'm excited for everything Drupal's
developers have done to make Drupal 7
| | 01:53 | the best version yet.
| | 01:55 | I look forward to seeing what you do
with it to bring great Drupal sites to the web.
| | Collapse this transcript |
|
|