Posted by kuzma on April 16, 2009 at 7:12pm
Jump to:
| Project: | Frequently Asked Questions |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
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)))
Comments
#1
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
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