Skip to content

Update directories.md #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions docs/src/content/features/directories.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ As an editor, Channels give you the flexibility to compose a Directory made up o

### 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 and belong 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:
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 and belong 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 |
| ----------- | ----------- |
Expand All @@ -63,21 +65,21 @@ Directory Items are pieces of content, and pages, in their own right but also a

Alternatively, LocalGov Directories provides site-builders with a toolkit to create bespoke Directory Item types without having to write any code. More information about customizing Directory Items can be found in the [Directories Technical documentation](/devs/features/directories-technical).

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 e.g. 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 it's list and do still impact the available Facets (as described below).
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 e.g. 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_ Channel. 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:
In order to allow users to filter Directory Items by Directory Facets, Items must be 'tagged' with the appropriate Facets. When creating or editing an Item, the available Facets are determined by the Channels they belong to. For example, consider the following Channels:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I this this "they belong to" is incorrect here. We should update that to "the node belongs to". It's the channels that the current node is attached to that defines what facets are available (I think).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I took so long getting back to this, I had no idea there was a response...

Anyhow, I don't think content designers know what nodes are, there is no mention of nodes on the page to help, and I'm afraid that I don't understand the suggested update. @markconroy


**Sports facilities**

* Facet types: Sports, Location
* Content types: Sports venue
* 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.
When creating or editing _Sports venue_ Directory Items _Sports_ and _Location_ facets can be selected while with _Schools_ the _Age_ and _Location_ facets will be available.

## How-to

Expand Down Expand Up @@ -119,8 +121,8 @@ From here, click the _Add directory facets_ button and repeat the process until

| Age | Location |
| ----------- | ----------- |
| 11-16 years | North Somewhere |
| 11-18 year | South Somewhere |
| 11-16 years | North Scarfolk |
| 11-18 year | South Scarfolk |

#### The Channel

Expand Down