Hi all,

I've got my taxonomy menu setup just about right. It beautifuly display on my views pages,
but when I go a level deeper to (in this case) a product page, the TMB disappears.

This changed after reconfiguring my URL pattern for the product.

Before it was; www.domain.be/lang/node-title
Now it has changed to: www.domain.be/cat/subcat/node-title

As mentioned, TMB displays on the 'cat'-page and the 'subcat'-page.
Settings are:

Select a parent option: dynamic
Select a parent level: 1
Depth: 2

There are no page restrictions as well. Don't really see what the problem might be.

Thanks for your help!

Comments

Anonymous’s picture

Hey,

A few questions:

- Did the TMB ever appear on your product pages? Or did it disappear after you changed the url patterns?
- Are your product pages the standard drupal node/nid pages? Or have you replaced them with a custom path, through Views or something?
- Is your product linked to your category with a term reference field? You don't use entity reference or something?

Anonymous’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Closed due to inactivity

fbreckx’s picture

Hi Sam,

Sorry for my late response, but this project was 'on hold' for a while. Up till now.

- The TMB has appeared on node-pages, but that changed after configuring URL patterns.
Resetting the patterns to the default values ([node:title]) doesn't seem to fix the problem.

- The node pages are standard indeed. No changes here.

- Products are linked with Term Reference Field.

fbreckx’s picture

Status: Closed (won't fix) » Active
Anonymous’s picture

This seems weird, url patterns shouldn't matter at all if you haven't overwritten your standard node pages with Views or Panels or something. Something else must have changed as well.

How is your taxonomy set up? With the following structure

- item 1
- item 2
-- item 3
-- item 4
--- item 5
- item6

and your settings, only items 3 and 4 should show up.

How is your understanding of code? You could always open the .module file and follow the different steps of the build process, see where it fails. Start at line 157, see what taxonomy_menu_block_find_active_tid() returns.

You have cleared cache after changing stuff right?

fbreckx’s picture

Weird indeed. This is the setup of my taxonomy (with i18n - translated terms).

- item 1 NL
--subitem 1.1 NL
--subitem 1.2 NL
--...
- item 2 NL
--subitem 2.1 NL
--subitem 2.2 NL
--...

- item 1 FR
--subitem 1.1 FR
--subitem 1.2 FR
--...
- item 2 FR
--subitem 2.1 FR
--subitem 2.2 FR
--...

Even stranger; the submenu appears on:

- the taxonomy views (overview item 1 and 2) in both languages - as expected.
- the node page, but only in Dutch and everything with "item 1". No succes with "item 2"

My understanding of code isn't that great so I cannot give any feedback on that matter.
I do clear cache after changes.

Very weird.

Anonymous’s picture

And you are sure you have items tagged with "item 2"?
Are all your terms translated correctly? Meaning, you didn't forget to translate a term or something?

fbreckx’s picture

Yep, the items are tagged correctly and translations are right..

Anonymous’s picture

I'm sorry but I have no idea what is going on in your specific case, I cannot seem to reproduce the behavior you describe.
The easiest way to get to the bottom of this would be to debug through code, but since your understanding of code isn't that great that will be kind of difficult.

Anonymous’s picture

Status: Active » Closed (cannot reproduce)
fbreckx’s picture

Status: Closed (cannot reproduce) » Active

Setting this back to active because I have some new information.

My taxonomy block doesn't use the URL's generated by pathauto.
Terms have the right URL on their edit-page (domain.com/lang/cat/subcat), but when published TMB uses domain.com/lang/subcat).

Also, when visiting domain.com/lang/cat/subcat, the page perfectly displays.
Clearing cache, rebuilding menu's, rebuilding URL's or reconfiguring Pathauto doesn't do the job..

@samspinoy: if you like, I can send you the domain (via PM).

Anonymous’s picture

Hey,

URLs generated by pathauto shouldn't matter because TMB looks at the internal Drupal path.

Anyway, yes I'd like a link to your website via PM so I can check out what is actually going wrong, I'm quite curious now.

Anonymous’s picture

Status: Active » Closed (cannot reproduce)

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 1630054)