After setting up FAQ to display all FAQ's on a single page, and disabling all links to FAQ nodes, i've found that links from the Random FAQ's block shows the links to the direct node - which doesn't make sense after configuring FAQ module to prevent users from accessing FAQ nodes.

Could this be easily solved/overiden?

I think that the CCK redirect may help - but never used that...

Ideas...? ;)

Comments

stella’s picture

Category: support » feature

The disable links to FAQ nodes feature was only designed with the FAQ pages and not with the blocks. Extra changes will be required to make the FAQ blocks link to the FAQ page to do what you require.

Cheers,
Stella

asak’s picture

Priority: Normal » Minor

Thanks stella.

If this is critical for anyone else:

Change line 1211 and 1238 from:
$items[] = l($node->question, 'node/'. $node->nid);

To:
$items[] = l($node->question, 'faq');

To change both blocks to link all nodes back to the faq page.

This could be a handy feature at due time ;)

stella’s picture

That will work, but I'd prefer the final solution to link to the actual answer on the faq page, rather than the top of the faq page.

stella’s picture

Status: Active » Fixed

I've added this to the latest dev release, which will be available later today. However, rather than changing the questions to link to the 'faq' page as suggested, I've just changed them to be just text (no link). The 'All FAQs' link underneath will take the user to the faq page as normal.

Cheers,
Stella

Status: Fixed » Closed (fixed)

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

venusrising’s picture

This seems to occur with version 6 too. FAq Block link goes to node page, is it safe to use the above fix for current 6 version too?

stella’s picture

It should have been committed to Drupal 6 too.

stella’s picture

Released in faq 6.x-1.9 and 5.x-2.13.

darktygur-1’s picture

Version: 5.x-2.12 » 6.x-1.11
Priority: Minor » Normal
Status: Closed (fixed) » Needs review
StatusFileSize
new2.73 KB

We just upgraded to the latest version of faq module (late, I know) and were surprised to find that the links in our faq block turned into plain text, which is really not user-friendly. I don't see any reason not to just link to the question. I've attached a patch that turns them back into links, because it looks like a regression to me. If people want to see all FAQs, they can click All FAQs. If they want to see a particular question, they should be able to just click the question, not have to click All FAQs and then hunt for it.

The patch ended up being more complicated than I originally thought because of the different "Page layout" options. I had to make links like /faq#n123 work in almost all of them.

darktygur-1’s picture

StatusFileSize
new3.07 KB

I forgot to change both of the block types that list faq questions.

stella’s picture

Status: Needs review » Fixed

Please just disable the option 'Disable question links to nodes' at admin/settings/faq/questions.

darktygur-1’s picture

Status: Fixed » Needs review

We're using the questions_top page layout (Clicking on question takes user to answer further down the page). Unchecking 'Disable question links to nodes' causes each question heading on the /faq page to become a link to the node, which isn't what we want. Is there something wrong with linking directly to the question on the /faq page even when linking to the 'node' is undesirable?

stella’s picture

Status: Needs review » Fixed

there shouldn't be - please open a separate ticket for that request.

darktygur-1’s picture

Thank you. For the sake of anyone else that comes across this, the issue is at #829368: Link directly to faq questions on the faq page when linking to question nodes is disabled

Status: Fixed » Closed (fixed)

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