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
Comment #1
Anonymous (not verified) commentedHey,
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?
Comment #2
Anonymous (not verified) commentedClosed due to inactivity
Comment #3
fbreckx commentedHi 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.
Comment #4
fbreckx commentedComment #5
Anonymous (not verified) commentedThis 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?
Comment #6
fbreckx commentedWeird 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.
Comment #7
Anonymous (not verified) commentedAnd 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?
Comment #8
fbreckx commentedYep, the items are tagged correctly and translations are right..
Comment #9
Anonymous (not verified) commentedI'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.
Comment #10
Anonymous (not verified) commentedComment #11
fbreckx commentedSetting 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).
Comment #12
Anonymous (not verified) commentedHey,
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.
Comment #13
Anonymous (not verified) commented