デフォルトのシリアル化形式
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
アイテムをシリアル化すると、Sitecoreは処理するアイテムごとに個別のテキスト ファイルを作成します。ファイルは、シリアル化設定で指定されているルート フォルダー ( C:\inetpub\wwwroot\sc92\App_Data\serialization\master\sitecore\content\Home.itemなど) に格納されます。
各テキストファイルには、次の情報が含まれています。
-
アイテム定義: バージョン、ID、パスなど
-
共有フィールド
-
アイテムのバージョン:
-
バージョン定義 (言語バージョン、番号付きバージョン、リビジョン番号など)
-
非共有フィールド
-
シリアル化されたアイテムは、次のようになります。
----item----
version: 1
id: {110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}
database: master
path: /sitecore/content/Home
parent: {0DE95AE4-41AB-4D01-9EB0-67441B7C2450}
name: Home
master: {00000000-0000-0000-0000-000000000000}
template: {76036F5E-CBCE-46D1-AF0A-4143F9B557AA}
templatekey: Sample Item
created: 20190425T171954Z
----field----
field: {A0CB3965-8884-4C7A-8815-B6B2E5CED162}
name: __Editors
key: __editors
content-length: 0
...
----field----
field: {A4F985D9-98B3-4B52-AAAF-4344F6E747C6}
name: __Workflow
key: __workflow
content-length: 38
{A5BC37E7-ED96-4C1E-8590-A26E64DB55EA}
----field----
field: {CA9B9F52-4FB0-4F87-A79F-24DEA62CDA65}
name: __Default workflow
key: __default workflow
content-length: 0
----version----
language: en
version: 1
revision: 38ea58d9-bd7f-4a73-b431-27ecce83b8f7
----field----
field: {75577384-3C97-45DA-A847-81B00500E250}
name: Title
key: title
content-length: 28
Sitecore Experience Platform
----field----
field: {A60ACD61-A6DB-4182-8329-C957982CEC74}
name: Text
key: text
content-length: 788
<p style="line-height: 22px;">From a single connected platform that also integrates with other customer-facing platforms, to a single view of the customer in a big data marketing repository, to completely eliminating much of the complexity that has previously held marketers back, the latest version of Sitecore makes customer experience highly achievable. Learn how the latest version of Sitecore gives marketers the complete data, integrated tools, and automation capabilities to engage customers throughout an iterative lifecycle – the technology foundation absolutely necessary to win customers for life.</p>
<p>For further information, please go to the <a href="https://doc.sitecore.net/" target="_blank" title="Sitecore Documentation site">Sitecore Documentation site</a></p>
----field----
field: {B5E02AD9-D56F-4C41-A065-A133DB87BDEB}
name: __Display name
key: __display name
content-length: 0
----field----
field: {577F1689-7DE4-4AD2-A15F-7FDC1759285F}
name: __Long description
key: __long description
content-length: 58
...
sitecore\Admin
----field----
field: {25BED78C-4957-4165-998A-CA1B52F67497}
name: __Created
key: __created
content-length: 16
20080407T105900Z
----field----
field: {5DD74568-4D4B-44C1-B513-0AF5F4CDA34F}
name: __Created by
key: __created by
content-length: 14
sitecore\Admin
----field----
field: {8CDC337E-A112-42FB-BBB4-4143751E123F}
name: __Revision
key: __revision
content-length: 36
38ea58d9-bd7f-4a73-b431-27ecce83b8f7
----field----
field: {D9CF14B1-FA16-4BA6-9288-E8A174D4D522}
name: __Updated
key: __updated
content-length: 16
20151109T083058Z
----field----
field: {BADD9CF9-53E0-4D0C-BCC0-2D784C282F6A}
name: __Updated by
key: __updated by
content-length: 14
sitecore\Admin
テキスト ファイルの各 ----field---- セクションには、対応する項目フィールド値の長さを指定するcontent-lengthパラメーターがあります。
深くネストされたアイテム
Windowsでは、ファイルへの1つのパスの長さは255文字を超えることはできません。複数のネストされたレベルを持つコンテンツツリーの場合、この制限により、ネストされたフォルダ内の項目がシリアル化プロセス中に省略される可能性があります。
この制限を回避し、要求されたすべてのアイテムをシリアル化するために、Sitecoreはアイテムが深くネストされている場合にパスを短縮することがあります。Sitecoreは、これらのアイテムのシリアル化出力テキスト ファイルを、$dataFolder\serializationフォルダーの下にランダムな名前を持つ補助ファイル フォルダーに保存します。
別のSitecore環境で完全なコンテンツ ツリーに戻すには、データベース フォルダーと補助フォルダーの両方を新しい宛先にコピーする必要があります。