nerdhaus / eldrich

Custom code and config for eldrich.host
11 stars 2 forks source link

Configurable "canon filter" #17

Closed eaton closed 7 years ago

eaton commented 7 years ago

Create ArgumentPluginBase and ArgumentDefaultPluginBase, with a matching field_canon_preferences on User accounts, to enforce user-specific settings for gear, factions, locations, etc.

Options for field_canon_preferences should be:

  1. Only show canon material in global listing pages
  2. Show canon material and my material in global listing pages.
  3. Show all material, regardless of source, on all pages.

Option #2 is a little dicey, and might require the use of a query alter hook instead of arguments. We'll also need to ensure that we don't create duplicates when referring to entities with multiple sources.

Any view of things with field_sources that isn't explicitly scoped for a user account, a campaign, or an inspiration node, should include the argument to enforce the user's prefs.

eaton commented 7 years ago

Finis.