DotNet Development, SharePoint Customizing, Silverlight, MS Infrastructure and other tips and tricks

Changing the My Links Policy and customize the QuickLinks.aspx PageLayout

Posted by PANVEGA on January 26, 2009

the goal is to make in the custom quicklinks.aspx the fields Privacy and Grouping invisible by customizing the aspx offline. Howver you can not delete these two fileds, because they are mandatory fileds when creating a new QuickLink instance in the SP Object Model. See the Screen below. In the next step I wanna change the default Privacy value from Everyone to Only Me.

Customizing the quicklinks.aspx view

Eg.  QuickLink ql = qlm.Create(title, sLinkUrl, QuickLinkGroupType.General, strGroup, Privacy.Private);

You find the page in the and add a new Link. You will be navigated to the quicklinks..aspx (see below).


The QuickLinks.aspx page is a default Layoutpage (always gostesd in the 12er folder). So when you want to change the content direct from the Layouts folder e.g. with SP Designer and save the changes you gonna receive an error message and you can not use the page anymore (page is then ungosted).

I recommend you:

  • C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\quicklinks..aspx
  • copy the the file to your disk
  • male a copy of the file, if you wanna use the default page later again
  • edit it with an editor
  • actually,  you only have to set in the control to visible=”false”
  • copy and overwrite your local aspx file in the LAYOUTS folder
  • the SPSWC:InputFormSection runat=”server” ID=”InputFormSection2″ Visible=”false” contains the Privacy and Grouping section

<SPSWC:InputFormSection runat=”server” ID=”InputFormSection2″ Visible=”false”>
<SPSWC:InputFormSectionHelpArea runat=”server” Visible=”false” TitleLocId=”QuickLinks_AddEdit_VisibilitySection” ID=”InputFormSectionHelpArea2″ >
<SPSWC:InputFormSectionHelpText runat=”server” Visible=”false” TextLocId=”QuickLinks_QuickLink_Visibility_Help_Text” ID=”InputFormSectionHelpText5″/>

<SPSWC:InputFormSectionFieldArea runat=”server” ID=”InputFormSectionFieldArea2″ >
<SPSWC:InputFormDropDownList runat=”server” id=”lbxPrivacyLevel”  DataTextField=”Private” DataValueField=”Private” Visible=”false” LabelTextLocID=”QuickLinks_ShowTo_Text” ToolTipLocId=”QuickLinks_ShowTo_Text”>

<tr style=”height:5px;” id=”inWorkGroupSpacer” runat=”server” visible=”false”><td>&nbsp;</td></tr>
<SPSWC:InputFormRadioButton Visible=”false” LabelTextLocId=”QuickLinks_InWorkGroup_Text” runat=”server” GroupName=”InWorkGroup” id=”rbYesGroup” SpacerRowEnabled=”false” TextLocId=”MultiForm_Yes_Text”/>
<SPSWC:InputFormRadioButton Visible=”false” runat=”server” GroupName=”InWorkGroup” id=”rbNoGroup” SpacerRowEnabled=”false” TextLocId=”MultiForm_No_Text”/>
<SPSWC:InputFormRadioButton Visible=”false” runat=”server” GroupName=”InWorkGroup” id=”rbMultipleGroup” SpacerRowEnabled=”false” TextLocId=”QuickLinks_MultipleValues_Text”/>
<tr style=”height:5px;”><td>&nbsp;</td></tr>
<SPSWC:InputFormRadioButton LabelTextLocId=”QuickLinks_Grouping_Text” Visible=”false” runat=”server” GroupName=”GroupInfo” id=”rbExistingGroup” AutoPostBack=”false” SpacerRowEnabled=”false” TextLocId=”QuickLinks_Existing_Group_Text”>
<SPSWC:InputFormDropDownList runat=”server” id=”lbxExistingGroup” Visible=”false” ToolTipLocId=”QuickLinks_Existing_Group_Text” />

<SPSWC:InputFormRadioButton runat=”server” GroupName=”GroupInfo” Visible=”false” id=”rbNewGroup” AutoPostBack=”false” SpacerRowEnabled=”false” TextLocId=”QuickLinks_NewGroup_Text” >
<SPSWC:InputFormTextBox runat=”server” id=”txbNewGroup” MaxLength=”50″ Visible=”false” ToolTipLocId=”QuickLinks_NewGroup_Text” />
<SPSWC:InputFormCustomValidator runat=”server” id=”QuickLinks_Group_ReqFieldVal” ControlToValidate=”txbNewGroup” ErrorMessageLocId=”QuickLinks_Group_FieldValidation” />


Finnaly, you should customize your page like this:


Changing the default Privacy value from Everyone to Only Me

  • go to Shared Services Administration: SharedServices1 > Manage Policy > Edit Policy
  • go to My Links  (You can specify the privacy policy, default privacy setting, and whether or not the user can change the privacy for this item)
  • change the Default Privacy Setting from Everyone to Private
  • Save and view your custom page



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: