Hi,

Is it possible to
1.) make two entirely separate FAQ's (for example, I want to have one FAQ for project A and another for B)
2.) Can I make those two FAQ's have different settings (for example, I want one to have inline categories, the other to have "clicking on category opens/hides questions and answers under category")

I am on drupal 6.x and I want to achieve the above with one FAQ module installation (unless I can install the same module twice without conflicts)

Thanks

CommentFileSizeAuthor
#21 faq_6x_299191.patch17.41 KBstella

Comments

emancipator’s picture

Version: 6.x-1.7 » 6.x-1.4
Priority: Normal » Critical
stella’s picture

Priority: Critical » Normal

I need to think about how this could be implemented, before I decide whether or not to do it. However, this is not a critical issue. It may be critical for your project, but it isn't for the faq module as a whole, so marking back to normal. I'm at drupalcon in Szeged this week so I won't have a chance to look at this feature request until next week at the earliest.

Cheers,
Stella

emancipator’s picture

Thanks for your reply!

I just thought it would be a nice feature to have but it looks like a lot of coding will be involved...

stella’s picture

Status: Active » Postponed

Marking this as postponed as it's not going to make it into the next official release. Will re-open then.

Cheers,
Stella

amariotti’s picture

I would also be interested in this for 5.x branch if possible. Not sure if the 5.x branch is still getting features added to it or not.

stella’s picture

alexanderpas’s picture

Version: 6.x-1.4 » 6.x-1.x-dev
stella’s picture

In the meantime, you might be able to achieve a similar effect using the views module.

amariotti’s picture

Good point. I will try that out. Thanks!

emancipator’s picture

Any other ideas? using view doesn't do it quite the same way...like how it has a nice drop down

amariotti’s picture

Nope, views won't do it. But go to the linked issue above to see the solution that's already built into the module.

lisset’s picture

Title: Make multiple FAQ with different settings » This would be awesome!

This is exactly what I was hoping this module would do. I have various mini-sites for different departments that would use different FAQs. I definitely echo emancipator's need and request. Thanks!

alexanderpas’s picture

Title: This would be awesome! » Make multiple FAQ with different settings

please, do not edit the title of the issue unneeded.

dleong’s picture

Hi there,
I would just like to also add my request for this feature to be implemented. In addition to multiple FAQ pages I would also ask if there is any way to restrict which categories or individual FAQ nodes a user sees/has access to based on user permissions or roles. For example, there are FAQs numbered 1 - 10. User A is allowed to see FAQ 1-5 but not 6-10, while User B is allowed to see FAQ 6-10 but not 1-5. I'd be satisfied with using subcategories for the different FAQs so long as users could be restricted to certain subcategories. Can this be accomplished by the existing FAQ module?

Thanks.

stella’s picture

The restricted access issue can probably be achieved using the "taxonomy access control lite" module: http://drupal.org/project/tac_lite Though you may need the latest dev release for integration with this module to work correctly.

dleong’s picture

Sounds promising - many thanks for the suggestion!

dccircuit’s picture

I would also like to see this feature implemented. Multiple FAQs on the same site. Subscribing.

obrigado’s picture

Version: 6.x-1.x-dev » 5.x-2.x-dev

Subscribing, this is exactly the functionality I need.

alexanderpas’s picture

Version: 5.x-2.x-dev » 6.x-1.x-dev
sorahn’s picture

subscribing

stella’s picture

Status: Postponed » Needs review
StatusFileSize
new17.41 KB

Try the attached patch, or the most recent dev version (available later today).

Like before, you can call the faq_page() function to embed FAQs in a normal node. For example print faq_page(0); would display all faqs for all terms, whereas print faq_page(1); would just display faqs associated with the term which had an id of 1. This requires the php filter input option by the way.

There are now two extra parameters to the faq_page() function: faq_page($tid, $question_display, $category_display);. These params override the default question and category layouts.

For example, to create a faq listing for term 1 which has the "questions inline" layout, with default categorization call:
print faq_page(1, "questions_inline");
To do the same, with "categories inline" layout, call:
print faq_page(1, "questions_inline", "categories_inline");

The list of possible question layouts is:

  • questions_inline : Questions inline
  • questions_top : Clicking on question takes user to answer further down the page
  • hide_answer : Clicking on question opens/hides answer under question
  • new_page : Clicking on question opens the answer in a new page

The list of possible category layouts is:

  • categories_inline : Categories inline
  • hide_qa : Clicking on category opens/hides questions and answers under category
  • new_page : Clicking on category opens the questions/answers in a new page

Cheers,
Stella

stella’s picture

Status: Needs review » Fixed

Released in 6.x-1.8.

JonoB’s picture

Hi Stella,

Thanks, as always, for the hard work.

I've got the multiple FAQ methodology working for the most part, but it seems that I cant get the actual category names to show up when embedding a FAQ category in another node.

For example, I'm using:

print faq_page(14, "hide_answer", "categories_inline");
print faq_page(16, "hide_answer", "categories_inline");

This shows each category's questions correctly (with the answer hidden), but there is no actual category name shown. The categories are separated correctly though, and I can see that its grouping the correct questions together.

stella’s picture

@JonoB: Can you open a separate support request? Perhaps include a screenshot, and also check your FAQ category settings.

Status: Fixed » Closed (fixed)

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