Adding a mouseover teaser of the answer - patch ready

kuzma - April 16, 2009 - 19:12
Project:Frequently Asked Questions
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Hi,

So I've already patched my own copy of faq to display a teaser of the answer as mouseover text of a question, but I think it is a nice idea and that a lot of people would appreciate it, so I would like to suggest this feature be added to the faq module.

To add this feature is really simple. Whenever there is an l() call for a question. add this to the $options argument:
$options=array('attributes'=>array('title'=>$node->teaser))

For example, I just wanted it for our main view in the new_page.inc file, and on line 128 I have:
$nodes[] = l($node->question, "node/$node->nid",$options=array('attributes'=>array('title'=>$node->teaser)))

#1

kuzma - April 16, 2009 - 19:51

It occurs to me now that the name is misleading: I meant "ready for patching" as in I have written exactly what to do to change the link calls correctly.

#2

stella - October 27, 2009 - 12:21
Status:active» won't fix

This isn't something I'm currently willing to add to the module as I think it's bad for usability and could be annoying for your site's visitors. Sorry. However, this can all be done in your theme without any modifications to the module itself, so that's the recommended solution if you wish to keep this functionality.

Cheers,
Stella

 
 

Drupal is a registered trademark of Dries Buytaert.