如何将 Web 部件页面添加到站点定义? [英] How to add a web part page to a site definition?
问题描述
我必须为必须包含预定义 Web 部件页面的客户端创建站点定义.我可以创建 Web 部件页面,但在创建时将它们附加到网站时不知所措.
I have to create a site definition for a client that must contain pre-defined web part pages. I can create the web part pages but am at a loss when it comes to attaching them to the site on creation.
我知道通过 SharePoint 创建的 Web 部件页面存储在文档库中.我是否需要预先填充Web 部件页面"文档库并将所需的导航添加到这些文件中?如果是这样,我该如何添加所需的 aspx 文件?
I know web part pages created through SharePoint are stored in a Document Library. Do I need to pre-populate a "Web Part Pages" document library and add the needed navigation to these files? If so, how do I go about adding the needed aspx files?
最后,在 onet 中配置自定义 Web 部件页面时,我应该注意哪些注意事项?
Finally, are there any caveats that I should be aware of for configuring the custom web part page in onet?
推荐答案
您可以遵循这种使用 Feature Stapling 的方法论.我使用它在创建时自动将 Web 部件添加到我的网站:
You can follow this methodology which uses Feature Stapling. I used this to automatically add web parts to My Sites when they are created:
这篇关于如何将 Web 部件页面添加到站点定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!