Hello,

I have a special case where I set a search_api based view the drupal frontpage, and instead of the title pattern set by Facet API Bonus (http://drupal.org/project/facetapi_bonus) module, the front page title pattern takes over.

What could I do so that the facetapi pattern takes precedence?

Files: 
CommentFileSizeAuthor
#3 i1617914.patch678 bytesattiks

Comments

Title:Page title pattern precedence / weightWeight ignored for custom pattern

I found weight can be set programmatically, and I set it to "-100", saved page title settings (it appeared on top) yet front page pattern is still taking precedence.

Any tips? :)

Title:Weight ignored for custom patternFront page pattern overrides other pattern that has higher weight

It seems like this code is taking precedence:

/**
* Implements hook_page_title_pattern_alter().
*/
function page_title_page_title_pattern_alter(&$pattern, &$types) {
  // If frontpage, then use the frontpage pattern and set the title.
  if (drupal_is_front_page()) {
    // Get the frontpage pattern
    $settings = page_title_get_settings();
    $pattern = variable_get('page_title_front', $settings['page_title_front']['default']);
  }
}

Would you accept a patch which checks for pattern weight, and if there is one higher than the front page, and it is global, it will use that?

Status:Active» Needs review
StatusFileSize
new678 bytes

I ran into the same problem, patch attached

In short: if there's a pattern specified for the front page, it will be used, otherwise nothing happens

Status:Needs review» Reviewed & tested by the community

Patch applied to 2.7 smoothly and works as advertised

it also solves case where front page is actually a node
but node tokens can't be used in the frontpage textbox
but with after applying the patch one can erase the frontpage setting (empty the textbox)
and thus the node specific settings will take effect

I believe there is nothing else adversely affected

Issue summary:View changes

better