Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

A tutorial document that will help you build a case directory for your Drupal 7 site. See gbi.georgia.gov/cases for an example.

License

Notifications You must be signed in to change notification settings

GeorgiaGov/recipes__d7_law_enforcement_directory

Repository files navigation

How To Build a Law Enforcement Case Directory

Building a Feature for your Drupal 7 site.

Introduction

As a law enforcement agency, you may want to present information about your open cases on your website. This can be useful for collecting leads from the public; furthermore, greater transparency leads to greater trust in your organization. The Georgia Bureau of Investigation does exactly this with their Cases page.

Drupal excels at taking your case data, helping you structure it, and then formatting it for display. You can use core Drupal and few popular contributed modules to recreate most of what GBI has on their website without touching any code. For extra flair, you can add a couple snippets of custom code to smooth out the user experience.

In this tutorial, you are going to:

  1. Build a Case content type
  2. Build a view
  3. Export all your new configuration to a reusable Feature.
  4. Add custom code that:
    • Prefixes extra information to the case node title.
    • Changes the display label of the Case Date per Case Type.

Ready? OK!

Requirements

A working Drupal 7 site with these contributed modules installed. If you need help installing contributed modules, you can refer to this documentation on drupal.org.

(If you don’t have a development environment and don’t want to use your production site for this exercise, you can quickly set up an empty Drupal 7 site using Acquia Dev Desktop and use that. Your new configuration will be portable between sites!)

Onward to part 1: create a content type.

About

A tutorial document that will help you build a case directory for your Drupal 7 site. See gbi.georgia.gov/cases for an example.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages