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.

CommentFileSizeAuthor
#5 quiz_teaser_view0.patch569 byteskylebrowning

Comments

greg_y’s picture

My 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 ...?

kscheirer’s picture

yes, 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.

igorik’s picture

Priority: Normal » Critical

Hi
I think that this is heavy unwanted behaviour.

Igorik
somvprahe.sk

westwesterson’s picture

Title: Teaser not displayed? » Teaser should contain quiz description

I 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.

kylebrowning’s picture

StatusFileSize
new569 bytes

Here is a patch, it adds a node prepare if teaser is true.

westwesterson’s picture

Version: 5.x-1.x-dev » 6.x-2.x-dev
Status: Active » Fixed

Works great!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

  • Commit 80a97b6 on 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x by westwesterson:
    Teaser should contain quiz description Issue #165065 by ocyrus
    
    

  • Commit 80a97b6 on 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages by westwesterson:
    Teaser should contain quiz description Issue #165065 by ocyrus
    
    

  • Commit 80a97b6 on 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages, 2269219 by westwesterson:
    Teaser should contain quiz description Issue #165065 by ocyrus
    
    

  • Commit 80a97b6 on 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, 2269219 by westwesterson:
    Teaser should contain quiz description Issue #165065 by ocyrus