开发者

Drupal, searching dynamically created pages

开发者 https://www.devze.com 2023-02-11 17:45 出处:网络
My drupal site contains a page where product details are generated from t开发者_如何学Gohe database based on product id.One requirement is that product details be searchable.The Drupal search indexes

My drupal site contains a page where product details are generated from t开发者_如何学Gohe database based on product id. One requirement is that product details be searchable. The Drupal search indexes the static pages. How can I index the details generated in the dynamic pages.

edit1: I am using php filter to generate the page. Ex drupalurl/products/id1, drupalurl/products/id2, drupalurl/products/id3 all will pull different content from the db.


hook_update_index - might be the solution to your problem. You will need to "render" your dynamic fields and send them to the indexer using this hook.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号