When we click the "Add a Web Part" button in page design mode, it will open a Web Part picker page. By default, this page will display as two groups, one is "Lists and Libraries" group, and the other is "All Web Parts" group.
In fact, there is still a "always on top" group called "Suggested Web Parts", according to my understanding, "Suggested Web Parts" means those Web Parts which will be frequently used.
But how can we put some Web Parts into this group when picker window opened? Actually, Microsoft.SharePoint.WebPartPages.WebPartZone has a "QuickAdd-GroupNames" property, And every Web Part in the Web Part Gallery page has a "Quick Add Groups" field, if these two properties totally match up, then those Web Parts will be added to the "Suggested Web Parts" group.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步