Book Image

Drupal 7 Cookbook

By : Dylan Spencer James
Book Image

Drupal 7 Cookbook

By: Dylan Spencer James

Overview of this book

<p>Drupal 7 is a modern Content Management System famed for its flexibility and power. Using Drupal you can easily create custom functionality that would otherwise have to be purchased in many of the other leading CMSs.<br /><br />"Drupal 7 Cookbook" is filled with recipes to help you to do more with Drupal and improve your skills. Chapters range from content creation, to theming, to managing your site. You will learn how to create your own content types and use them to create Views, Blocks, and Pages. This book will take you from novice to pro in just 12 chapters.<br /><br />In a wide variety of practical recipes, you will learn how to work with views and panels, how to provide translations for your content to create a multilingual site, and to integrate your site with social media. You can develop the Zen starter theme or learn how to create custom cross-browser compatible Drupal themes, including themes for mobile devices. The Drupal 7 Cookbook contains all of the means necessary to take your skills from those of a novice Drupal user to a proficient site builder.</p>
Table of Contents (18 chapters)
Drupal 7 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Setting up the Add this social bookmarking service


Add this is a sharing platform which takes care of providing links to many of the most-popular services that users will want to use to share content. One of the main benefits of the Add this service is that it provides useful analytics on the way that content is being shared on your site. The result of this recipe will be a block that displays sharing buttons as follows:

Getting ready

To use the Add this bookmarking service, you will need to sign up for an Add this account. You can do this by going to the following URL and then selecting Join now:

How to do it...

We will first set up a new text format to use for adding JavaScript code. We will then create a new block and fetch the Add this code, and place it in the block.

  1. 1. Select Configuration from the admin menu, then select Text formats.

  2. 2. Select +Add text format.

  3. 3. In the Name field, enter raw.

  4. 4. Ensure that the administrator role is checked, and no others.

  5. 5. In...