When selecting "Label questions and answers" option with "Clicking on question takes user to answer further down the page" layout option, question label appears twice (i.e. Q:Q:) on the faq-page. Answer label however appear correctly.
The question label shows as intended with "Questions Inline" layout option selected.

Comments

declassified’s picture

Component: User interface » Code
declassified’s picture

In the absence of helpers, I had a look at it myself and here's what I found;
In the faq/includes/faq-category-questions-top-answers.tpl.php file on line 104 I found what seems to be the offending code. The issue was resolved by commenting out the entire line.

	<div class="faq-question">
        <strong><?php print $question_label; ?></strong> <<<< line 104
        <?php if (!empty($question_label)): ?>
          <strong class="faq-question-label">
          <?php print $question_label; ?>
          </strong>
        <?php endif; ?>
declassified’s picture

Status: Active » Needs review
rediguana’s picture

I can confirm this. I removed this line (104) and it removed the duplicate 'Q:'. This resolved the issue for me.

<strong><?php print $question_label; ?></strong>

Steven Brown’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
StatusFileSize
new580 bytes

Changed the version to 7.x-1.x-dev because in both versions this is an issue and the patch needs to be tested and committed to the 7.x dev branch.

Attached is a patch that removes the problem child line :)

Please test the patch and if it fixes your issue please change status of issue to reviewed & test by the community.

Thank you

Steven Brown’s picture

Status: Needs review » Fixed

Patch has been tested and committed. http://drupalcode.org/project/faq.git/commit/f8bbdeb

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.