18.11.2015 Views

Beginning Drupal 8

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 19 ■ Creating a Blog Site<br />

With these requirements in hand, we can then identify how we’re going to meet those requirements<br />

with <strong>Drupal</strong>. The solutions corresponding to the requirements in the previous list are as follows:<br />

1. Using the Article content type as the foundation for a Blog content type, which<br />

addresses all the requirements for a Blog content type. Articles have a title, body,<br />

and image field.<br />

2. Use taxonomy to categorize content by topic. We’ll need to create a vocabulary,<br />

assign the topics as terms in that vocabulary, and update our Article content type<br />

to include a term reference field that provides the capability to select a topic.<br />

3. <strong>Drupal</strong> 8 provides a WYSIWYG editor as part of core.<br />

4. Create a view that renders a teaser list of blog posts, sorted in descending order<br />

by date posted.<br />

5. Create a view that lists the taxonomy terms in the Topic vocabulary, using a block<br />

as the format, and add links to the taxonomy listing pages for each term.<br />

6. The Article content type has commenting enabled by default.<br />

Installing <strong>Drupal</strong><br />

After identifying the requirements and how to meet those requirements, the next step in creating the blog<br />

site is to install <strong>Drupal</strong>. Follow the steps outlined in Appendix A to install <strong>Drupal</strong> either locally, on your<br />

server, on shared hosting, through a service such as Pantheon or Acquia.<br />

Installing and Creating a Theme<br />

After installing <strong>Drupal</strong>, the next step is to pick a theme. You have several choices:<br />

• Create your own theme from scratch.<br />

• Start with one of the <strong>Drupal</strong> starter themes and customize it to meet your needs.<br />

• Find a theme on www.drupal.org/project/project_theme that is close to what you<br />

want, and modify the CSS and layout to meet your specific needs.<br />

• Find a theme on www.drupal.org/project/project_theme that meets your needs<br />

without modification.<br />

• Find and pay for a theme on one of the <strong>Drupal</strong> commercial theme sites.<br />

• Convert a theme from another CMS, such as WordPress, into a <strong>Drupal</strong> 8 theme.<br />

• Use one of the standard <strong>Drupal</strong> 8 core themes.<br />

For our blog project, we’ll focus on the fourth option in the list. Visit www.drupal.org/project/<br />

project_theme, filter your search by core compatibility of <strong>Drupal</strong> 8.x, and click Search. Searching through<br />

the list of themes, the one that most closely fits what we are trying to achieve on our example blog site is<br />

Gratis. Using the process described in Chapter 6, download, install, and set Gratis as the default theme for<br />

our new blog site. After setting Gratis as the default theme, our new blog site is ready (see Figure 19-1) to<br />

begin the site-building process.<br />

202

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!