Skip to content
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

Create new functions & options for the member directory block #28

Open
asirota opened this issue Sep 28, 2022 · 1 comment
Open

Create new functions & options for the member directory block #28

asirota opened this issue Sep 28, 2022 · 1 comment

Comments

@asirota
Copy link
Member

asirota commented Sep 28, 2022

Demo: https://mcabc.org/who-we-are/member-directory/

  1. Facets - configurable set of fields you can "filter" on. Fields of data type radio, dropdown, checkboxes are the only ones available for selecting
  2. confirm current search is searching all available fields on the search grid
  3. ensure a picture field can be selected as a field on the search grid and on member profile
  4. change to a table layout (vs grid)
  5. on member profile, explore the idea of moving the fields around on the result
  6. render the actual directory in the block (vs the short code) and the member profile
@asirota asirota changed the title Create lots of functionality options for the member directory block Create new functions & options for the member directory block Sep 28, 2022
@asirota
Copy link
Member Author

asirota commented Sep 28, 2022

The facets feature allows 1 click filtering on the results. The facets should be listed on the left hand side of the directory by default. They should respond by going to the top of the directory on narrow screens (phones).

Configuration:

In a block option field list all fields that have a "domain" - radio, dropdown, checkboxes. This should include common fields first in alpha order, followed by membership fields in alphabetic order.

The user can check one or more of these fields which will add a facet for this field

The end result is that the directory has a new filter for each facet.

Once a facet is selected the number of records should show somewhere. This option can be hidden.

Clicking on a facet will reload the directory filtered by that item

Only facets with at least one matching record should show in the facet list. If a facet does NOT have any "hits" that facet should not be shown at all in the list of option.

Edge cases:

  • long labels from the database can be shortened to suit the field length. Putting the facets on the left of the directory will allow longer facets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant