官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 门源| 台东市| 获嘉县| 龙川县| 甘肃省| 隆昌县| 雷州市| 随州市| 阳曲县| 苗栗县| 萨迦县| 贵阳市| 平度市| 东辽县| 探索| 施秉县| 兴隆县| 饶平县| 江华| 涡阳县| 岑巩县| 澜沧| 潍坊市| 阿合奇县| 兴城市| 东平县| 铜川市| 昌平区| 易门县| 富川| 海兴县| 三都| 哈巴河县| 昂仁县| 崇州市| 临桂县| 清远市| 衡山县| 溧阳市| 贵定县| 吉木萨尔县|