Drupal 7 Media
上QQ阅读APP看书,第一时间看更新

Chapter 3. Working with Images

It's time to begin with our very first and long-time media resource on the Internet—images. Images are not only a requirement that a site builder needs to meet according to some spec, but rather they should be thought of from the ground up when designing a website.

On the web, a picture really is worth a thousand words (if not more) as they contribute to a website's lively look and feel. Can you think of Facebook without images? Instagram is a billion dollar venture based solely on taking images and sharing them with your peers. Pinterest is another good example of taking a concept such as bookmarks, adding some eye-candy images to it, and there's another startup for you.

In this chapter we will cover:

  • Adding image fields to custom content types
  • Understanding the Media module for site-wide media resources management
  • Installing and understanding the use of WYSIWYG and text formats
  • Embedding images in content via WYSIWYG
  • Creating image galleries, configuring them, and using them as blocks

Our theme content type for working with images in this chapter will be food recipes. Who knows? Maybe you can wrap your next venture based on this idea.

Because we have already learned in the previous chapter how to create new node's content types, how to add fields to them, and style the fields, we will not dwell into this again. Instead, I will show the new content type, called rezepi, which is a combination of the English word recipe and it's Polish translation przepis. Like it? That alone is probably worth a startup.