I've created a display suite mode called 'Quiz' (which contains a template file called 'quiz.tpl.php') and attached it to the multichoice and quiz 'default' displays but when actually taking the Quiz it does not use the correct display suite template ('quiz.tpl.php').

It uses the correct display suite template if I go directly to the question's node page (i.e "node/2013") but not when I visit the question via the Quiz (i.e "node/1023/take/1").

As discussed in IRC, this may be a result of the Quiz question not using the usual rendering mechanism.

CommentFileSizeAuthor
#2 quiz_question_take-2371115-2.patch1.67 KBdjdevin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

briward’s picture

Priority: Normal » Major
djdevin’s picture

Version: 7.x-5.0-alpha4 » 7.x-5.x-dev
Status: Active » Needs review
FileSize
1.67 KB

This might work.

It does end up showing some things we don't want during quiz taking (like "Submitted by admin on Tue, 11/11/2014 - 02:03") so we'll have to find a way to override that stuff.

Status: Needs review » Needs work

The last submitted patch, 2: quiz_question_take-2371115-2.patch, failed testing.

briward’s picture

I'll give it a try, may be able to work around the "submitted" stuff. Thanks Devin!

briward’s picture

Looks like it appears to be using the correct display suite template now however appears to be rendering it at the bottom of the template and not where defined in the display suite settings.