Case Study: Mom and Pop, Inc.

Video loading...

  • 0:00
    [This series based on: Using Drupal - 2nd Edition]
  • 0:04
    [by: Angela Bryon & Addison Berry with Bruno De Bondt] [http://oreil.ly/19WDWOg]
  • 0:07
    [♪ Music ♪] [Drupalize.Me]
  • 0:11
    [Using Drupal - Drupal Jumpstart] [Case Study: Mom & Pop, Inc. with Addison Berry]
  • 0:21
    To get things started off with some real hands-on work,
  • 0:24
    we're going to build our very first Drupal website.
  • 0:27
    The Mom & Pop Inc. Case Study website is a very simple site.
  • 0:32
    It's going to cover a lot of the fundamentals that you're going to need to know
  • 0:35
    to build any Drupal website down the road.
  • 0:38
    We're going to in this series end up covering things like
  • 0:42
    working with the administrative settings, creating and managing
  • 0:46
    our content, looking at how to work with modules
  • 0:50
    and users' permissions, roles, access control, that kind of thing.
  • 0:54
    And then we'll also do a little bit of changing the look of our site
  • 0:58
    so that it's custom to us and not just what comes out of the box.
  • 1:03
    In this lesson what we're going to do is take a look at the case study.
  • 1:07
    We're going to look at the Mom & Pop, Inc. site that we need to create
  • 1:10
    and understand the needs for the client,
  • 1:13
    and then we're going to talk through our implementation plan
  • 1:16
    and how we think it's best to approach the needs that we need to meet.
  • 1:21
    Let's go ahead and get started and see what this Mom & Pop, Inc. site
  • 1:25
    needs to be all about.
  • 1:27
    In this lesson, we're going to be taking a look at our case study
  • 1:31
    and our implementation notes for the Mom & Pop website that you see here.
  • 1:36
    Before we start to talk about that, though,
  • 1:39
    I want to cover very quickly which modules
  • 1:41
    we're actually going to be covering in this particular series.
  • 1:45
    What we're going to be looking at is mostly core modules,
  • 1:50
    so we'll be looking at Node, which lets us create content
  • 1:54
    and create our own content types, Comment,
  • 1:57
    which allows users to create replies to nodes,
  • 2:02
    User, which is going to allow users to log in
  • 2:06
    and have roles and permissions to be able to do things.
  • 2:10
    The Block module adds dynamic side bars
  • 2:13
    and other supplementary content around the main content on your site.
  • 2:18
    The Menu module handles the management of all of the navigation,
  • 2:22
    so you can have multiple ways of navigating.
  • 2:25
    The Path module lets you create friendly URLs.
  • 2:29
    By default, Drupal will have something that's a bit ugly
  • 2:33
    like node/123.
  • 2:35
    This lets you have a URL that people can navigate to
  • 2:39
    with just a regular word, so something like example.com/about
  • 2:44
    for the about page, and the Module Filter module
  • 2:47
    is not part of core.
  • 2:50
    This will be the first contributed module
  • 2:52
    that we work with to see how you can do that,
  • 2:55
    and what Module Filter does is it's a very simple module
  • 2:58
    that lets you quickly filter the list of modules
  • 3:01
    on your Module Administration page, and so we'll see that in action in this series.
  • 3:06
    And then lastly, we'll be looking at the core Contact module
  • 3:10
    which gives you a simple contact form on your site
  • 3:13
    so that visitors can contact you.
  • 3:15
    Now, the completed website is going to look something a lot like this.
  • 3:19
    You can see this example site online at jumpstart.usingdrupal.com.
  • 3:27
    And let's talk a little bit about our actual case study.
  • 3:30
    Who are Mom & Pop, Inc.?
  • 3:34
    It is a small organic grocery store
  • 3:36
    in the Midwestern United States, and it's run by the co-owners
  • 3:40
    Jean and Mike.
  • 3:43
    Now, its current web presence is just a static HTML page
  • 3:48
    that lists their information about the company and its hours and locations
  • 3:53
    and what promotions they have.
  • 3:56
    But neither Mike or Jean is comfortable with code.
  • 3:59
    In order for them to update the web page, like every week
  • 4:03
    when they have a new thing that goes on sale,
  • 4:05
    they have to pay their next-door neighbor Goldie to hand edit that page for them,
  • 4:10
    because she's the one who knows the HTML.
  • 4:12
    Because this is fairly tedious
  • 4:16
    and it obviously creates a little bit of a bottleneck for them
  • 4:19
    in terms of getting their information up,
  • 4:21
    the site is often out of date,
  • 4:23
    and that ends up being more of a pain for them
  • 4:26
    to keep the site online than a use.
  • 4:29
    Mike and Jean would like to have a new site
  • 4:32
    that they can manage themselves by filling out web forms
  • 4:35
    without having to touch any kind of a code.
  • 4:37
    They don't want to learn code.
  • 4:39
    They're going to need some static pages, like the home page,
  • 4:42
    an about page.
  • 4:44
    They need a contact form so that people can send inquiries into the store.
  • 4:48
    They would also like a place to be able to post their announcements
  • 4:51
    so that they keep them up to date on their own,
  • 4:54
    so they show things like weekly deals or in-store events that are going on,
  • 4:58
    that kind of thing.
  • 5:00
    And they would also like visitors to the site
  • 5:03
    to be able to comment on the announcements,
  • 5:05
    but if it's an anonymous visitor
  • 5:07
    they want to have that approved so we don't have a whole lot of spam going on.
  • 5:12
    Now, neither Mike or Jean is very technical,
  • 5:17
    and they don't know anything about the code side of things,
  • 5:19
    so they also need to have a simple place to keep track of what they're doing.
  • 5:23
    They just want to work on the content.
  • 5:25
    They don't want to have to play around with the whole kit and caboodle here.
  • 5:30
    And last but not least, they also want to make sure
  • 5:33
    they have some basic branding on the site, like their logo,
  • 5:36
    so that it's obvious that it's the Mom & Pop, Inc. shop.
  • 5:39
    Their friend Goldie, who has been helping them with the static website,
  • 5:43
    has been playing around with the Drupal stuff,
  • 5:46
    and so she's going to try to recreate the site for them
  • 5:49
    and make a better site for them using Drupal.
  • 5:52
    That's the case study that we're going to be trying to accomplish
  • 5:55
    in this series.
  • 5:58
    Let's talk a little bit about how we're going to approach that
  • 6:01
    from a very, very high level.
  • 6:03
    All of the functionality that's required for the Mom & Pop, Inc. site
  • 6:07
    is provided by Drupal core, so all of the stuff that gets downloaded
  • 6:13
    when you download Drupal from Drupal.org is Drupal core
  • 6:17
    without any contributed modules involved.
  • 6:20
    Drupal's Node module, as we covered in the list,
  • 6:24
    is going to let us create various types of content on the site.
  • 6:27
    It comes with some that are default, including static pages,
  • 6:31
    so that's going to be great for our home and about pages
  • 6:34
    that we need to create.
  • 6:36
    We're also going to use the Core Path module
  • 6:38
    so that we have some nice URLs, so instead of node12
  • 6:42
    or node54 for anything on the site
  • 6:46
    we want them to be able to give out a URL that's more like Mom & Pop/about.
  • 6:52
    We want to have a nice URL that is a human understandable URL
  • 6:57
    so that it's easier for people to remember.
  • 6:59
    Drupal is also going to give us a really nice, robust role and permissions system.
  • 7:03
    We can use that to separate out Goldie's tasks,
  • 7:07
    because she's going to be doing actual website maintenance,
  • 7:09
    administering the guts of the site running,
  • 7:13
    but Mike and Jean don't need that.
  • 7:15
    They just want to manage the content on the site.
  • 7:18
    They don't want to have lots of other things
  • 7:20
    about how to administer the site overall.
  • 7:22
    And then they can have a separate role from our customers on the site
  • 7:27
    who we don't necessarily want them to do much on the site,
  • 7:30
    but we do want them to be able to leave comments,
  • 7:33
    and so they're going to have to be able to interact with the site in some way.
  • 7:37
    Roles and permissions are going to help us delineate those things.
  • 7:42
    We also have some nice built-in administrative tools
  • 7:44
    such as the Dashboard and Shortcut modules
  • 7:46
    which will let us create a tailored administrative interface
  • 7:50
    for Mike and Jean so they don't need to deal with
  • 7:52
    everything you can administer on the site.
  • 7:55
    Drupal core also comes with a module called Contact,
  • 7:57
    and that can be used to build a nice, simple contact form
  • 8:00
    for the website, and we can have different categories for that,
  • 8:03
    so if it's marketing or what's on sale,
  • 8:07
    whatever kind of categories you would like the email,
  • 8:09
    those emails can go to different people,
  • 8:12
    and then finally, for the announcement section,
  • 8:14
    what we're going to do is we can see that the default
  • 8:16
    article content type that comes with Drupal core
  • 8:19
    will work really well for that need.
  • 8:22
    We're going to go through all of these needs that we have
  • 8:26
    and build them out with Drupal core,
  • 8:29
    and in the process get a really good grounding
  • 8:32
    in the basics of building a site with Drupal
  • 8:35
    and what pieces are coming with core,
  • 8:37
    and this will be a nice foundation to build on in future series
  • 8:42
    when we start to add more and more contributed modules
  • 8:44
    to create more and more complex sites.
  • 8:46
    One last thing to note before we dive into this series
  • 8:49
    is that you should have a Drupal site installed.
  • 8:53
    You want to install the source code that we've provided
  • 8:56
    with the series, and when you go through the installation process,
  • 9:00
    you want to use the standard installation profile.
  • 9:03
    You're just installing any Drupal site out of the box.
  • 9:08
    This is just Drupal core.
  • 9:10
    You don't need to use any of the particular installation profiles
  • 9:12
    for other chapters in the book.
  • 9:14
    Once you have that set up,
  • 9:16
    that's where we're going to be starting to dive in
  • 9:18
    and learn how to build a site with Drupal core.
  • 9:22
    [Drupalize.Me]
  • 9:27
    [Based on the book Using Drupal, 2nd Edition]
  • 9:29
    [by Angela Byron, Addison Berry and Bruno De Bondt]

Case Study: Mom and Pop, Inc.

Loading...

This series, from the O'Reilly Media book Using Drupal, Second Edition, is intended for people who are new to Drupal, provides a tour of its capabilities, as well as definitions for its sometimes obscure terminology. We’ll demonstrate how Drupal can be used “out of the box” to build a simple website. Readers who are familiar with Drupal already may still want to skim through this, as later series in the Using Drupal guide will assume knowledge of all content covered here. By the end, you’ll understand how to perform administrative tasks in Drupal, such as configuring modules, working with content types, and setting up site navigation. This series assumes that you already have Drupal up and running. For assistance with that, check out the Appendix A series, on Installing and Updating Drupal, as well as the helpful Drupal.org Getting Started guide.

To get things started with Drupal, we're going to build out a very basic website. The Mom & Pop, Inc. site project will cover many of the basic pieces you need to grasp the fundamentals of building with Drupal, and are a good foundation for the other series we'll be doing from Using Drupal. We'll take a tour through the administrative settings, create and manage content, work with modules and users, as well as changing the look of our new site. In this first lesson in the series we're going to review the Mom & Pop case study and discuss our implementation plan.