LocalGov Drupal User Guide

Using the different directory items

Directory items are pieces of content, and pages, in their own right but also a member of 1 or more Directory Channels. For example, a School content type could allow editors to

  • publish detailed information on individual schools
  • be listed to the Secondary schools Channel

LocalGov Drupal comes with some generic Directory Item types which can be used as-is or can be extended to meet your needs:

Type Uses
Page General purpose.
Venue Sports facilities; parks. Provides location integration.
Organisation Libraries; Schools; Provides location integration.

Alternatively, LocalGov Directories provides site-builders with a toolkit to create bespoke Directory Item types without having to write any code. More information about customising Directory Items can be found in the Directories Technical documentation.

As a minimum a Directory Item must belong to a Primary Channel, and this can be any Channel which accepts Directory Items of that type – for example, School. The Primary Channel is required as it is the basis for the inferred URL and breadcrumb (as described above). Items may also belong to multiple Other Channels, these additional Channels do not influence the URL or breadcrumb but will include the Item in its list and do still impact the available Facets (as described below).

In order to allow users to filter Directory Items by Directory Facets, Items must be 'tagged' with the appropriate Facets. When creating\editing an Item, the available Facets is determined by the Channels it belongs to. For example, consider the following Channels:

Sports facilities:

  • Facet types: Sports, Location
  • Content types: Sports venue

Secondary schools:

  • Facet types: Age, Location
  • Content types: School

When creating\editing Sports venue Directory Items Sports and Location facets can be selected while with Schools the Age and Location facets will be available.