locked
Customization of " Add to My Links" Under " My Links" In SP RRS feed

Answers

  • I Solved this By Myself

    Refer the Above link for Complete instructions

    Write the following code in Class file (Remaining all are same, as mentioned in link)

     

    using System;

    using System.Collections;

    using System.Collections.Generic;

    using System.Text;

    using Microsoft.SharePoint;

    using Microsoft.SharePoint.WebControls;

    using Microsoft.SharePoint.Portal.WebControls;

    using Microsoft.Office.Server;

    using System.Web;

     

    namespace MossSample

    {

        public class MossSampleExtendedMyLinksMenuControl : MyLinksMenuControl

        {

            protected override ArrayList LoadMenuItems()

            {

                ArrayList ar = base.LoadMenuItems();

     

                MenuItemTemplate mtp = (MenuItemTemplate)(ar[ar.Count - 1]);

                MenuItemTemplate mtp1 = (MenuItemTemplate)(ar[ar.Count - 2]);

     

                mtp.ClientOnClickNavigateUrl = "http://www.google.com";

                mtp.ClientOnClickScript = "window.location='" +"http://www.google.com'";

     

                mtp1.ClientOnClickNavigateUrl = "http://www.google.com";

                mtp1.ClientOnClickScript = "window.location='" + "http://www.google.com'";

     

                ar.RemoveAt(ar.Count - 1);

                ar.Add(mtp);

     

                ar.RemoveAt(ar.Count - 2);

                ar.Add(mtp1);

     

                return ar;

            }

        }

     

     

    }

     


    Praveen Teja
    • Marked as answer by Praveen Teja Monday, January 23, 2012 6:49 AM
    Monday, January 23, 2012 6:46 AM