6

I developed in VS 2010 a custom list form and I want to use the "standard" Sharepoint Ribbon, ie, the same Ribbon used in all list forms withe the same buttons.

It's possible do this?

Any help will be appreciated.

cpinheiro
  • 61
  • 2

2 Answers2

2

Yes it is possible. In my case the was a visual studio solution that contained a list with custom forms.

    <Forms>
      <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\CustomDisplayForm.aspx" WebPartZoneID="Main" />
      <Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\CustomEditForm.aspx" WebPartZoneID="Main"/>
      <Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\CustomNewForm.aspx" WebPartZoneID="Main"/>
    </Forms>
  </MetaData>
</List>

And the pages referenced all are inherited from WebPartPage. The solution put these pages into {SharePointRoot}\Template\Pages.

Please let me know if you haven't got the idea and need more details.

Maks Matsveyeu
  • 284
  • 1
  • 4
  • Make sure that there is actually a listformwebpart on the page
  • – Maks Matsveyeu Mar 02 '12 at 20:44
  • hide the listforwebpart on prerender. This solution is quite dirty but when you realize how it all works you will be able to come to the idea how to make it more clear. Like my team and me did :) I wish you good luck
  • – Maks Matsveyeu Mar 02 '12 at 20:46