Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created SharePoint site using Visual Studio. I have also created list and I have added some custom fields. However, I can see list in quick launch. Is there anyway to show list on page? How I can add list to page, so I don't have to click it in quick launch? So, list is part on text page layout? Any guide how to do this? Or how I add it?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You can provision a view to a page by using a module

The example below will provision a list view web part on the default.aspx page into RightWebPartZone using the list view with BaseViewID=3 for list with url Lists/MyList

<Module Name="MyPages" Url="$Resources:cmscore,List_Pages_UrlName;" Path="pages">
  <File Url="default.aspx" Type="GhostableInLibrary" Level="Published">
     <View
           List="Lists/MyList"
            BaseViewID="3"
            Name="MyList"
            WebPartZoneID="RightWebPartZone"
            WebPartOrder="0" />
      ...
    </File>
</Module>
share|improve this answer
add comment

You can add it as a listview webpart.

Following are the steps:

  • Edit the page
  • Click on Add webpart.
  • Click on lists.
  • Select the list to be added to the page.

    Reference

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.