Skip to main content
added 1 character in body
Source Link
Ganesh Sanap - MVP
  • 46.4k
  • 22
  • 31
  • 63

I'm tryI am trying to customise the links shown on My Site using a stapled feature that runs when the site is created. The links i'mI am trying to change are the top two in the quick launch, but iI can't work out where they're coming from.

The master page is showing the links using the following control <SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap"...:

<SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap"...`

But the following code only pulls out the quick launch links starting at the second header.

foreach (SPNavigationNode node in web.Navigation.QuickLaunch.Parent.Children)
{
    foreach (SPNavigationNode subnode in node.Children)
    {
        html.InnerText += "<p>" + subnode.Title + ": " + subnode.Url + "</p>";
    }
    html.InnerText += "<p>" + node.Title + ": " + node.Url + "</p>";
}

what i'mI am trying to change is the top two links in this section:

My Profile (change title to 'edit my profile, and the url of this to the edit profile page)
Details (delete this one)
Links
Colleagues
Memberships

I'm try to customise the links shown on My Site using a stapled feature that runs when the site is created. The links i'm trying to change are the top two in the quick launch, but i can't work out where they're coming from.

The master page is showing the links using the following control <SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap"...

But the following code only pulls out the quick launch links starting at the second header.

foreach (SPNavigationNode node in web.Navigation.QuickLaunch.Parent.Children)
{
    foreach (SPNavigationNode subnode in node.Children)
    {
        html.InnerText += "<p>" + subnode.Title + ": " + subnode.Url + "</p>";
    }
    html.InnerText += "<p>" + node.Title + ": " + node.Url + "</p>";
}

what i'm trying to change is the top two links in this section:

My Profile (change title to 'edit my profile, and the url of this to the edit profile page)
Details (delete this one)
Links
Colleagues
Memberships

I am trying to customise the links shown on My Site using a stapled feature that runs when the site is created. The links I am trying to change are the top two in the quick launch, but I can't work out where they're coming from.

The master page is showing the links using the following control:

<SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap"...`

But the following code only pulls out the quick launch links starting at the second header.

foreach (SPNavigationNode node in web.Navigation.QuickLaunch.Parent.Children)
{
    foreach (SPNavigationNode subnode in node.Children)
    {
        html.InnerText += "<p>" + subnode.Title + ": " + subnode.Url + "</p>";
    }
    html.InnerText += "<p>" + node.Title + ": " + node.Url + "</p>";
}

what I am trying to change is the top two links in this section:

My Profile (change title to 'edit my profile, and the url of this to the edit profile page)
Details (delete this one)
Links
Colleagues
Memberships

edited body; edited title
Source Link
Marc D Anderson
  • 9.7k
  • 2
  • 37
  • 51

how How to customise left hand links on mysiteMy Site

I'm try to customise the links shown on mysitesMy Site using a stapled feature that runs when the site is created. theThe links i'm trying to change are the top two in the quick launch, but i can't work out where they're coming from.

The master page is showing the links using the following control <SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap"...

But the following code only pulls out the quick launch links starting at the second header.

foreach (SPNavigationNode node in web.Navigation.QuickLaunch.Parent.Children)
{
    foreach (SPNavigationNode subnode in node.Children)
    {
        html.InnerText += "<p>" + subnode.Title + ": " + subnode.Url + "</p>";
    }
    html.InnerText += "<p>" + node.Title + ": " + node.Url + "</p>";
}

what i'm trying to change is the top two links in this section:

My Profile (change title to 'edit my profile, and the url of this to the edit profile page)
Details (delete this one)
Links
Colleagues
Memberships

how to customise left hand links on mysite

I'm try to customise the links shown on mysites using a stapled feature that runs when the site is created. the links i'm trying to change are the top two in the quick launch, but i can't work out where they're coming from.

The master page is showing the links using the following control <SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap"...

But the following code only pulls out the quick launch links starting at the second header.

foreach (SPNavigationNode node in web.Navigation.QuickLaunch.Parent.Children)
{
    foreach (SPNavigationNode subnode in node.Children)
    {
        html.InnerText += "<p>" + subnode.Title + ": " + subnode.Url + "</p>";
    }
    html.InnerText += "<p>" + node.Title + ": " + node.Url + "</p>";
}

what i'm trying to change is the top two links in this section:

My Profile (change title to 'edit my profile, and the url of this to the edit profile page)
Details (delete this one)
Links
Colleagues
Memberships

How to customise left hand links on My Site

I'm try to customise the links shown on My Site using a stapled feature that runs when the site is created. The links i'm trying to change are the top two in the quick launch, but i can't work out where they're coming from.

The master page is showing the links using the following control <SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap"...

But the following code only pulls out the quick launch links starting at the second header.

foreach (SPNavigationNode node in web.Navigation.QuickLaunch.Parent.Children)
{
    foreach (SPNavigationNode subnode in node.Children)
    {
        html.InnerText += "<p>" + subnode.Title + ": " + subnode.Url + "</p>";
    }
    html.InnerText += "<p>" + node.Title + ": " + node.Url + "</p>";
}

what i'm trying to change is the top two links in this section:

My Profile (change title to 'edit my profile, and the url of this to the edit profile page)
Details (delete this one)
Links
Colleagues
Memberships

Source Link
user avatar
user avatar

how to customise left hand links on mysite

I'm try to customise the links shown on mysites using a stapled feature that runs when the site is created. the links i'm trying to change are the top two in the quick launch, but i can't work out where they're coming from.

The master page is showing the links using the following control <SharePoint:AspMenu id="QuickLaunchMenu" DataSourceId="QuickLaunchSiteMap"...

But the following code only pulls out the quick launch links starting at the second header.

foreach (SPNavigationNode node in web.Navigation.QuickLaunch.Parent.Children)
{
    foreach (SPNavigationNode subnode in node.Children)
    {
        html.InnerText += "<p>" + subnode.Title + ": " + subnode.Url + "</p>";
    }
    html.InnerText += "<p>" + node.Title + ": " + node.Url + "</p>";
}

what i'm trying to change is the top two links in this section:

My Profile (change title to 'edit my profile, and the url of this to the edit profile page)
Details (delete this one)
Links
Colleagues
Memberships