forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
![]() |
||
---|---|---|
.. | ||
src | ||
LICENSE.txt | ||
README.md | ||
composer.json | ||
facets_short_pretty_paths.info.yml | ||
facets_short_pretty_paths.install | ||
facets_short_pretty_paths.module | ||
facets_short_pretty_paths.services.yml |
README.md
Shortens Facets Pretty Paths:
- Removes the term ids from the term aliases. If a machine name is not available yet, there is a fallback to the default term coder, with the term id, to guarantee unicity.
- Multiple values (Facet items) are delimited by a dot, the Facet alias is present only once.
So we have e.g.: /color/black.yellow.red instead of /color/black-1/color/yellow-2/color/red-3
Dependencies
- Facets Pretty Paths
- Optional: Taxonomy Machine Name
Configuration
To comply with the previous required dependency, the default
taxonomy field name used for the path resolution is the base field
definition from Taxonomy Machine Name: machine_name
.
If you wish to use another one, it can be overridden as
$settings['facets_short_pretty_paths_field_name'] = 'field_name';
Related Facet Pretty Paths issues:
A contributed solution has been favoured to a patch as
- we introduce another dependency (https://www.drupal.org/project/facets_pretty_paths/issues/3024640)
- it required to override the active_filters service (https://www.drupal.org/project/facets_pretty_paths/issues/2878617)
Roadmap
- Make the facet items delimiter configurable