Not sure whether this is a bug or a 'feature', but I find it somewhat strange.

Currently if I create a node and insert this PHP code into it:

<?php
$faq_output = faq_page();
print $faq_output;
?>

The title of the node that I created is overridden and shows as "Frequently Asked Questions" regardless of the title that I entered in the node's 'Title' field.

I find even stranger the Title that appears on the node that has several FAQ categories PHP-inserted into it. For example, I created a node and inserted several FAQ categories into it like this:

<h3>Category A</h3>
<?php
$faq_output = faq_page(5);
print $faq_output;
?>
<h3>Category B</h3>
<?php
$faq_output = faq_page(6);
print $faq_output;
?>

The title of the node once again was replaced, but this time with "Frequently Asked Questions - Title of Taxonomy Item 6". This is really unexpected behaviour, which makes great feature like ability to insert parts of the FAQ anywhere in the content unusable.

My setup: Drupal 5.7, CCK, View, Token, Custom Breadcrumbs, Date, Pathauto, Update Status.
My FAQ Settings
Questions:
* Page layout: Clicking on question opens/hides answer under question
* Use answer teaser: Unchecked
Categories
* Categorize questions: Checked
* Categories layout: Categories inline
* Show FAQ count: Unchecked
Weights
* Order for all Qs in all categories is set.
Rest of the options are disabled.

Comments

stella’s picture

Status: Active » Fixed

This should now be fixed and will be included in the next dev release (available later today).

Cheers,
Stella

stella’s picture

Released in FAQ 5.x-2.7 and FAQ 6.x-1.3.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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