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.
if it possible to make a start button using a show : field in views ? not only using a render entity from quiz node i'd like to create a custom start button in views.
is there a relationships node quiz that i should activate in views advance ??
thanks
Comment | File | Size | Author |
---|---|---|---|
#3 | view_page.png | 8.25 KB | Bala.addweb |
#3 | view_field_config.png | 62.36 KB | Bala.addweb |
#3 | view_config.png | 91.91 KB | Bala.addweb |
Comments
Comment #2
imunklovarian CreditAttribution: imunklovarian commentedComment #3
Bala.addweb CreditAttribution: Bala.addweb at AddWeb Solution Pvt. Ltd. commentedI created two Links with the help of view's relationship, One(Start Quiz) will directly redirect to start Quiz page and Second (View) will Redirect to quiz's parent node's view page. where we can find a tab for Start Quiz, name 'Take'. My Step For the View Are as below:
- Go to Home » Administration » Structure » Views and create new View for 'Quiz properties'
- Do Following Steps:
#Advanced
- select 'Quiz question relationship: Parent_nid', In Relationships and stay unchecked the option 'Require this relationship',
- Do Check for 'Distinct' in Query Setting
-
# Field Section:
1) Firstly Remove the Quiz question properties: Quiz question properties ID field from field section
2) Firstly Select Quiz question relationship: Parent_nid , Configure field as below:
in the REWRITE RESULTS
- make check for ' Rewrite the output of this field',
- in Text Section 'Start Quiz'; (Button or Link name),
- Check For 'Output this field as a link' and set 'node/[parent_nid]/take' in path
- leave futher options as the same
Save the View.
- In Further Option, you can also Select 'Content: Link' in Field Section of View. Which will redirect to View page Of parent node of Quiz.from there we can create Task By Click on 'Task' tab.
Please find the attached screenshot.
(Note: I have made Questions For true/false Quiz.)
Comment #4
Bala.addweb CreditAttribution: Bala.addweb at AddWeb Solution Pvt. Ltd. commentedComment #5
djdevin"Needs review" items need patches :)
If you want to create a take quiz link or button you can just create a link to node/123/take as you very nicely described above!
Comment #6
djdevinComment #7
djdevin