This chapter goes through the minimum steps for registering a theme within Drupal by creating a .info file. It also shows the syntax for a theme to be able to add custom CSS to your site as we start to implement our example design.
Additional resources
Theming Basics for Drupal 7 will provide a solid foundation for translating designs into Drupal themes. You'll learn to work with .info and tpl.php template files, how to add CSS and JavaScript, how to work with the render system new in Drupal 7, how to override templates, create regions, and use the Theme Developer tool. You'll start with the original HTML, CSS and JavaScript template files that were provided by the designer so that you can follow along in translating the design into a Drupal 7 theme. The video explains Drupal's design vernacular, concepts, and special needs. We'll show you how to associate the proper CSS & Javascript files, add all of the necessary regions, and control the HTML output through page and node-specific templates. You'll learn about the best tools and strategies for controlling the look and feel of your Drupal website.
This series will cover the basics of Drupal theming while the more advanced theming topics of working with the template.php file will be covered in the Advanced Theming for Drupal 7 series. These videos pair with each other, and will finish the complete implementation of the 960 Robots theme used in both videos. You can download the theme we're building from Drupal.org: 960 Robots.
Examples in this video are based on Drupal 7 and its variants.
In this introduction video, we set the stage for the Theming Basics series. We give an overview of what Drupal theming is, the common files we will work with, and the overall steps involved. Then we start off by defining and taking a look at the .info file and HTML template (tpl.php) files. We talk about regions and theme features, introduce the render() function, and explain dynamic templates. While we are teaching Drupal 7 theming, we also make sure to point out the important differences between Drupal 6 and 7.
Additional resources
Drupal would like to assume that every page on your website will use the same layout. As it turns out, this is often not the case. The home page of your site, in particular, regularly uses a different layout. In this lesson we will demonstrate how you can use Panels to build a unique home page layout for your site.
Additional resources
In this video we introduce the template.php file and create our first preprocess function. We explain what the preprocess hooks are and how to name the function properly, then we show a list of existing variables, and how to modify one of those existing variables.
Additional resources
In this lesson we bring everything we have learned in this series and just round it out with some tips and tricks now that we have images in our content.
Additional resources
In this lesson we go a little deeper on working with Text Formats and having the ability to create different WYSIWYG editor situations for different users/roles. We also go over the process of using and editor and best practices when doing so.
In this lesson we cover the IMCE Module and utilizing it to get images into your content. We cover the configurations that are unique to this module such as user upload paths and different per role restrictions when it comes to uploading images. We discuss how this module integrates perfectly with your editors "Image" button and creates a pretty easy work flow for the average web user.
Additional resources
In this lesson we cover using the Media Module and how it works for both methods of getting images into your content. The Media Module has the ability to be a widget for the image field or a button inside your editor. We discuss the pros and cons of these methods and you could get the best out of both with just a little tip.
Additional resources
Display Suite for Drupal 7
CourseThis lesson covers all the updates/differences in the latest 2.x version versus other Drupal 7 releases. The new 2.x version of Display Suite is still in active development at the time that this video was published, but we want to make sure you know the changes that are coming when the new version is finally released. This video is very important to view if you are using Display Suite version 2 for the first time and have watched other videos in this series. It covers UI changes/updates as well as feature differences.
Additional resources
In this lesson we cover how all over the configurations we have learned using Display Suite are able to be exported to code. This video shows how to do this using CTool but can also be done with Features as well.
Additional resources
In this lesson we cover another "extra" of Display Suite, Views Displays. This basically allows you to take over a view template file and use Display Suite to layout your views.
Additional resources
In this lesson we cover several extra options provided by the included "Extras" module with display suite. We will show how turning on the Contextual Links extra makes it easier to edit a layout when viewing an entity that is using it. We also look at the Page Title extra that allows you to hide/show the title for a particular layout. Finally we discuss a very powerful feature that allows you to have an option of an end user to select between different view modes.
Additional resources
Region to Block
FreeIn this lesson we learn how you can take a display region and create a block out of it to be placed in Drupal core's block system.
Additional resources
In this lesson we cover using the search display portion of Display Suite. This allows you to have a custom layout for your search results as well as your user search results. Display Suite offers lots of functionality here that you just can't get with a core configuration of search.
Additional resources
Display Suite Fields
FreeIn this lesson we cover adding different type of custom fields to your layout using Display Suite. From adding a custom code field, blocks, to dynamic fields, each of these can be moved around your layout and replicated/modified across different display modes.
Additional resources
Organic Groups with Drupal 7
CourseIn this lesson Joe Shindelar covers all aspects of Organic Groups and access control. He describes how Drupal's access API allows for Organic Groups to function in such a way that certain groups and/or pieces of content can be hidden from users that don't have access to it. He demonstrates how you can add fields to groups and/or content types to have fine control over this access control on an individual basis versus the defaults. He also demonstrates how you can switch this control at any time to give a user access to content they may not have had access to at time of publication.
Additional resources
In this lesson we give a tour of some of the views that Organic Groups and Organic Groups Extra created and are using. We give a brief understanding of how all the references and relationships can make Organic Groups a confusing thing to grasp.
Additional resources
In this lesson Karen will go into more detail about how the Entity Reference and other group and reference fields work in Organic Groups. She will show how you can add more fields to the membership and display them in Views. Karen will also illustrate how to create additional membership types, like a membership that is intended to be temporary rather than permanent.
Note: This video was recorded using older versions of some of the modules. At the time there where 2 different og_reference* fields that you needed to handle. og_reference and og_group_ref_other_groups_ref, in current versions of the modules used there is just one og_reference field.