Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, what is the easiest/quickest way to read the 'pretty path alias' setting?
We have an issue over at Search API ranges, and this is what we came up with:
http://drupal.org/node/1511144#comment-6310144
$facet_current =$this->facet->getFacet();
$facet_adapter = $this->facet->getAdapter();
$facet_settings_global = $facet_adapter->getFacetSettingsGlobal($facet_current);
$facet_settings_global = (array)$facet_settings_global;
$facet_pretty_path_alias = $facet_settings_global['settings']['pretty_paths_alias'];
Seems a bit complex.
Maybe we can add a simpler function like '$this->facet->getFacetPathAlias()' ? Any ideas?
Comments
Comment #1
dasjofrom
facetapi_pretty_paths_form_facetapi_facet_display_form_alter
does this help?
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks, will go with this.
Comment #4
DYdave CreditAttribution: DYdave commentedHi morningtime and dasjo,
I'm afraid, we haven't found a proper solution for fixing this issue.
It's closely related with:
http://drupal.org/node/1741434
http://drupal.org/node/1764886
We're not going to get through with this unless we're able to find a proper solution coming from Facetapi or Facetapi pretty paths.
So far, our attempts in search_api_sorts to integrate with Facet API Pretty Paths have failed since we're unable to get the proper part of the URL.
Most likely we're going to have to investigate in this module in order to move forward on this.
Could you please let me know your thoughts on this issue and how we could possibly help?
Thanks in advance.
Comment #5
dasjoi have answered in http://drupal.org/node/1661552#comment-6499574