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.
By adminMN2023 on
Hello,
Working in Drupal 8.
I created a Menu Block to show just the Machines Listing portion of my main menu.
Initial Menu Level: 2
Maximum Number of Levels to Display : 3
Content Type: Machines
Region: Sidebar Right
AND it worked great!
Until I added a basic page - NOT Content Type "Machines" - but lives UNDER "Company" and is called "Articles".
Now "Articles" IS appearing in my sidebar menu.
But it shouldn't because while it IS a Level 2 menu link it IS NOT Content Type "Machines."
Am I misinterpreting how Menu Block Levels and Content Types work?
Any help is appreciated. Thanks!
Comments
Configure block
Thanks
I think I had gotten as far
I think I had gotten as far as you suggested beforehand. The menu DOES only show on the pages I want it too. However - two menu items appear that should not - as they are not part of the content type requested. Please see image link. I may be approaching it wrong. see example here
Hide Pages
Add that two page links in Hide box in Configure section, ideally it should be as it is , coz they are not part of Machine content type
Could you alos share content type Screengabs for both links?
Sorry sachinsuryavanshi, I'm
Sorry sachinsuryavanshi, I'm not understanding what you are asking me for.
The two links Articles and Software Download are Content Type "Basic Page".
Also I tried to hide them in the configuration block > page listing but that did not work either.
Now everything I add - that
Now everything I add - that is a second level link - shows up. Regardless of whether its the assigned Content Type or not.
Could this be a D8 bug?
This is definitely not
This is definitely not working correctly in my Drupal 8.2.7. ALL menu level two items are appearing in side menu ignoring the chosen Content Type filter (in this case - Content Type Machines)
Could this be a bug - if so, how do I go about reporting it? Thanks!