Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      June 2, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 2, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 2, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 2, 2025

      The Alters: Release date, mechanics, and everything else you need to know

      June 2, 2025

      I’ve fallen hard for Starsand Island, a promising anime-style life sim bringing Ghibli vibes to Xbox and PC later this year

      June 2, 2025

      This new official Xbox 4TB storage card costs almost as much as the Xbox SeriesXitself

      June 2, 2025

      I may have found the ultimate monitor for conferencing and productivity, but it has a few weaknesses

      June 2, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      May report 2025

      June 2, 2025
      Recent

      May report 2025

      June 2, 2025

      Write more reliable JavaScript with optional chaining

      June 2, 2025

      Deploying a Scalable Next.js App on Vercel – A Step-by-Step Guide

      June 2, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      The Alters: Release date, mechanics, and everything else you need to know

      June 2, 2025
      Recent

      The Alters: Release date, mechanics, and everything else you need to know

      June 2, 2025

      I’ve fallen hard for Starsand Island, a promising anime-style life sim bringing Ghibli vibes to Xbox and PC later this year

      June 2, 2025

      This new official Xbox 4TB storage card costs almost as much as the Xbox SeriesXitself

      June 2, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Creating a Mega Menu using Acquia Site Studio

    Creating a Mega Menu using Acquia Site Studio

    January 21, 2025

    Mega menus are an expandable menu feature with a multitude of options within a single interface, utilizing a dropdown format.

    Mega menu designs can vary in complexity. They are particularly beneficial for managing a considerable amount of content or providing a quick overview of a sub-category of pages.

    Mega Menu Img 1

    Steps to create:

    Required:

    Acquia Site Studio: (https://www.acquia.com/drupal/site-studio) 

    Menu Item Extras module: (https://www.drupal.org/project/menu_item_extras)

    Adding a field to your menu:

    A field can be added to the menu through the “Structure -> Menus” section. To initiate this process, you must edit your existing menu or create a new one. Once in the menu editor, the next step is to add a field. This field can be of any type based on your requirements.  

    Since this is a Site Studio example, we’re going to choose a “Site Studio – Layout Canvas” field. This way we’re able to drop any component into the menu.

    Mega Menu Img 2

    Adding content to your new menu field:

    Depending on the type of field you are using, you may need to edit the “Manage Display” options for that specific field. 

    In our example, we associate the mega menu “content” with the first-level menu item.  

    This menu item functions as the designated location for displaying your content. So, that’s the exact menu item where you should add your content.

    Mega Menu Img 7

    Mega Menu Img 3


    Rendering your menu item field on a Site Studio menu template:  

    To learn more about creating a multi-level menu, refer to Acquia’s documentation here. 

    Begin by building your menu structure. Once you have the menu structure in place, identify the location where you want your layout canvas field to be displayed within the menu. In our example, we are placing the second-level menu AND our “layout canvas” field inside the first level of the menu. 

    The wrapper will act as a dropdown that will be toggled.

    Mega Menu Img 4

    You can utilize various elements to insert your “content” from your Drupal menu. For this example, we will use the Inline element.

    Mega Menu Img 5

    Adding your token to the inline element:

    Next, we’ll need to locate the token associated with the field we added to our menu item. 

    Within your element, use the token browser to locate the token under the “Custom menu link” dropdown. In our example, we called it “Mega Menu Canvas”. 

    Mega Menu Img 6

    Save the menu template and refresh your website. Hover over the parent menu item to which you added the mega menu! 

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleData Structures & Algorithms in Swift [SUBSCRIBER]
    Next Article TeamSpeak is back and ready to fight Discord for the PC community app crown

    Related Posts

    Security

    ⚡ Weekly Recap: APT Intrusions, AI Malware, Zero-Click Exploits, Browser Hijacks and More

    June 2, 2025
    Security

    Exploitation Risk Grows for Critical Cisco Bug

    June 2, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Critical Sectors at Risk: India Reports 593 Attacks in the First Half of 2024

    Development

    Whisp, a Pure PHP SSH server, with Ashley Hindle

    Development

    NeuroFly: An AI Framework for Whole-Brain Single Neuron Reconstruction

    Development

    The Loper Bright Decision: How it Impacts Cybersecurity Law

    Development
    GetResponse

    Highlights

    Development

    UnitedHealth’s Leadership Criticized by Senator Wyden for Appointment of Underqualified CISO

    May 31, 2024

    “I write to request that your agencies investigate UnitedHealth Group’s (UHG) negligent cybersecurity practices, which…

    The best online photo printing services of 2025: Expert tested and reviewed

    May 1, 2025

    Google Classroom Adds 10 More Languages Starting May 19

    May 21, 2025

    The Front-End Performance Optimization Handbook – Tips and Strategies for Devs

    May 8, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.