MechCloud
  • What is MechCloud?
  • MechCloud Website
  • Launch Portal
  • Links
    • Discord
    • Youtube
    • Blog
    • LinkedIn
    • Twitter
  • Comparison With WordPress
  • Tutorials / Blog Posts
  • Administration
    • Multitenancy
      • Tenant
      • Team
    • Subscriptions
      • Basic
      • Pro
  • Cloud Computing
    • Cloud Accounts
      • Add An Account
        • AWS
        • GCP
        • Azure
      • Configure Regions / Zones
      • Discover Assets
      • Real-time Visualization
        • AWS
          • Tags
          • CloudTrail
        • GCP
  • AI Agents
    • AWS Agent
      • EC2
      • Lightsail
      • Multi-operation Prompts
    • Systems Agent
      • Cloudflare
      • MongoDB Atlas API
  • Website Builder
    • Routing
    • Micro app based architecture
    • Site
    • Site Node
    • Custom Components
      • Frame
      • Layout
      • External Page
      • Component
    • Special Tags
      • <mc-navigation-link>
      • <mc-render-node>
    • Page Designer
      • Single Component Prompts
        • Native HTML tags
        • MechCloud UI Components
        • Demo Components
        • Third Party Components
      • Multi Components Prompts
Powered by GitBook
On this page

Was this helpful?

  1. Website Builder
  2. Special Tags

<mc-navigation-link>

This component is used to generate a link to a site page from another component (e.g. site header). This tag is equivalent of <router-link> tag of Vue router for Piston components.

This tag exposes three properties which we will understand in detail with the help of examples -

<mc-navigation-link 
   title=""
   uriPrefix=""
   mapping="" 
/>
  • title - This prop renders the label for the navigation link.

  • uriPrefix - This prop represents the uri of the parent node relative to the url of a MechCloud site.

  • mapping - This prop captures the mapping for this node.

Let's say you want to create a link to a first level site node with Administration as title and administration as mapping. You can generate a link to such a site node using following code -

<mc-navigation-link
   title="Administration"
   uriPrefix=""
   mapping="administration" 
/>

If Administration node is having a child node with Teams as title and mapping as teams then you can create a link for same using following code -

<mc-navigation-link
   title="Teams"
   uriPrefix="administration"
   mapping="teams" 
/>

If Teams node is having a child node with Users as title and mapping as users then you can create a link for same using following code -

<mc-navigation-link
   title="Users"
   uriPrefix="administration/teams"
   mapping="users" 
/>

PreviousSpecial TagsNext<mc-render-node>

Last updated 7 months ago

Was this helpful?