1
votes

How can I add my own custom webparts to a page layout in SharePoint? I've exported the webparts and have a .webpart file. I tried importing them into the SharePoint designer without any success. I've read a little on the AllUsersWebPart... but I'm not really sure how this works.

Thanks.

1

1 Answers

0
votes

try adding the code from the .webpart into the layout directly. (e.g. open in notepad copy-paste into SharePoint designer).

Note: You should look up examples already in some layout pages as there are a few minor changes required to the webpart format (I vaguely recall).

Be sure to version your layout pages as SharePoint designer can sometimes take liberties with your code and stuff the page up (and refuse to load/save it ever again). If this happens, use the web site to revert the page to a previous (working) version.