I'd like to access values from the views fast search form to set the views fast search HTML title tag (not the drupal title field).
It doesn't seem that I can access those fields with php from within the views header field where I've tried things like:
$name = drupal_get_title();
drupal_set_title($form['filter0']['#value'])
It also doesn't seem like I can correctly override the $title tag in page.tpl.php where I've tried replacing:
print $head_title
with things like:
print $form['filter0']['#value']
It's likely my ineptness with PHP and drupal coding that is causing my difficulties.
Would greatly appreciate any clues.
Great module...I'm finding it really, really useful.
Thanks!
Comments
Comment #1
adminfor@inforo.com.ar commentedHello PeterZ,
I was investigating a lot in the subject and finally came bak to the source, I've added the following code in my fastsearch module, as a workaround until final solution. This affect all the fastsearch views
after line 272
I have added:
you can see results here or here
The results is an h1 title at the begging of the page.
At this time I have tested also "drupal_set_title" instead of "drupal_set_html_head", but doesn't work. Seems that title is "all set" at the moment this piece of code run.
If you preffer not to modify the module, you may add the same piece of code in each view title or footer using the global var $_vfs_search_keys instead of $values array filtered as a php code (not tested!)
regards, Gustavo
Comment #2
pomliane commentedThis version of Views Fast Search is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.