Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | quiz_question_take-2371115-2.patch | 1.67 KB | djdevin |
Comments
Comment #1
briward CreditAttribution: briward commentedComment #2
djdevinThis 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.
Comment #4
briward CreditAttribution: briward commentedI'll give it a try, may be able to work around the "submitted" stuff. Thanks Devin!
Comment #5
briward CreditAttribution: briward commentedLooks 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.