Closed (fixed)
Project:
Facet API Pretty Paths
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2012 at 17:40 UTC
Updated:
5 Jun 2012 at 09:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedYes, it would be great to have full control over the paths generated.
Comment #2
dasjowould love to see proposals as a text or even better by submitting patches :)
Comment #3
dasjoattached a patch as an idea.
another possibility, as discussed with mh86:
define mappers in info hook as callbacks that other modules can alter
- 1st level: per field-type (taxonomy, entity reference, ...)
- 2nd level: per facet / realm?
Comment #4
dasjocommitted pluggability.
This introduces a new ctools plugin type "coders" which allows for having different implementations for the helper functions:
-
encodePathSegment-
decodePathSegmentAlias-
decodePathSegmentValue-
prettyPathtwo coder implementation plugins are provided by default
-
FacetApiPrettyPathsCoderDefault-
FacetApiPrettyPathsCoderTaxonomycoder plugins are registered using
hook_facetapi_pretty_paths_codersand may be altered as well:hook_facetapi_pretty_paths_coders_alterfacetapi_pretty_paths_coder_callbackhandles selecting the right coder implementation for a given task. you can define different coders on a per-facet basis, seefacetapi_pretty_paths_facetapi_facet_info_alterComment #5.0
(not verified) commentedUpdated issue summary.