The FAQ module has been working perfectly, including displaying taxonomy-based breadcrumbs.

Then, I tried to use it together with Organic Groups. Now, the breadcrumbs have been taken over by OG, displaying an OG Group that the FAQ is in instead of the very cool taxonomy-based breadcrumbs.

I tried bumping the module weight of faq to 99 & it didn't help.

Any thoughts or experience with this? If I can't resolve this I'm going to have to choose between OG & FAQ.

(Also, I tried Custom Breadcrumbs module but it doesn't seem to support generating links for multi-level taxonomies)

Thanks!

CommentFileSizeAuthor
#1 faq_6x_323864.patch3.67 KBstella

Comments

stella’s picture

Status: Active » Fixed
StatusFileSize
new3.67 KB

It's nothing to do with the weight of the modules but rather instead in which hook they call drupal_set_breadcrumb(). I've modified the faq module so the breadcrumbs are now set when theming the page. Please try the attached patch or the latest dev release (available later today).

Cheers,
Stella

mrmelson’s picture

This seems to work now. Thanks!

However, the latest dev release appears to have a problem with displaying category links which is making testing difficult. When I go to /faq ... I get a list of categories; however, each category name is just a link to the root url of the site & takes me back to the homepage.

stella’s picture

Status: Fixed » Active

What are your faq settings? Can you send me a link to your site?

Cheers,
Stella

mrmelson’s picture

FAQ access control by using OG groups (and only making FAQs avail to certain groups) works great! :)

The site is behind a firewall...so it would take a bit of doings to get you access. Here are the settings that are checked/selected:
Questions:
- Clicking on question opens the answer in a new page
- Unordered List
- Show node links
- Date Descending

Categories:
- Categorize questions
- Clicking on category opens the questions/answers in a new page
- Unordered List
- Show FAQ Count
- Show sub-categories on FAQ category pages
- Enable FAQ taxonomy links

The desire is to have the /faq page display a list of categories/subcategories as links to a list of questions & a count.
The count of FAQ's works but the link doesn't. Interestingly, if I go to a specific faq ... the breadcrumb now works & shows the category/subcategory. I can click on the breadcrumb links & they work (e.g. /drupal/faq/8).

HTH,
M2

stella’s picture

Status: Active » Fixed

I can't reproduce this issue and my test site is now using the same FAQ settings. I can't think of any reason why the links should be affected. If this is still a problem, please open a new issue for it and include your organic group settings so I can try to replicate. Maybe verify all of the user permissions before you do this. The faq ones changed in the last week, so it may be related.

Cheers,
Stella

mrmelson’s picture

Hi Stella - I can open a new bug if you'd like. It seems to be related to pathauto. I have narrowed it down to the following lines:

if (!drupal_lookup_path('alias', arg(0) .'/'. $term->tid) && module_exists('pathauto')) {
$placeholders = pathauto_get_placeholders('taxonomy', $term);
$path = pathauto_create_alias('faq', 'insert', $placeholders, arg(0) .'/'. $term->tid, $term->tid);
}

Prior to executing the above code, $path = faq/8, afterwards $path is blank.

Let me know if you'd like this moved to a new bug & I'll take care of it.

M2

UPDATE: The problem has been resolved. I removed the pathauto setting for FAQs, saved, then put the setting back (fyi - the setting is: faq/[catpath-raw]). It's now working. So, it was apparently related to stale data somewhere. (On the plus side, I now have an Eclipse environment setup to debug drupal :)

stella’s picture

Excellent, glad it's working for you.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

stella’s picture

Released in 6.x-1.8.