Active
Project:
Faceted Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2009 at 11:28 UTC
Updated:
28 Jan 2009 at 11:04 UTC
It will be great to have a method (with a hook, for example) to put meta tags in faceted search results.
I tried to use nodewords with patch #340642 but i have so many error with it :-(
Is in plan something like this?
Comments
Comment #1
David Lesieur commentedCould you detail more precisely what you'd like to achieve? Should this work on a per-search result page basis, or per-node in results basis? Could you give some examples of tags you'd like to add, and what data you'd like to use with those tags?
Also, is this something Nodewords ought to do but does not because of bugs or missing features?
Comment #2
elioshHi David, thanks to answer me.
I have some web site using faceted search where FS is the main way to browse contents. On search results page (using guided search, i don't use for now keyword search) i'd like to have meta tag "keywords" and "description". The first, keyword metatag, could be filled with, for example, content type name, taxonomy terms, plus some other keywords generic defined for whole web site. Description metatag could be a composition in a phrase of some keywords (this is why i was thinking for a hook, so it could be generic).
How i try to do it with nodewords.
With drupal 5, i was capable of doing this using hook_nodewords and using it with this code:
With drupal 6, i try to do similar code, but i have some error. This is the code i tried:
I have errors if i try to "$env->execute". My execution works fine, but the second one, i think execution made by you, give me error on temp table creation (same table name).
If it's useful for you, this hook_nodewords is fired on nodewords_init.
While writing you this line, i was thinking: i can use hook_nodewords the same, without using faceted_search object, parsing by myself the query string. Can you point me the way to try this approach?
Thanks