PublishingFeatureHandler(發布功能參數)

來源:互聯網
上載者:User

Feature ID 22A9EF51-737B-4ff2-9346-694633FE4416

 

In lack of documentation on this feature and the properties it contains, I did some reflection on the class. But the inner workings of the class is obfuscated and therefore I was only able to get the properties declared as constants. I have not tested all of the properties, so I actually do not know if they will work.

 

Properties in the PublishingFeatureHandler feature that you are enable to set in the ONET.XML

 

Like this...

 

<!-- Publishing feature -->
<Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416">
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="WelcomePageUrl" Value="$Resources:cmscore,List_Pages_UrlName;/Default.aspx" />
<Property Key="PagesListUrl" Value=""/>
<Property Key="AvailableWebTemplates" Value=""/>
<Property Key="AvailablePageLayouts" Value=""/>
<Property Key="SimplePublishing" Value="true" />
...
</Properties>
</Feature>

 

 

 

PublishingFeatureHandler properties

Name Type Default value Simple publishing Default value Complexpublishing Description
AlternateCssUrl string null null

Add the css file to the application pages resided in the layouts folder.
Syntax format: ~SiteCollection/Style Library/mycustom.css

AvailablePageLayouts string null null

Syntax format: ~SiteCollection/<pagelayout path1>:~SiteCollection/<pagelayout path2>:~SiteCollection/<pagelayout path3>Example..:
~SiteCollection/_catalogs/masterpage/mypage1.aspx: ~SiteCollection/_catalogs/masterpage/mypage2.aspx: ~SiteCollection/_catalogs/masterpage/mypage3.aspx
Use the : colon as the separator.

AvailableWebTemplates string null null

AvailableWebTemplates Key Format is:LCID-[sitetemplatename][#sitetemplatenumber];LCID-[sitetemplatename][#sitetemplatenumber];LCID-[sitetemplatename][#sitetemplatenumber]
Example: 1033-BLANKINTERNET#1;1049- BLANKINTERNET #1;*- BLANKINTERNET #2;*-BLANKINTERNET#2

ChromeMasterUrl string null null Syntax format:
~SiteCollection/_catalogs/masterpage/mycustom.master
EnableApprovalWorkflowOnDocuments bool false true  
EnableApprovalWorkflowOnImages bool false true  
EnableApprovalWorkflowOnPages bool false true  
EnableModerationOnDocuments bool false true  
EnableModerationOnImages bool false true  
EnableModerationOnPages bool false true  
EnableSchedulingOnDocuments bool false true  
EnableSchedulingOnImages bool false true  
EnableSchedulingOnPages bool false true  
MigrationOverride bool false false  
PagesListUrl string null null  
RequireCheckoutOnDocuments bool false true  
RequireCheckoutOnImages bool false true  
RequireCheckoutOnPages bool false true  
SimplePublishing bool     If not defined, the default value is true. Specifies the setup with simple or complex publishing configurations.

VersioningOnDocuments

VersioningSettings Major MajorAndMinor

Possible values for VersioningSettings is: Major, MajorAndMinor, None

VersioningOnImages VersioningSettings Major MajorAndMinor  
VersioningOnPages VersioningSettings MajorAndMinor MajorAndMinor  
WelcomePageUrl string null null

Defines the page that will act as the startup page.

Example: $Resources:cmscore,List_Pages_UrlName;/default.aspx

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.