Welcome, Guest
Username: Password: Remember me

TOPIC: Custom Rarnking Question's Render

Custom Rarnking Question's Render 3 years 5 months ago #60094

  • lsga
  • lsga's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi,

The default render of a ranking question is a table with the class 'rank', and the answers and the ranks are in the same line.
Ex:
<table class="rank">
	<tbody>
		<tr>
             		<td class="rank label">...</td>
			<td class="rank output">...</td>
		</tr>
	</tbody>
</table>

I looked in the documentation and it seems there is no way to change that templating, because the answers are called with: {ANSWER}...

So, where can I change that ? Is a change of this nature a 'hack', or is there a plugin or extension system to do it in a clean way ?
The administrator has disabled public write access.

Re: Custom Rarnking Question's Render 3 years 5 months ago #60095

  • lsga
  • lsga's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Ok, I found it in quanta.php, in the function do_ranking($ia). I changed $answer to:
$answer .= "\t<div class='rank'>\n"
    . "\t<div class='rank label'>\n"
    . "<strong>&nbsp;&nbsp;<label for='CHOICES_{$ia[0]}'>".$clang->gT("Your Choices").":</label></strong><br />\n"
    . "&nbsp;".$choicelist
    . "\t&nbsp;</div>\n";
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.145 seconds
Donation Image