Book Image

Drupal 7 Development by Example Beginner's Guide

By : Kurt Madel
Book Image

Drupal 7 Development by Example Beginner's Guide

By: Kurt Madel

Overview of this book

<p>Drupal is a powerful PHP content management system that allows you to build a wide variety of websites. By combining the power of HTML5, JavaScript, and CSS, you can develop and customize a fully-functional, world-class website. This book also covers some important changes from Drupal 6 to version 7, so even experienced Drupal users will find this straightforward guide useful.</p> <p>Drupal 7 Development by Example Beginner's Guide has numerous code examples that will not only introduce new Drupal 7 development concepts, but will give you the skills needed to build a world-class Drupal website. By following the development of a recipe-sharing, e-commerce site, you will quickly and easily get your own Drupal site up and running.</p> <p>Starting from a solid Drupal 7development environment, this book will show you how to extend Drupal with front-end code using Ajax, jQuery, and server side PHP. In addition to learning how to integrate HTML5, the book will cover responsive web design, and cutting edge CSS3. Using the example of an e-commerce and social networking site, this book will develop your Drupal programming skills so that you will be capable of developing advanced code good enough to be shared with the Drupal community.</p>
Table of Contents (19 chapters)
Drupal 7 Development by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – adding a Media field to our Recipe content type


We will use the manage fields administrative page to add a Media field to our d7dev Recipe content type.

  1. Open up our d7dev site in your favorite browser, click on the Structure link in the Admin toolbar, and then click on the Content types link.

  2. Next, on the Content types administrative page, click on the manage fields link for our Recipe content type.

  3. Now, enter Media as the label for the Add new field input type. Next to the field_ prefix label in the Name column, type media, and select File from the Select a field type dropdown and Media file selector as the widget, and click the Save button. On the next screen, click on the Save field settings button.

  4. On the RECIPE SETTINGS page, enter Associate multimedia files with the recipe. as the Help text, and then check the Upload, Library, and View Library checkboxes under the Enabled browser plugins section.

  5. Next, enter jpg and png as the Allowed file extensions for uploaded files...