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

sachinsuryavanshi’s picture

  • Click on Configure block for your menu block,
  • Click on Page Tab under Visibility section
  • Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. An example path is /user/* for every user page. is the front page.
  • use any one option as per req; Hide for the listed pages/Show for the listed pages

Thanks

adminMN2023’s picture

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

sachinsuryavanshi’s picture

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?

adminMN2023’s picture

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.

adminMN2023’s picture

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?

adminMN2023’s picture

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!