Creating Content in Drupal 7

Exclusive offer: get 50% off this eBook here
Drupal 7 First Look

Drupal 7 First Look — Save 50%

Learn the new features of Drupal 7, how they work and how they will impact you

$23.99    $12.00
by Mark Noble | December 2010 | Content Management Drupal Open Source

Drupal is a popular Open Source content management system.

In this article by Mark Noble, author of the book Drupal 7 First Look, we will take a look at creating content in Drupal 7.

Drupal 7 First Look

Drupal 7 First Look

Learn the new features of Drupal 7, how they work and how they will impact you

  • Get to grips with all of the new features in Drupal 7
  • Upgrade your Drupal 6 site, themes, and modules to Drupal 7
  • Explore the new Drupal 7 administration interface and map your Drupal 6 administration interface to the new Drupal 7 structure
  • Complete coverage of the DBTNG database layer with usage examples and all API changes for both Themes and Modules
        Read more about this book      

(For more resources on Drupal 7, see here.)

Creating content for your site is at the core of any Content Management System like Drupal. The primary changes for Drupal 7 relate to an updated interface. Let's look at the new interface in detail.

Selecting a content type to create

To create content in Drupal 7, first log in to your site and then click on Content from the site toolbar. Drupal will now display the new Content Administration page.

Move mouse over the image to enlarge it.

In Drupal 6, this page could be displayed by selecting Administer | Content Management | Content from the Navigation menu.

From here, click on the Add new content link. Drupal will now display a page allowing you to select the type of content you want to create. Depending on the modules you have installed and enabled, you will have different content types available.

In previous versions of Drupal, this page could be reached by selecting the Create Content link from the Navigation menu.

You can also select the type of content to add using the shortcut bar. You can access the shortcut bar by clicking on the toggle at the far right of the toolbar:

The shortcut bar has a list of links in it that can be used to quickly access commonly used functionality, and it appears as follows:

You can customize the links in the shortcut bar and users can use either the default set of shortcuts or they can have their own.

Now select the type of content you want to create. For this example, we will use the Basic page type.

Content UI

The interface to create content has been altered drastically from Drupal 6. Let's go through the interface in detail.

The top section of the page should be familiar to experienced editors. This is the place to enter your title as well as the full text of the page. In a departure from previous versions, the node summary, which is used when multiple nodes are displayed on a page, is an entirely separate optional field.

Drupal 7 First Look Learn the new features of Drupal 7, how they work and how they will impact you
Published: November 2010
eBook Price: $23.99
Book Price: $39.99
See more
Select your format and quantity:
        Read more about this book      

(For more resources on Drupal 7, see here.)

Creating node summaries

To create a node summary, click on the Edit summary link next to the Full text label. Drupal will display a second field that can be used to define your summary.

The Summary entry in Drupal 7 is much easier for new content editors to work with. There is now a separate text area where the Summary can be entered. Of course, you can still use a subset of the full text by simply leaving the Summary blank.

Formatting text

Below the Full text field, you will find a list of available text formats that can be applied to the text field.

This display is much more compact than that in previous versions making it much easier to select a text format to apply. Text formats are used to limit which HTML tags can be inserted into the full text field. By default, Drupal 7 includes Plain Text,Filtered HTML, and Full HTML formats. If you enable the PHP filter module, you will also have access to the PHP code text format. These are all configured identically to the Drupal 6 Input Filters of the same name.

Text formats can be edited by selecting Configuration from the administration toolbar and then selecting Text formats from the Content Authoring section. The interface for creating text formats is very similar to the Drupal 6 interface for creating and editing input formats. You can still assign text formats to roles and control which filters run on the input. However, some of the filters have been renamed and additional information has been added to the display to help you select which filters you want to apply. The filters map as follows:

  • Convert URLs into links was called URL filter in Drupal 6
  • The Convert line breaks filter was called Line break converter in Drupal 6
  • Correct broken HTML was called HTML corrector in Drupal 6
  • Escape all HTML was part of the Drupal 6 HTML filter that was broken up to improve usability
  • Limit allowed HTML tags was also part of the Drupal 6 HTML filter
  • The PHP evaluator remains as is from Drupal 6

Additional node properties

Below the text format, you will find a set of vertical tabs containing all of the optional properties you can apply to your new node:

This display replaces the collapsible field sets used in Drupal 6. The new display is much better looking and easier to use. The contents of each tab are similar to prior versions.

Summary

In this article we took a look at creating content in Drupal 7.


Further resources on this subject:


Drupal 7 First Look Learn the new features of Drupal 7, how they work and how they will impact you
Published: November 2010
eBook Price: $23.99
Book Price: $39.99
See more
Select your format and quantity:

About the Author :


Mark Noble

Mark Noble has worked in software development and website design for over 13 years in a variety of capacities including development, quality assurance, and management. He takes pride in developing software and websites to make businesses run more effectively and delights in helping users to get their jobs done more easily.

Mark currently works developing websites to help libraries manage their books. He also does occasional contract work for clients in a variety of industries.

When he isn’t in front of a computer, Mark enjoys playing with his family, photography, and geocaching.

Books From Packt


Drupal 7
Drupal 7

Drupal 6 Attachment Views
Drupal 6 Attachment Views

Drupal 6 Search Engine Optimization
Drupal 6 Search Engine Optimization

Drupal 6 Performance Tips
Drupal 6 Performance Tips

Drupal 6 Panels Cookbook
Drupal 6 Panels Cookbook

Drupal E-commerce with Ubercart 2.x
Drupal E-commerce with Ubercart 2.x

Flash with Drupal
Flash with Drupal

Drupal 7 Module Development: RAW
Drupal 7 Module Development: RAW


Your rating: None Average: 5 (1 vote)
It is truly a nice and by
It is truly a nice and helpful piece of info. I am happy that you shared this useful information with us. Please stay us up to date like this. Thank you for sharing.
cookbook by
It’s been really great going through your blog post, very well informed and described. Great to read and know more about such kind of stuff.

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
u
s
L
7
L
K
Enter the code without spaces and pay attention to upper/lower case.
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software