Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

My Site Ducuments and Lists

  Asked By: Devan    Date: Apr 11    Category: Sharepoint    Views: 833

As there is no Lists called Links (NOT Links for You) in My Site, I created a Custom List and added a new hyperlink column. But this Custom List is not available to drag and drop in the My Site page.

I started writing a web part and then drag-n-drop the Custom List web part on the My Site page.

protected override void RenderWebPart(HtmlTextWriter output)
SPWeb mySite = SPControl.GetContextWeb(Context);
SPListCollection listCol = mySite.Lists;
foreach ( SPList myList in listCol )
.....rest of the code...

Its returning "fpdatasources" as the name of the available list for My Site.
But when I drop the web part on a team site, it works fine and return my all the lists names. Similarly it works fine for Portal(SPS)

I even tried by creating an object of SPSite. But I'm getting the same result.

Is there a way get a custom list available in the Web Part Gallery for My Site.
How can I get all the lists name for My Site using a custom web part.



1 Answer Found

Answer #1    Answered By: Dakota Shaffer     Answered On: Apr 11

I'm able to create a new Lists (My Cool Links) and it does shows in the web  parts gallery  for My Site.

Didn't find what you were looking for? Find more on My Site Ducuments and Lists Or get search suggestion and latest updates.