Understanding and Using Views Contexual Filters

Views Contextual Filters is a feature of the Views module that allows a Views to accept filtering from url or other inputs. This allows you to create lists that depend on conditional or user input. There are many reasons why you may want to filter a list based on url input. Take for example a list of articles. You may have many articles and wish to categorize them.  In the case of this website, I'd like to be able to filter my article lists by the different Tags I give the articles. I have several taxonomy terms, CiviCRM, Drupal, and Integration.

How to Create a Entity Reference View

The Entity Reference module is a useful Drupal 7 module because it can be used to reference any entity from a field added to any other entity. For example, you can add an entity reference field to the Basic Page content type, which references taxonomy terms of vocabulary (bundle) tags. When you are creating a page and want to reference a particular term, it may help the user to see a custom format for the terms. By default the term name will be displayed for the terms that can be referenced.

Drupal/CiviCRM Integration

Example Use Case

This example is a one event page that has tabs of many types of content and views attached, and it allows an anonymous user to view the info, see registered participants, register for the event via one webform. This also automatically creates a contact, membership, active drupal user, and participant event registration to the event, logs in the user, and sets his user entered password via text field on the webform.

Using this method, you can create easily customizable membership joins and event registration pages, which leverages the full gauntlet of advanced Drupal 7 modules and the easiness of customizing the layout and style with css in the Drupal theme.

SEO -- Creating Outcomes

This article is part one of a series of articles about SEO (search engine optimization), SEM (search engine marketing), and strategies to achieve high page rank in Google and the other major search engines. With this series we hope to lay down a basic approach to website structure and content design that, if properly implemented, will give your website the proper foundation to achieve high page rank.

Presenting at Dallas Drupal Days

Dallas Drupal Days 2011Dallas Drupal Days 2011 will be held on July 8-9, 2011 at the University of Texas at Dallas. This event will cater to the business side of Drupal on Friday and focus on technical aspects of development on Saturday.

On Friday, July 8, 2011 at 9:30 AM I will be presenting CiviCRM for Non-Profits and Small Businesses. Join in and learn about what an integrated CRM system can do for your organization!

If you are following on Twitter, look up @DallasDrupal.

Daily emails from chkrootkit using postfix / sendmail command

You have installed chkrootkit and it's now running with daily cron, but unless you are logging in daily to check the logs, you won't know of any potential problems. Here's a simple way to have the daily report emailed to you with only postfix installed, using the sendmail command.

Edit /etc/chkrootkit.conf and add the following


Presenting at Southwest Drupal Summit

SW Drupal Summit 2011Southwest Drupal Summit 2011 will be held on January 27-28, 2011 in Houston. This weekday event will cater to the business side of Drupal development and will feature numerous featured speakers, including Dries via video from Australia!

On Thursday, January 27, 2011 at 10:55 AM I will be presenting CiviCRM for Non-Profits and Small Businesses. Join in and learn about what an integrated CRM system can do for your organization!

Limit Autosubscribe to Enabled Nodes

Messaging and Notifications are popular Drupal modules that can be used for a website forum to notify original poster of replies, or an administrator of comments posted for a specific content type. When 'Set all users to "autosubscribe" by default' is enabled in admin/messaging/notifications/content, it generates notification subscriptions even for node types that are not enabled.

December CiviCRM Meetup

CiviMemberJoin us on the second Monday in December (12/13) at Level Ten offices to learn more about Custom Profiles, Custom Fields, and setting up online membership sign-up forms. RSVP on the Meetup site.

Bring along your friends and associates, as well as questions and examples of the work you may be doing with CiviCRM.

Presenting at DrupalCamp Austin

DrupalCamp Austin 2010Update: See the video after the jump!

DrupalCamp Austin 2010 will be held November 20-21 with more than 300 attendees from all over the United States and as far away as Canada and Sweden.

On Sunday, November 21, 2010 at 4:30 PM I will be presenting CiviCRM for Non-Profits and Small Businesses. Join in and learn about what an integrated CRM system can do for your organization!

Sort Multiple Formats of Date Fields in Views

Scenario: two or more content types. First content type uses a CCK Date field with date, hours, minutes, while the other content type(s) only need a date field without the hours and minutes. Because a CCK Date field sets the granularity globally, most users set up two different fields with two different granularity settings. This works well, until there is a need to display all of the content sorted by date - Views can't sort and/or merge two independent fields and then do a global sort.

Node ID as View Argument from SEO-friendly URL Path

Scenario: two content types - department, employee. Employee has a CCK node reference back to department, with a Pathauto setting for URL generation in the format of department/employee. Within the Views page views we want 2 or more separate lists, perhaps one displaying current associated employee projects, and another one all past projects. The respective page displays would have paths set to department/%/current and department/%/past, with % being the employee argument used within the view.


Subscribe to Blog