Hello,

I have tried to set up the faq module to my taste for 2 days now, and I always hit a brick wall and try to find work around solutions for my needs.

My initial requirement is to set up a separate faq page for each of my vocabulary terms. Which I already figured out how to do.

Then I wanted to create nodes which were categorized under the terms to provide links in blocks, these nodes will contain the faq's of that term only inline using faq_page(tid).

My problem is that the question href points to /faq#anchor (anchor being a number) instead of
/nodename#anchor. So when I click on a question , the page changes and then moves to the anchor, instead of moving to the anchor in the node.

I am using Drupal 5.7
Plugin Version 5.x-2.9

My settings for the module are:

Question:
Clicking on question takes user to answer further down the page
Unordered List

Categories:
Categorize Questions(Yes)
Categories Inline
Group questions and answers for 'Categories inline'

Comments

stella’s picture

Status: Active » Fixed

For the "clicking on question takes user to answer further down the page" layout, it does exactly what it says - takes the user to the answer further down on the page, and not to the node! However, if you're clicking on the question immediately above the answer text, ensure the "Disable question links to nodes" option is not enabled (available in dev release, it is disabled by default in the 2.9 release).

If you're referring to the question list at the top of the page, then there's no way to open the node page by clicking these questions. Perhaps you should be using the "Clicking on question opens the answer in a new page" layout.

Cheers,
Stella

fotakis’s picture

Status: Fixed » Postponed (maintainer needs more info)

Hello Stella,

Thank you for your answer, but I think there is a confusion on the terminology I used since I am new with drupal.

I will try to simplify the question.

When I use faq_page(tid) programmatically and the questions and answers are listed, the question links that point to the answer anchors are like this http://domain/faq#3234.

If i included the faq programmatically using faq_page($tid) on a page/node/story/block and the url its http://domain/my_pretty_faq, then the question links points to http://domain/faq#3234 and not http://domain/my_pretty_faq#3234. This is causing the effect I mentioned, where the anchor link navigates to another page, instead of the anchor within the same page.

So,

Is this expected and nothing can be done about it?
Is there a hook I can override which creates the faq link?
Is there an option that overlooked?

Regards,
Fotis

stella’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Fixed

This was actually a bug in the module. I've fixed this in the 5.x and 6.x versions and will be in the next dev release (available later today). I would provide a patch but the code has changed substantially since the 5.x-2.9 release and it may not apply cleanly. I would recommend using the dev version (yes, it is stable) or the next official release, which I hope to make before the end of the month.

Cheers,
Stella

fotakis’s picture

Thank you very much, I will try it now

stella’s picture

Released in faq versions 5.x-2.10 and 6.x-1.6.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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