How to Export Node Options and Text Formats in Drupal 7

The Features module is a powerful module which allows developers to bundle site configuration into a module. You could use Features to export content types, fields, views and a whole lot more. However, often I see developers have trouble exporting node options and text formats when they are still new to the Features concept.

In this article, I’ll go through why you should install Strongarm and how to export “Text formats”.

Responsive Tables In Drupal 7 With FooTable

The FooTable module for Drupal provides integration with the FooTable jQuery plugin. FooTable plugin makes it really easy to create responsive HTML tables that look great on small devices. Using a concept called “breakpoints”, you can define which column should be displayed or hidden when the table is being viewed using a mobile or monitor.

I do recommend that you check out the other features of the plugin. If you’re interested go to the demo section.

In this tutorial, we’ll look at the FooTable module for Drupal. The module currently integrates with Views and this allows you to create a table and define breakpoints. You can also use this module as an API and manually load the plugin for custom tables.

Using RobotsTxt Module In Drupal 7

The robots.txt file is used to prevent cooperating web crawlers from accessing certain directories and files. The file plays a major part in search engine optimization and website performance. Drupal ships with a standard robots.txt file that prevents web crawlers from crawling specific directories and files. If you’re curious just open up the robots.txt file within the Drupal root directory.

If you have to modify the robots.txt file within a multi-site setup for a specific site, this is where things start to get tricky because the file is shared across all websites. The solution is to use the RobotsTxt module. The module dynamically generates a robot.txt file that can be modified directly from the Drupal administration section for each site within a multi-site setup.

Using Location Map Module In Drupal 7

The Location Map module allows you to configure a single location for a website. You can view and configure the map location by going to /locationmap. Users who are given the “administer locationmap” permission can also modify the location. The module also offers a block that displays the location using Google’s Static Maps API.

In this video we’ll cover the following:

  • How to add a location to the map
  • How to add the static map block to a region

Display Status Updates With Twitter Pull Module

The Twitter Pull module is a light weight solution for pulling in and displaying twitter status updates. The module integrates with the Boxes module and makes it really easy to present a box with a user’s timeline, hashtag results and twitter search results. At its core, the Twitter Pull module is a simple API for pulling in status updates. If you are looking for a more generic solution for Drupal, look at the Twitter module.

Using Views Infinite Scroll In Drupal 7

The Views Infinite Scroll module allows you to convert a standard views pager into an infinite scroll. A standard pager for views consists of a previous and next link. This module allows users to paginate through content by simply scrolling to the bottom of the page.

In this video we’ll cover the following:

  • How to install Views Infinite Scroll and autopager jQuery plugin
  • How to configure an infinite scroll on a views listing

Import And Export Menus With Menu Import Module In Drupal 7

Menu Import allows site builders to import and export menu structures using a simple JSON style notation. The module helps site builders to create, test and deploy menu structures without having to re-enter in menu items over and over again – you will save a lot of time using this module.

Here is an example, if you were to import the text below, you’ll end up with a menu structure that represents the order and depth of the text.

Handling View Modes and Regions with Display Suite in Drupal 7

In the previous tutorial, we jumped right into using Display Suite. We selected a layout and configured fields for the Teaser and "Full content" view mode. In this tutorial, we’ll look at how to create a custom view mode, use view modes within the Views module, custom wrappers and custom CSS classes.

What is a view mode? View modes allow you to display content types in multiple ways. For example, the Article content type comes with a Teaser and "Full content" view mode. When you go to an article content page (node/1) you’ll be shown the "Full content" view mode of the article. Whereas if you view the article node on the homepage, you'll be shown the Teaser view mode of the article.

Configuring Layouts with Display Suite in Drupal 7

Display Suite allows site builders to customise how content is displayed. When I say content, I mean nodes, users and taxonomy pages as a basic example. At a lower level, you are modifying the display of an entity. All major pieces of content like nodes, users and taxonomy terms are simply entities. In Drupal 7, a lot of contributed modules implement their own entities. For example, Drupal CommerceField collection or Bean module just to name a few. Display Suite makes it very easy to customise the layout of any entity using a drag and drop interface without writing custom code or overriding template files.

Getting Started with JSON in Drupal 7

How can you transfer data between websites? There are many options and modules for Drupal out there. You can use the Services, RESTful Web Services or Views Datasource module. However, using those modules can sometimes be a bit overkill. If all you want to do is expose some data via JSON so that it's accessible for other websites, then it’s easier to create a custom menu item and just return the exposed data as JSON from a menu callback.