0
votes

I've created a (modest) question answers system in Drupal.

I'm using forum content type and enabled comments on nodes. I'm also using node comments module to convert comments to nodes.

Everything works great, I still have a small issue on the "Search" View. When I search for a word, the search engine displays all nodes containing that word.

However, if the node is an answer, it just displays the single answer without the parent question and the other answers (brothers).

I would like to display the question instead. Is it easy to do ?

thanks

1

1 Answers

0
votes

You could edit the fields using hook_nodeapi() $op = 'search result' to include the parent question.