Our front page uses Views to show a teaser list of recently published nodes. Only the quiz node does not show teaser text.
I've looked at the view definition page and there is nothing there that helps. The block is supposed to be a teaser list and, indeed, teasers for other node types do show up properly.
The same problem occurs in a conventional (non-Views) teaser list: see http://lifetwo.com/production/taxonomy/term/131%2C72 (the quiz is titled "How Much Do You Know About Cancer Risks? Take This Quiz;" it's currently at the top of the list.)
What's odd is that in node_revisions table there IS text in the teaser field for that quiz node. For some reason it's not being displayed.
Comments
Comment #1
greg_y commentedMy mediocre php and Drupal skills may be wrong in how I read this, but is it because function quiz_view (at about line 449 in my patched quiz.module) only executes if $teaser is false -- in other words, if the node is NOT being displayed as a teaser? So there's no provision for the node being displayed as a teaser ...?
Comment #2
kscheireryes, both the quiz and multichoice question have this problem,
they don't return anything when asked for a teaser.
I plan to take a look at this and other theming problems next week,
hopefully we can get a more consistent behavior.
Comment #3
igorik commentedHi
I think that this is heavy unwanted behaviour.
Igorik
somvprahe.sk
Comment #4
westwesterson commentedI think that the quiz teaser should contain the description of the quiz with a link to take the quiz as a default. This would be a lot more useful than a blank node on the front page. This default might also make the quiz node more apparent to users as to what happens when they visit the node.
Comment #5
kylebrowning commentedHere is a patch, it adds a node prepare if teaser is true.
Comment #6
westwesterson commentedWorks great!
Comment #7
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.