Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Compare these two webpages:
http://opl.cias.rit.edu/node/53
-Does not use Node Type Filter to filter content
http://opl.cias.rit.edu/taxonomy/term/27?type=biography
-Does use Node Type Filter to filter content
Notice that the second webpage, the webpage that does use Node Type Filter, does not display the "Projects" link in the Primary Links menu.
Comment | File | Size | Author |
---|---|---|---|
#10 | not_filtered_by_node_type.png | 20.42 KB | nrackleff |
#10 | filtered_by_node_type.png | 19.58 KB | nrackleff |
Comments
Comment #1
NancyDruInteresting problem. How is the "Projects" link being built? I'm assuming you have some contributed module doing it. I also assume that node/53 is not of the "biography" type.
This module intercepts all db_rewrite_sql calls and applies the node filtering to them. I'm not sure that there is any easy way to prevent the module that is building the "Project" menu item from being affected by the filtering.
Comment #2
john.karahalis CreditAttribution: john.karahalis commentedThe "Projects" menu item was created by hand in admin/build/menu. The Project page itself is created by Views, but I don't think that should have an effect on the menu item.
And yes, you are correct that node/53 is not of type "biography". It is of type "page".
Comment #3
NancyDruAhh, and Views will do a db_rewrite_sql, so it too is being subjected to the node_type_filter.
Comment #4
NancyDruIs this still occurring with the -dev version?
Comment #5
jordiestrada CreditAttribution: jordiestrada commentedWhen I enable this module, I lost node reference of my content type.
Comment #6
NancyDruSince I cannot reproduce this, I need you to test this. Please try the entire function with this:
NOTE: this change the module from using "type" to "tfilt" so other modules that set this parameter (e.g. Taxonomy Browser) will not work with this change.
If this works, I will try to come up with a more generic way to fix this.
Comment #7
NancyDruComment #8
milos1234 CreditAttribution: milos1234 commentedsubscribe
Comment #9
milos1234 CreditAttribution: milos1234 commentedi have the same problems, almost all of my menu items are disappearing when using this module. the new function doesnt seem to fix it.
thanks!
Comment #10
nrackleff CreditAttribution: nrackleff commentedI am having the same problem where 2 of 4 primary menu links disappear when I filter a page view by node type. I am attaching two screen shots. The Not_filtered screen has 4 nav items and then once I filter it, you can see that there are only two.
Comment #11
greekman CreditAttribution: greekman commentedThe same problem here,
it makes disappear some menus
Comment #12
mitnickhun CreditAttribution: mitnickhun commentedthis fix doesnt work at me:\