{"id":162069,"date":"2023-02-23T05:11:41","date_gmt":"2023-02-23T05:11:41","guid":{"rendered":"https:\/\/news.gyankatta.org\/?p=162069"},"modified":"2023-02-23T05:11:42","modified_gmt":"2023-02-23T05:11:42","slug":"display-quiz-name-in-the-summary-table","status":"publish","type":"post","link":"https:\/\/news.gyankatta.org\/?p=162069","title":{"rendered":"Display quiz name in the summary table"},"content":{"rendered":"\n<p>To display the quiz name in the summary table on the quiz review page, you can add a new row to the summary table and include the quiz name in that row. Here&#8217;s an example of how you can modify the code:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Find the line in the code that starts with <code>$strreviewsummary = get_string('reviewsummary', 'quiz', ...<\/code><\/li>\n\n\n\n<li>After that line, add the following code:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">bashCopy code<code>$quizname = $quiz-&gt;name;\n$table-&gt;add_data(get_string('quizname', 'quiz'), $quizname);\n<\/code><\/pre>\n\n\n\n<p>This code retrieves the quiz name from the <code>$quiz<\/code> object and adds it to the summary table.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>You&#8217;ll also need to add a new language string to display the text &#8220;Quiz name&#8221; in the summary table. Add the following line to the <code>lang\/en\/quiz.php<\/code> file (or the equivalent file for your language):<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">goCopy code<code>$string['quizname'] = 'Quiz name';\n<\/code><\/pre>\n\n\n\n<p>With these modifications, the summary table should now include a row displaying the quiz name.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To display the quiz name in the summary table on the quiz review page, you can add a new row to the summary table and include the quiz name in that row. Here&#8217;s an example of how you can modify the code: bashCopy code$quizname = $quiz-&gt;name; $table-&gt;add_data(get_string(&#8216;quizname&#8217;, &#8216;quiz&#8217;), $quizname); This code retrieves the quiz name [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-162069","post","type-post","status-publish","format-standard","hentry","category-uncategorized","cat-1-id"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Display quiz name in the summary table - Gyankatta<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/news.gyankatta.org\/?p=162069\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Display quiz name in the summary table - Gyankatta\" \/>\n<meta property=\"og:description\" content=\"To display the quiz name in the summary table on the quiz review page, you can add a new row to the summary table and include the quiz name in that row. Here&#8217;s an example of how you can modify the code: bashCopy code$quizname = $quiz-&gt;name; $table-&gt;add_data(get_string(&#039;quizname&#039;, &#039;quiz&#039;), $quizname); This code retrieves the quiz name [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/news.gyankatta.org\/?p=162069\" \/>\n<meta property=\"og:site_name\" content=\"Gyankatta\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-23T05:11:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-23T05:11:42+00:00\" \/>\n<meta name=\"author\" content=\"sBagul\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"sBagul\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069\"},\"author\":{\"name\":\"sBagul\",\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/#\\\/schema\\\/person\\\/ba6f7a4ee74e137c4c2b2c991b4f28e9\"},\"headline\":\"Display quiz name in the summary table\",\"datePublished\":\"2023-02-23T05:11:41+00:00\",\"dateModified\":\"2023-02-23T05:11:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069\"},\"wordCount\":129,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069\",\"url\":\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069\",\"name\":\"Display quiz name in the summary table - Gyankatta\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/#website\"},\"datePublished\":\"2023-02-23T05:11:41+00:00\",\"dateModified\":\"2023-02-23T05:11:42+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/#\\\/schema\\\/person\\\/ba6f7a4ee74e137c4c2b2c991b4f28e9\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/?p=162069#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/news.gyankatta.org\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Display quiz name in the summary table\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/#website\",\"url\":\"https:\\\/\\\/news.gyankatta.org\\\/\",\"name\":\"Gyankatta\",\"description\":\"Online Examination, Speed and Efficiency\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/news.gyankatta.org\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/news.gyankatta.org\\\/#\\\/schema\\\/person\\\/ba6f7a4ee74e137c4c2b2c991b4f28e9\",\"name\":\"sBagul\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276ef0d75fcc5d663d2921ae3c0f1070d894ce89b14c9ddfe3369ebe20b7cbe5?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276ef0d75fcc5d663d2921ae3c0f1070d894ce89b14c9ddfe3369ebe20b7cbe5?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276ef0d75fcc5d663d2921ae3c0f1070d894ce89b14c9ddfe3369ebe20b7cbe5?s=96&r=g\",\"caption\":\"sBagul\"},\"url\":\"https:\\\/\\\/news.gyankatta.org\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Display quiz name in the summary table - Gyankatta","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/news.gyankatta.org\/?p=162069","og_locale":"en_US","og_type":"article","og_title":"Display quiz name in the summary table - Gyankatta","og_description":"To display the quiz name in the summary table on the quiz review page, you can add a new row to the summary table and include the quiz name in that row. Here&#8217;s an example of how you can modify the code: bashCopy code$quizname = $quiz-&gt;name; $table-&gt;add_data(get_string('quizname', 'quiz'), $quizname); This code retrieves the quiz name [&hellip;]","og_url":"https:\/\/news.gyankatta.org\/?p=162069","og_site_name":"Gyankatta","article_published_time":"2023-02-23T05:11:41+00:00","article_modified_time":"2023-02-23T05:11:42+00:00","author":"sBagul","twitter_card":"summary_large_image","twitter_misc":{"Written by":"sBagul","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/news.gyankatta.org\/?p=162069#article","isPartOf":{"@id":"https:\/\/news.gyankatta.org\/?p=162069"},"author":{"name":"sBagul","@id":"https:\/\/news.gyankatta.org\/#\/schema\/person\/ba6f7a4ee74e137c4c2b2c991b4f28e9"},"headline":"Display quiz name in the summary table","datePublished":"2023-02-23T05:11:41+00:00","dateModified":"2023-02-23T05:11:42+00:00","mainEntityOfPage":{"@id":"https:\/\/news.gyankatta.org\/?p=162069"},"wordCount":129,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/news.gyankatta.org\/?p=162069#respond"]}]},{"@type":"WebPage","@id":"https:\/\/news.gyankatta.org\/?p=162069","url":"https:\/\/news.gyankatta.org\/?p=162069","name":"Display quiz name in the summary table - Gyankatta","isPartOf":{"@id":"https:\/\/news.gyankatta.org\/#website"},"datePublished":"2023-02-23T05:11:41+00:00","dateModified":"2023-02-23T05:11:42+00:00","author":{"@id":"https:\/\/news.gyankatta.org\/#\/schema\/person\/ba6f7a4ee74e137c4c2b2c991b4f28e9"},"breadcrumb":{"@id":"https:\/\/news.gyankatta.org\/?p=162069#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/news.gyankatta.org\/?p=162069"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/news.gyankatta.org\/?p=162069#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/news.gyankatta.org\/"},{"@type":"ListItem","position":2,"name":"Display quiz name in the summary table"}]},{"@type":"WebSite","@id":"https:\/\/news.gyankatta.org\/#website","url":"https:\/\/news.gyankatta.org\/","name":"Gyankatta","description":"Online Examination, Speed and Efficiency","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/news.gyankatta.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/news.gyankatta.org\/#\/schema\/person\/ba6f7a4ee74e137c4c2b2c991b4f28e9","name":"sBagul","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/276ef0d75fcc5d663d2921ae3c0f1070d894ce89b14c9ddfe3369ebe20b7cbe5?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/276ef0d75fcc5d663d2921ae3c0f1070d894ce89b14c9ddfe3369ebe20b7cbe5?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/276ef0d75fcc5d663d2921ae3c0f1070d894ce89b14c9ddfe3369ebe20b7cbe5?s=96&r=g","caption":"sBagul"},"url":"https:\/\/news.gyankatta.org\/?author=1"}]}},"views":612,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=\/wp\/v2\/posts\/162069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162069"}],"version-history":[{"count":0,"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=\/wp\/v2\/posts\/162069\/revisions"}],"wp:attachment":[{"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/news.gyankatta.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}