You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

OctoberCMS后端侧边菜单不显示 Builder插件子菜单异常求助

Troubleshooting Missing Submenus Under "Contact Us" in October CMS Builder Plugin

It looks like your submenus under the "Contact Us" navigation aren't showing up as expected—let's walk through some common fixes to get them working:

  • Check User Permissions
    October CMS hides menu items if the logged-in user doesn't have access permissions. Head to Backend > Users > Permissions, find your user group, and make sure you've enabled permissions for the jumbotron and info actions under your stephenli.contactus plugin. Without these permissions, the submenus won't render even if your YAML is correct.

  • Validate YAML Indentation
    YAML is super picky about indentation—mixing spaces and tabs or inconsistent indent levels can break the menu structure. Double-check that your sideMenu entries are properly indented under the parent contact-us item, like this:

    contact-us:
      label: 'stephenli.contactus::lang.plugin.name'
      url: stephenli/contactus/info
      icon: icon-life-ring
      sideMenu:
        contact-us-jumbotron:
          label: 'FAQ Top Jumbotron'
          url: stephenli/contactus/jumbotron
          icon: icon-sitemap
        contact-us-info:
          label: Information
          url: stephenli/contactus/info
          icon: icon-sitemap
    

    Stick with 2 or 4 consistent spaces per level, no tabs allowed.

  • Verify Routes & Controllers Exist
    Make sure the URLs you've defined (stephenli/contactus/jumbotron and stephenli/contactus/info) point to valid controller methods. Check your plugin's routes.php file (if you have one) or confirm the controller files in plugins/stephenli/contactus/controllers/ exist and have the correct action methods defined.

  • Clear Backend Cache
    October often caches navigation configurations, so old cached data might be preventing the new submenus from showing up. Go to Settings > System > Cache and click "Clear Cache", or run these commands in your project root:

    php artisan cache:clear
    php artisan october:cache
    

    Then refresh the backend to see if the submenus appear.

  • Check Plugin Registration
    If you've added a custom registerNavigation() method in your plugin's Plugin.php file, it might be overriding the Builder-generated menu configuration. Make sure this method includes the sideMenu entries for your submenus, or remove the custom method if you're relying on the Builder's YAML config.

If none of these steps work, feel free to share more details—like whether the parent "Contact Us" menu shows up, if there are any errors in the browser console, or your plugin's directory structure—and we can dig deeper.

内容的提问来源于stack exchange,提问作者warmjaijai

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:35:18