MOSS 最小发布网站定义

发布于 2024-07-30 07:41:54 字数 116 浏览 2 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雅心素梦 2024-08-06 07:41:55

您还可以使用以下内容(示例是使用FeatureStapling):

<!-- Publishing feature -->
<FeatureSiteTemplateAssociation Id="22A9EF51-737B-4ff2-9346-694633FE4416" TemplateName="TEMPLATENAME#NUMBER">
  <Property Key="ChromeMasterUrl" Value="~SiteCollection/_catalogs/masterpage/YOURMASTERPAGE.master"/>
  <Property Key="WelcomePageUrl" Value="YOURDEFAULTPAGE.aspx"/>
  <Property Key="PagesListUrl" Value=""/>
  <Property Key="AvailableWebTemplates" Value="ALLOWED_TEMPLATES"/>
  <Property Key="AvailablePageLayouts" Value="PAGELAYOUTS"/>
  <Property Key="AlternateCssUrl" Value="" />
  <Property Key="SimplePublishing" Value="true" />
</FeatureSiteTemplateAssociation>

You can use the following also (the example is with FeatureStapling):

<!-- Publishing feature -->
<FeatureSiteTemplateAssociation Id="22A9EF51-737B-4ff2-9346-694633FE4416" TemplateName="TEMPLATENAME#NUMBER">
  <Property Key="ChromeMasterUrl" Value="~SiteCollection/_catalogs/masterpage/YOURMASTERPAGE.master"/>
  <Property Key="WelcomePageUrl" Value="YOURDEFAULTPAGE.aspx"/>
  <Property Key="PagesListUrl" Value=""/>
  <Property Key="AvailableWebTemplates" Value="ALLOWED_TEMPLATES"/>
  <Property Key="AvailablePageLayouts" Value="PAGELAYOUTS"/>
  <Property Key="AlternateCssUrl" Value="" />
  <Property Key="SimplePublishing" Value="true" />
</FeatureSiteTemplateAssociation>
能否归途做我良人 2024-08-06 07:41:54

要在 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文