# Setup a mega menu

**URL:** <https://community.prismic.io/t/setup-a-mega-menu/6771>\
**Category:** Developing with Prismic\
**Tags:** vuejs\
**Created:** [August 27, 2021, 12:45pm UTC](https://community.prismic.io/t/setup-a-mega-menu/6771 "2021-08-27T12:45:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/henk1/32/169_2.png) [@henk1](https://community.prismic.io/u/henk1)\
**Post date:** [August 27, 2021, 12:45pm UTC](https://community.prismic.io/t/setup-a-mega-menu/6771/1 "2021-08-27T12:45:29Z")

</div>

How do I get the document information in the slice? I don't know how to code that.

```auto
{
  "Main" : {
    "doc_name" : {
      "type" : "StructuredText",
      "config" : {
        "single" : "heading1",
        "label" : "Navigation name"
      }
    },
    "nav" : {
      "type" : "Slices",
      "fieldset" : "Slice zone",
      "config" : {
        "choices" : {
          "nav_item" : {
            "type" : "Slice",
            "fieldset" : "Nav Item",
            "description" : "Nav Item with Sub Navigation",
            "icon" : "insert_link",
            "non-repeat" : {
              "label" : {
                "type" : "StructuredText",
                "config" : {
                  "single" : "paragraph",
                  "label" : "Label",
                  "placeholder" : "Enter Link Label..."
                }
              },
              "link" : {
                "type" : "Link",
                "config" : {
                  "label" : "Link",
                  "placeholder" : "Select Link..."
                }
              }
            },
            "repeat" : {
              "sub_nav_link_label" : {
                "type" : "StructuredText",
                "config" : {
                  "single" : "paragraph",
                  "label" : "Sub Nav Link Label",
                  "placeholder" : "Enter Sub Nav Link Label..."
                }
              },
              "sub_nav_link" : {
                "type" : "Link",
                "config" : {
                  "label" : "Sub Nav Link",
                  "placeholder" : "Select Sub Nav Link..."
                }
              }
            }
          }
        }
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [September 1, 2021, 9:25am UTC](https://community.prismic.io/t/setup-a-mega-menu/6771/3 "2021-09-01T09:25:16Z")

</div>

Hello @henk1

Welcome to the Prismic forum, and thanks for posting to us.

To get document information in the slice, configure a [content relationship field](https://prismic.io/docs/core-concepts/link-content-relationship). Then, to pull content from another document, use fetchLinks or graphQuery options. Please find more detail about the code in our [Vue docs](https://prismic.io/docs/technologies/vue-template-content#pull-in-content-from-another-document).  
You can also look into our Business website example project for the code and setting menu. [Example Projects with Vue.js - Prismic](https://prismic.io/docs/technologies/example-projects-vuejs).

Let me know if you have any doubt.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [September 6, 2021, 3:09pm UTC](https://community.prismic.io/t/setup-a-mega-menu/6771/4 "2021-09-06T15:09:06Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 3:27pm UTC](https://community.prismic.io/t/setup-a-mega-menu/6771/5 "2021-12-09T15:27:39Z")

</div>


