tag:blogger.com,1999:blog-4126985520350746834.post4335299204552961698..comments2024-03-28T07:00:21.554+00:00Comments on Chris O'Brien: WebPartAdderExtension – a better way of deploying web partsChris O'Brienhttp://www.blogger.com/profile/10022906552670607366noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4126985520350746834.post-80535463793589662332012-01-23T12:48:57.079+00:002012-01-23T12:48:57.079+00:00Hey Justin,
That's a great question :) I have...Hey Justin,<br /><br />That's a great question :) I haven't tried the combo of AllUsersWebPart and WebPartAdderExtension, but actually I wouldn't expect any issues. Consider that AllUsersWebPart takes a string ID in the declarative XML - both the .webpart file and WebPartAdderExtension require you to specify this.<br /><br />Also, it's entirely possible to provision a ListViewWebPart onto a page using AllUsersWebPart, and those appear in the gallery courtesy of some Microsoft code which effectively uses the same approach (i.e. it's a WebPartGallerySource). <br /><br />So I can't imagine there'd be any issues, but I'd love to hear from anyone who finds this isn't the case. <br /><br />Cheers,<br /><br />C.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-90058987125905638512012-01-23T07:03:58.393+00:002012-01-23T07:03:58.393+00:00Hey Chris,
How does this affect provisioning webp...Hey Chris,<br /><br />How does this affect provisioning webparts in pages? I take it the AllUsersWebPart method is probably a no-no?<br /><br />Thanks,<br /><br />JustinFatalFrenchyhttps://www.blogger.com/profile/00599141423628217717noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-71315880529111563052012-01-19T20:03:04.794+00:002012-01-19T20:03:04.794+00:00Love this brother. Well played.Love this brother. Well played.Jasonhttps://www.blogger.com/profile/15512082305668319967noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-57218351701221437082012-01-19T14:36:44.232+00:002012-01-19T14:36:44.232+00:00Yup, this is how they do it in Meeting Workspaces ...Yup, this is how they do it in Meeting Workspaces using the Microsoft.SharePoint.Meetings.MeetingsListGallerySource (internal/sealed).<br /><br />Great write up around both the WHY and HOW for this!Briannoreply@blogger.com