Adding and managing Web Links

Loading

Adding and Managing Web Links in Power Pages – Comprehensive Guide

In Power Pages, Web Links are used to create and manage navigation menus, footers, and any other link-based structures within your site. These links are typically displayed in navigation bars, sidebars, or footers, allowing users to access different parts of the portal easily.

This guide provides a step-by-step, in-depth explanation of what Web Links are, how to add and manage them, and how to customize their behavior within Power Pages using the Portals Management App and Power Pages Studio.


1. What are Web Links in Power Pages?

Web Links are individual link entries that appear in navigation menus or other UI components of a Power Pages site. They are grouped into Web Link Sets, which are collections of links organized in a specific order.

Web Links are used for:

  • Site navigation (main menu, footer menu)
  • Sub-menus and dropdowns
  • Internal navigation (Web Pages)
  • External links (external websites or documents)

2. Components of Web Link Management

To fully understand Web Links, you need to know about the related components:

🔹 Web Link Set

A logical group or container for multiple Web Links (e.g., Main Navigation, Footer Links).

🔹 Web Link

An individual clickable item in a navigation area, which belongs to a Web Link Set.

Each Web Link can point to:

  • A Web Page within the portal
  • An External URL
  • A Web File (PDFs, images, documents)

3. Where to Configure Web Links

Web Links are primarily configured using the Portals Management App, although the newer Power Pages Design Studio supports limited editing of site navigation.


4. Step-by-Step: Adding Web Links

Step 1: Open the Portals Management App

  1. Go to https://make.powerapps.com.
  2. Open the Apps section.
  3. Launch the Portals Management app.

Step 2: Create or Identify a Web Link Set

  1. In the left-hand menu, select Web Link Sets.
  2. Click + New if you want to create a new navigation set.
  3. Enter:
    • Name: e.g., Main Navigation
    • Website: Select your Power Pages site.
    • Navigation Type: Optional, used for logic.

Step 3: Add Web Links to the Set

  1. Go to the Web Links section.
  2. Click + New to add a link.
  3. Fill in the following fields:
FieldDescription
NameDisplay name for the link (e.g., “Home”)
Web Link SetSelect the parent navigation set
PageChoose a Web Page if linking internally
URLUse for external links (e.g., https://microsoft.com)
Parent Web Link(Optional) Used for submenus/dropdowns
Display OrderControls order of appearance
Publishing StateSet to Published
  1. Save and close.

5. Types of Web Links

TypeExampleConfiguration
InternalHome, About, ContactSet Page to target Web Page
ExternalMicrosoft, LinkedInSet URL to full external link
File DownloadBrochure, PDFLink to a Web File
SubmenuServices > Web DevelopmentSet Parent Web Link for nesting

6. Customizing Web Link Display

Using Web Templates or HTML:

You can render Web Links dynamically using Liquid inside a Web Template:

{% assign mainLinks = weblinks["Main Navigation"] %}
<ul>
{% for link in mainLinks %}
<li><a href="{{ link.url }}">{{ link.name }}</a></li>
{% endfor %}
</ul>

This will output your link set dynamically based on what’s in Dataverse.


7. Example Use Case

Let’s say you want to create the following site menu:

Home | Services ▼ | About | Contact
└── Web Development
└── App Design

Here’s how it would be structured:

  • Web Link Set: “Main Navigation”
  • Web Links:
    • Home (Page: Home)
    • Services (Parent)
    • Web Development (Parent Web Link: Services)
    • App Design (Parent Web Link: Services)
    • About (Page: About)
    • Contact (Page: Contact)

Use Display Order values like 1, 2, 3, etc., to arrange the items.


8. Best Practices

PracticeRecommendation
NamingUse meaningful names like “Main Navigation”, “Footer Links”
OrderUse Display Order to maintain logical flow
ConsistencyAvoid mixing internal pages and external links within a submenu
Use Publishing StatesDraft vs. Published for staging menus
NestingUse Parent Web Link only where submenu is needed
Dynamic RenderingUse Liquid in templates to render menus based on user roles or conditions

9. Securing and Personalizing Web Links

You can use Liquid to show or hide links based on user authentication:

{% if user %}
<a href="/profile">My Profile</a>
{% endif %}

Or based on roles:

{% if user.roles contains 'Administrator' %}
<a href="/admin">Admin Dashboard</a>
{% endif %}

10. Troubleshooting Web Links

IssueCauseFix
Link not showingNot published or incorrect Web Link SetCheck publishing status and linkage
Wrong orderMissing or incorrect display orderAdjust Display Order field
Submenu not workingParent-child relation missingVerify Parent Web Link set correctly
External link brokenURL not starting with httpAlways use https:// or http://

Leave a Reply

Your email address will not be published. Required fields are marked *