All blocks are not visible in configs of tb_megamenu

Created on 31 July 2024, 4 months ago
Updated 1 August 2024, 4 months ago

So this module provide option to add blocks in menu. However, in my case, in the configs of tb_megamenu I am not able to see the list of all enabled blocks. (only a few of them are getting listed here)

For this I noticed in the module under src/TBMegaMenuBuilder.php there is a condition written on line 267 $block->access('view') that if the block has view access then only it will be visible in the dropdown.
However I don't understand what is this view access, as I am not able to see list of all enabled blocks even as an adminstartor user.

This might be a silly question and some misunderstanding on my side. So if this is not an actual issue then let me know how to fix this on my side or what I am missing here. Thanks in advance!

🐛 Bug report
Status

Active

Version

3.0

Component

User interface

Created by

🇮🇳India sj.suraj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sj.suraj
  • 🇮🇳India ravi kant Jaipur

    @sj.suraj
    The block should be assigned in region.
    If block are not assigned in region then TB - MegaMenu will not identity to blocks.

  • 🇮🇳India sj.suraj

    @ravikant
    Yeah right, I am talking about those blocks only which is placed in the region and enabled. And yet they are not visible in TB - MegaMenu config.

  • 🇺🇸United States themodularlab

    @sj.suraj,

    If these are new blocks you are trying to attach to TB Megamenu, you'll need to clear drupal cache before they'll be visible via TB menu admin.

  • 🇺🇸United States tbenice

    Im experiencing this issue with a views exposed form in a block. It is assigned a region in the block layout but doesn't appear for use in the megamenu. I also cleared cache and no love. thanks!!

  • 🇮🇳India sj.suraj

    No luck with clearing cache.

    @tbenice Thanks for adding. Glad to know I am not the only one who is facing this issue.

Production build 0.71.5 2024