Tag Archives: Extend_AddOn

Post navigation

I’ve been wandering around the internet to find all the locations that you can define to add your custom action at. You see, I want to add a link near the ‘Welcom <User>, My Site, My Links’ section (aka the global links section). What I found was the following :

Mcrosoft.SharePoint.Create (_layouts/create.aspx – the screen used to specify what you want to create on your site)

Microsoft.SharePoint.ListEdit (the screen used to edit the properties of a list item)

EditControlBlock (image below)

That’s more than Microsoft specified on their page How to: Add Actions to the User Interface. But still I didn’t found my answer on how to add a link to the global links section. Then I went looking in the 12/Templates/Controltemplates folder for the usercontrol that renders the ‘Welcome <User>’ section, named “Welcome.ascx”. There I found the following bit :

Now it’s the GroupId that interested me.. So I created a feature that looks this (first part being the feature.xml and the second being the elements.xml) :

<FeatureId="AA929AFF-4602-4d7f-A501-B80AC9A4BB52"Title="Add Links to user section"Description="Feature that adds a link to Welcome User section"Scope="WebApplication"xmlns="http://schemas.microsoft.com/sharepoint/"><ElementManifests><ElementManifestLocation="Elements.xml"/></ElementManifests></Feature>

<Elementsxmlns="http://schemas.microsoft.com/sharepoint/"><CustomActionId="0acdbd94-eba8-11db-8314-0800200c9a66"GroupId="PersonalActions"Location="Microsoft.SharePoint.StandardMenu"Sequence="1000"Title="View Terms of Use"Description="Open the Terms of Use document"ImageUrl="_layouts/1033/images/KpiListView.png"><UrlActionUrl="_layouts/termsofuse.aspx"/></CustomAction></Elements>

So how does that look in real life I hear you wonder… well like this :

You can change your own password on Password Change page or Password Change Web Part. To enter Password Change page, you can click the “Change password” link on SharePoint Welcome menu.

You can also change password by adding SharePoint change password Web Part on a page. When you enter this page, Password Change Web Part will automatically detect your domain and name. After you have set your password, Password Change Web Part will verify the new password and save the change. If current password is incorrect or does not meet password policy, you will receive a piece of error message.

Password Expire Warning Web Part can notify users to change password and provide users a URL to go to the password change page. You can configure the URL and decide how many days before expiration date should it notify users. When you have access to the page on which Password Expire Warning Web Part is configured, the Web Part will automatically identify your domain, user name and user account expiration date. If your password expires, the notification and URL will display.

To define a custom action for a particular menu, you must identify the menu by setting the location to the appropriate Windows SharePoint Services namespace, and by using the ID that Windows SharePoint Services uses to identify the specific location.

For example, to add a custom action to the Site Settings page, set the Location attribute of the CustomAction element toMicrosoft.SharePoint.SiteSettings.and specify a particular area within the page through the GroupId attribute.

Different actions may require using different CustomAction attributes to identify the menu in which to place a custom menu item. But you may also need to specify other parameters for the action, for example, to specify a version, user permissions required to perform the action, or placement in relation to existing actions in the menu. The custom actions of the following example show a variety of attributes.

Summary
This article covers how to hide (remove) the View All Site Content link and/or the Recycle Bin link from the quick launch navigation without having to customize the master page. Additionally, I cover how I accomplished along with other options, all using the standard functionality provided in Windows SharePoint Services 3.0.

Important: This solution is not an answer for security. The user will still have access to the View All Site Content page. The View All Site Content link is simply removed or hidden from the page.