MOSS 最小发布网站定义
我正在使用 codeplex 中的 MOSS 最小发布站点定义。
我想将 default.aspx 页面更改为默认发布页面,而不是当前在此站点定义中的 WSS 页面。
那可能吗?
I'm using the MOSS Minimal Publishing Site Definition from codeplex.
I want to change the default.aspx page to be a publishing page by default, rather than a WSS page as it is currently in this site definition.
Is that possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您还可以使用以下内容(示例是使用FeatureStapling):
You can use the following also (the example is with FeatureStapling):
要在 Web UI 中实现此功能:
您需要在发布网站中创建一个新页面,然后在“网站设置”中将该页面设置为“欢迎”页面。
本质上,这将覆盖 default.aspx 并使用新的发布页面作为站点的初始打开页面。
要为站点定义实现此功能:
您需要创建一个功能,将初始页面的实例部署到页面库,然后使用对象模型(可能使用FeatureReceiver)设置欢迎页面。
有关如何执行此操作的更多信息,请参见此处:
http://www.devexpertise .com/2009/02/02/setting-the-welcome-page-in-wss-30/
To implement this in the web UI:
You need to create a new page within your publishing site, and then set that page as the 'Welcome' page within Site Settings.
Essentially this will overide the default.aspx and use your new publishing page as the initial opening page for your site.
To implement this for a site definintion:
You need to create a feature which deploys an instance of your initial page to the pages library and then sets the welcome page using the object model (probably using a FeatureReceiver).
More info on how to do this here:
http://www.devexpertise.com/2009/02/02/setting-the-welcome-page-in-wss-30/