AmericanRev2 Posted October 6, 2019 Posted October 6, 2019 the number 1. just looks bad i can't find out how to remove it either
Adlago Posted October 7, 2019 Posted October 7, 2019 You can remove the numbering of questions if you change this: Open a template: core_global_global/poll find this code <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$i}. {$question['question']}</span></h3> and replace with <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$question['question']}</span></h3> Note: In this case, all questions will not be numbered.
Adlago Posted October 7, 2019 Posted October 7, 2019 If this <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$i}. {$question['question']}</span></h3> replace with {{if $i>1 }} <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$i}. {$question['question']}</span></h3> {{else}} <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$question['question']}</span></h3> {{endif}} All subsequent questions will have correct numbering. The first question will be without a number.
Meddysong Posted October 8, 2019 Posted October 8, 2019 5 hours ago, Adlago said: If this <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$i}. {$question['question']}</span></h3> replace with {{if $i>1 }} <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$i}. {$question['question']}</span></h3> {{else}} <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$question['question']}</span></h3> {{endif}} All subsequent questions will have correct numbering. The first question will be without a number. You can wrap the if-clause around just {$i}. so that you don't have to repeat everything else.
Adlago Posted October 8, 2019 Posted October 8, 2019 5 hours ago, Meddysong said: You can wrap the if-clause around just {$i}. so that you don't have to repeat everything else. Yes, you are right. Thanks. This works correctly in my test installation. Template core_global_global/poll Find <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$i}. {$question['question']}</span></h3> replace <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{{if $i>1 }}{$i}.{{endif}} {$question['question']}</span></h3> Template core_global_global/pollForm Find <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{$i}. {$input->label}</span></h3> replace <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{{if $i>1 }}{$i}.{{endif}} {$input->label}</span></h3>
Martin A. Posted October 8, 2019 Posted October 8, 2019 <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{{if \count( $collection ) > 1 }}{$i}. {{endif}}{$input->label}</span></h3> Use that as the replace in pollForm to get exactly what you want. A single question poll will not get any numbers, but multiple questions will. And this as the replace in "poll" <h3 class='ipsType_sectionHead'><span class='ipsType_break ipsContained'>{{if \count( $poll->choices ) > 1 }}{$i}. {{endif}}{$question['question']}</span></h3>
AmericanRev2 Posted December 12, 2019 Author Posted December 12, 2019 thanks why would this not be default?
AmericanRev2 Posted December 26, 2019 Author Posted December 26, 2019 bump @Invision can you make this fix for 4.5?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.