Needs work
Project:
Faceted Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2008 at 02:00 UTC
Updated:
1 Mar 2011 at 01:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
david lesieur commentedThere are no easy ways to override the title at the moment. You could edit one of Faceted Search's files as in #326797: remove title text from breadcrumb and results page.
Turning this into a feature request. Perhaps the page title should be set from within a theme function.
Comment #2
seanburlington commentedHi,
I need to theme the title for my site - thanks for the issue report which saved me from thinking there was already a way to do this.
The attached patch solves the problem for me - it'd be great to have it incorporated into the project.
I've just turned faceted_search_ui_set_title into theme_faceted_search_ui_title - then I set the title according to the themed results.
This should give identical functionality for existing users, with a theme function available for override.
Comment #3
seanburlington commentedThe previous patch missed one used on the function I've made themed
Comment #4
arski commentedhmm, in your last post, you should be replacing the old function by
drupal_set_title(theme('faceted_search_ui_title', $env));
not by
theme('faceted_search_ui_title', $env);
which does nothing :)
And also I would rather have the title setting inside the theme function. The common situation is that a person wants to have the same title on the search results page as the main page of some listing.. now with this I would still have to retrieve the actual title of a page to set it again.. which makes no sense..
otherwise working good, cheers
Comment #5
arski commentedOK, I take the second part of that comment back, seeing that the result pages are not in any menu etc., they have no default title, so this is surely needed. Maybe it would be a good idea to have the title of the start_page in the $env or something.. otherwise +1 for the patch.
Comment #6
seanburlington commentedHi arski,
I'm afraid I'm no longer using faceted search so I won't be able to update the above patch information.
I didn't manage to get my second comment rolled into a patch anyway so I'm marking this as needs work - hopefully what has been written so far is a good starting point for someone else who needs this functionality.
Comment #7
YK85 commentedsubscribing