From d8f5078fcc422f1460a57157760d50eaf683000e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Krch?= Date: Wed, 24 Jul 2024 16:48:45 +0200 Subject: [PATCH] Support for page urls improvements --- docs/Model/ContentItemSimplifiedModel.md | 6 +- docs/Model/ContentLanguageModel.md | 17 +- docs/Samples/basic.json | 27 +- .../SampleJson.cs | 2033 +++++++++-------- .../SampleProvider.cs | 1 + .../Samples/ContentItemSimplifiedSamples.cs | 14 +- .../Samples/ContentLanguageSamples.cs | 15 +- .../ContentItemSimplifiedAdapter.cs | 128 +- .../Model/ContentItemSimplifiedModel.cs | 10 +- .../Model/ContentLanguageModel.cs | 1 + 10 files changed, 1164 insertions(+), 1088 deletions(-) diff --git a/docs/Model/ContentItemSimplifiedModel.md b/docs/Model/ContentItemSimplifiedModel.md index c3ba94a..ee6862e 100644 --- a/docs/Model/ContentItemSimplifiedModel.md +++ b/docs/Model/ContentItemSimplifiedModel.md @@ -35,7 +35,7 @@ Model [discriminator](../UmtModel.md#discriminator): `ContentItemSimplified` |PropertyName|Summary|.NET Type|Notes| |---|---|---|---| -|PageUrls||Kentico.Xperience.UMT.Model.PageUrlModel[]|| +|PageUrls|PageUrlModel item is required for each content language that exist in XbyK instance without regards to created LanguageData (urls are pre-created for non-existing language versions)|Kentico.Xperience.UMT.Model.PageUrlModel[]|| |PageGuid|Required only if page needs to be referenced as a parent by any child page|System.Guid?|| |ParentGuid||System.Guid?|| |TreePath||string?|| @@ -44,11 +44,13 @@ Model [discriminator](../UmtModel.md#discriminator): `ContentItemSimplified`

*) value is required

## PageUrlModel +Defines url for web page item + |PropertyName|Summary|.NET Type|Notes| |---|---|---|---| |UrlPath||string?|| -|PathIsDraft||bool?|| +|PathIsDraft|currently unused, until simplified model supports Draft content items (and not only Published or InitialDraft)|bool?|| |LanguageName||string?||

*) value is required

diff --git a/docs/Model/ContentLanguageModel.md b/docs/Model/ContentLanguageModel.md index d292e4d..d401664 100644 --- a/docs/Model/ContentLanguageModel.md +++ b/docs/Model/ContentLanguageModel.md @@ -17,7 +17,7 @@ Model [discriminator](../UmtModel.md#discriminator): `ContentLanguage`

*) value is required

-### ContentLanguage Sample +### ContentLanguage Sample - English US This sample describes how to create content language for English (United States) ```json { @@ -30,7 +30,7 @@ This sample describes how to create content language for English (United States) } ``` -### ContentLanguage Sample +### ContentLanguage Sample - English UK This sample describes how to create content language for English (United Kingdom) ```json { @@ -42,3 +42,16 @@ This sample describes how to create content language for English (United Kingdom "ContentLanguageCultureFormat": "en-GB" } ``` + +### ContentLanguage Sample - English US +This sample describes how to create content language for English (United States) +```json +{ + "$type": "ContentLanguage", + "ContentLanguageGUID": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentLanguageDisplayName": "English (United States)", + "ContentLanguageName": "en-US", + "ContentLanguageIsDefault": false, + "ContentLanguageCultureFormat": "en-US" +} +``` diff --git a/docs/Samples/basic.json b/docs/Samples/basic.json index 95cdadc..eabebf2 100644 --- a/docs/Samples/basic.json +++ b/docs/Samples/basic.json @@ -131,6 +131,15 @@ "ContentLanguageFallbackContentLanguageGuid": null, "ContentLanguageCultureFormat": "en-GB" }, + { + "$type": "ContentLanguage", + "ContentLanguageGUID": "4c80c6dd-a5c2-443d-873a-e9c328024b7c", + "ContentLanguageDisplayName": "Spanish", + "ContentLanguageName": "es", + "ContentLanguageIsDefault": false, + "ContentLanguageFallbackContentLanguageGuid": null, + "ContentLanguageCultureFormat": "es" + }, { "$type": "Channel", "ChannelDisplayName": "email Channel Example", @@ -896,13 +905,18 @@ "PageUrls": [ { "UrlPath": "en-us/simplified-sample", - "PathIsDraft": false, + "PathIsDraft": null, "LanguageName": "en-US" }, { "UrlPath": "en-gb/simplified-sample", - "PathIsDraft": false, + "PathIsDraft": null, "LanguageName": "en-GB" + }, + { + "UrlPath": "es/simplified-sample", + "PathIsDraft": null, + "LanguageName": "es" } ], "PageGuid": "4ea03de4-977e-48aa-9340-babf3d23bafa", @@ -954,13 +968,18 @@ "PageUrls": [ { "UrlPath": "en-us/simplified-sample/sub-page", - "PathIsDraft": false, + "PathIsDraft": null, "LanguageName": "en-US" }, { "UrlPath": "en-gb/simplified-sample/sub-page", - "PathIsDraft": false, + "PathIsDraft": null, "LanguageName": "en-GB" + }, + { + "UrlPath": "es/simplified-sample/sub-page", + "PathIsDraft": null, + "LanguageName": "es" } ], "PageGuid": null, diff --git a/examples/Kentico.Xperience.UMT.Example.Console/SampleJson.cs b/examples/Kentico.Xperience.UMT.Example.Console/SampleJson.cs index b2ff087..748a650 100644 --- a/examples/Kentico.Xperience.UMT.Example.Console/SampleJson.cs +++ b/examples/Kentico.Xperience.UMT.Example.Console/SampleJson.cs @@ -5,1013 +5,1032 @@ public static class SampleJson #pragma warning disable S2479 public const string FULL_SAMPLE = """ [ - { - "$type": "Taxonomy", - "TaxonomyName": "CoffeaGenus", - "TaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", - "TaxonomyTitle": "Coffea genus", - "TaxonomyDescription": "Coffea is a genus of flowering plants in the family Rubiaceae", - "TaxonomyTranslations": { - "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { - "Title": "Coffea enUS" - }, - "a6c0a558-8b33-47b6-87a8-491b437c9923": { - "Title": "Coffea enGB" - } - } - }, - { - "$type": "Tag", - "TagName": "CoffeaCanephora", - "TagGUID": "a6e3cc11-95a8-482c-beb4-58bbef6e7bdd", - "TagTaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", - "TagParentGUID": null, - "TagOrder": null, - "TagTitle": "Coffea canephora (Coffea robusta)", - "TagDescription": "Coffea canephora (especially C. canephora var. robusta, so predominantly cultivated that it is often simply termed Coffea robusta, or commonly robusta coffee)", - "TagTranslations": { - "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { - "Title": "Coffea canephora enUS", - "Description": "ENUS Robusta is a species of flowering plant in the family Rubiaceae. Though widely known by the synonym Coffea robusta, the plant is currently scientifically identified as Coffea canephora, which has two main varieties, C. c. robusta and C. c. nganda.[2] The plant has a shallow root system and grows as a robust tree or shrub to about 10 metres (30 feet) tall. It flowers irregularly, taking about 10\u201411 months for the berries to ripen, producing oval-shaped beans." - }, - "a6c0a558-8b33-47b6-87a8-491b437c9923": { - "Title": "Coffea canephora enGB", - "Description": "ENGB Robusta is a species of flowering plant in the family Rubiaceae. Though widely known by the synonym Coffea robusta, the plant is currently scientifically identified as Coffea canephora, which has two main varieties, C. c. robusta and C. c. nganda.[2] The plant has a shallow root system and grows as a robust tree or shrub to about 10 metres (30 feet) tall. It flowers irregularly, taking about 10\u201411 months for the berries to ripen, producing oval-shaped beans." - } - } - }, - { - "$type": "Tag", - "TagName": "CoffeaNganda", - "TagGUID": "b351f88c-7e0c-4339-bcf8-ed86bb8a2804", - "TagTaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", - "TagParentGUID": "a6e3cc11-95a8-482c-beb4-58bbef6e7bdd", - "TagOrder": null, - "TagTitle": "Coffea nganda", - "TagDescription": "Coffea nganda variety of coffea canephora", - "TagTranslations": { - "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { - "Title": "Coffea nganda enUS", - "Description": "ENUS Coffea nganda variety of coffea canephora." - }, - "a6c0a558-8b33-47b6-87a8-491b437c9923": { - "Title": "Coffea nganda enGB", - "Description": "ENGB Coffea nganda variety of coffea canephora." - } - } - }, - { - "$type": "Tag", - "TagName": "CoffeaRobusta", - "TagGUID": "bb181050-79b0-4f42-9280-ef486a139623", - "TagTaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", - "TagParentGUID": "a6e3cc11-95a8-482c-beb4-58bbef6e7bdd", - "TagOrder": null, - "TagTitle": "Coffea robusta", - "TagDescription": "Coffea robusta variety of coffea canephora", - "TagTranslations": { - "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { - "Title": "Coffea robusta enUS", - "Description": "ENUS Coffea robusta variety of coffea canephora." - }, - "a6c0a558-8b33-47b6-87a8-491b437c9923": { - "Title": "Coffea robusta enGB", - "Description": "ENGB Coffea robusta variety of coffea canephora." - } - } - }, - { - "$type": "Tag", - "TagName": "CoffeaArabica", - "TagGUID": "ffe48372-2bac-4a14-ad8c-c86f3f54c7c5", - "TagTaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", - "TagParentGUID": null, - "TagOrder": null, - "TagTitle": "Coffea arabica", - "TagDescription": "Coffea arabica (/\u0259\u02C8r\u00E6b\u026Ak\u0259/), also known as the Arabica coffee, is a species of flowering plant in the coffee and madder family Rubiaceae.", - "TagTranslations": { - "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { - "Title": "Coffea arabica enUS", - "Description": "ENUS Wild plants grow between 9 and 12 m (30 and 39 ft) tall, and have an open branching system; the leaves are opposite, simple elliptic-ovate to oblong, 6\u201312 cm (2.5\u20134.5 in) long and 4\u20138 cm (1.5\u20133 in) broad, glossy dark green. The flowers are white, 10\u201315 mm in diameter, and grow in axillary clusters. The seeds are contained in a drupe (commonly called a \u0022cherry\u0022) 10\u201315 mm in diameter, maturing bright red to purple and typically containing two seeds, often called coffee beans." - }, - "a6c0a558-8b33-47b6-87a8-491b437c9923": { - "Title": "Coffea arabica enGB", - "Description": "ENGB Wild plants grow between 9 and 12 m (30 and 39 ft) tall, and have an open branching system; the leaves are opposite, simple elliptic-ovate to oblong, 6\u201312 cm (2.5\u20134.5 in) long and 4\u20138 cm (1.5\u20133 in) broad, glossy dark green. The flowers are white, 10\u201315 mm in diameter, and grow in axillary clusters. The seeds are contained in a drupe (commonly called a \u0022cherry\u0022) 10\u201315 mm in diameter, maturing bright red to purple and typically containing two seeds, often called coffee beans." - } - } - }, - { - "$type": "UserInfo", - "UserName": "sadmin", - "FirstName": "Sample", - "LastName": "Admin", - "Email": "admin@sample.localhost", - "UserPassword": "[sample hash]", - "UserEnabled": true, - "UserCreated": "1990-01-01T00:00:00Z", - "LastLogon": null, - "UserGUID": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "UserLastModified": null, - "UserSecurityStamp": null, - "UserPasswordLastChanged": null, - "UserIsPendingRegistration": false, - "UserRegistrationLinkExpiration": null, - "UserAdministrationAccess": true, - "UserIsExternal": false - }, - { - "$type": "ContentLanguage", - "ContentLanguageGUID": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentLanguageDisplayName": "English (United States)", - "ContentLanguageName": "en-US", - "ContentLanguageIsDefault": false, - "ContentLanguageFallbackContentLanguageGuid": null, - "ContentLanguageCultureFormat": "en-US" - }, - { - "$type": "ContentLanguage", - "ContentLanguageGUID": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "ContentLanguageDisplayName": "English (United Kingdom)", - "ContentLanguageName": "en-GB", - "ContentLanguageIsDefault": false, - "ContentLanguageFallbackContentLanguageGuid": null, - "ContentLanguageCultureFormat": "en-GB" - }, - { - "$type": "Channel", - "ChannelDisplayName": "email Channel Example", - "ChannelName": "emailChannelExampleBasic", - "ChannelGUID": "fc847362-e4b0-40ae-8235-f20098daf09f", - "ChannelType": 1 - }, - { - "$type": "Channel", - "ChannelDisplayName": "website Channel Example", - "ChannelName": "websitechannelExample", - "ChannelGUID": "5322a379-5b5f-4220-9383-8e3115e66cd3", - "ChannelType": 0 - }, - { - "$type": "EmailChannel", - "EmailChannelGUID": "2c7309ec-1e24-4715-ae6c-8c7efc98a4c5", - "EmailChannelSendingDomain": "emailChannelsample.com", - "EmailChannelPrimaryContentLanguageGUID": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "EmailChannelChannelGuid": "fc847362-e4b0-40ae-8235-f20098daf09f", - "EmailChannelServiceDomain": "www.emailChannelSendingDomainSample" - }, - { - "$type": "WebSiteChannel", - "WebsiteChannelGUID": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", - "WebsiteChannelChannelGuid": "5322a379-5b5f-4220-9383-8e3115e66cd3", - "WebsiteChannelDomain": "websitesamplewebsitedomain.com", - "WebsiteChannelHomePage": "home", - "WebsiteChannelPrimaryContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "WebsiteChannelDefaultCookieLevel": 1000, - "WebsiteChannelStoreFormerUrls": false - }, - { - "$type": "DataClass", - "ClassDisplayName": "This is Article example", - "ClassName": "UMT.Article", - "ClassShortName": "UMT.Article", - "ClassTableName": "UMT_Article", - "ClassShowTemplateSelection": null, - "ClassLastModified": "2024-01-08T22:55:31.7853783\u002B01:00", - "ClassGUID": "06540294-3b56-4cf7-8773-088bb766ac23", - "ClassContactMapping": null, - "ClassContactOverwriteEnabled": null, - "ClassConnectionString": null, - "ClassDefaultObjectType": null, - "ClassResourceGuid": null, - "ClassCodeGenerationSettings": null, - "ClassHasUnmanagedDbSchema": false, - "ClassType": "Content", - "ClassContentTypeType": "Website", - "ClassWebPageHasUrl": true, - "Fields": [ - { - "AllowEmpty": true, - "Column": "ArticleTitle", - "ColumnSize": 200, - "ColumnType": "text", - "Enabled": true, - "Guid": "ea7da631-6d9c-413f-a746-93442b623908", - "Visible": true, - "Properties": { - "FieldCaption": "Article title" - }, - "Settings": { - "ControlName": "Kentico.Administration.TextInput" - }, - "Precision": null - }, - { - "AllowEmpty": true, - "Column": "ArticleDecimalNumberSample", - "ColumnSize": 15, - "ColumnType": "decimal", - "Enabled": true, - "Guid": "8e749651-773b-47b9-a888-c541c3c3e1b7", - "Visible": true, - "Properties": { - "FieldCaption": "Article decimal number sample" - }, - "Settings": { - "ControlName": "Kentico.Administration.DecimalNumberInput" - }, - "Precision": 5 - }, - { - "AllowEmpty": true, - "Column": "ArticleText", - "ColumnSize": 0, - "ColumnType": "longtext", - "Enabled": true, - "Guid": "a54aef74-42b3-438e-92b2-2f5b4386fb57", - "Visible": true, - "Properties": { - "FieldCaption": "Article text" - }, - "Settings": { - "ControlName": "Kentico.Administration.TextArea" - }, - "Precision": null - }, - { - "AllowEmpty": true, - "Column": "RelatedArticles", - "ColumnSize": 0, - "ColumnType": "webpages", - "Enabled": true, - "Guid": "4b7a3fec-ee64-4688-b441-fece563b906d", - "Visible": true, - "Properties": { - "FieldCaption": "Related articles", - "fieldcaption": "Related articles", - "fielddescriptionashtml": "False" - }, - "Settings": { - "ControlName": "Kentico.Administration.WebPageSelector", - "MaximumPages": 5, - "Sortable": "False", - "TreePath": "/Articles" - }, - "Precision": null - }, - { - "AllowEmpty": true, - "Column": "RelatedFaq", - "ColumnSize": 0, - "ColumnType": "contentitemreference", - "Enabled": true, - "Guid": "fc1fde10-11bf-4174-bd64-d1f114e4b421", - "Visible": true, - "Properties": { - "FieldCaption": "Related articles", - "fieldcaption": "Related Faq", - "fielddescriptionashtml": "False" - }, - "Settings": { - "ControlName": "Kentico.Administration.ContentItemSelector", - "AllowedContentItemTypeIdentifiers": "[\u00227ed6604e-613b-4ce0-8c21-acfb372c416a\u0022]" - }, - "Precision": null - }, - { - "AllowEmpty": true, - "Column": "CoffeaTaxonomy", - "ColumnSize": 0, - "ColumnType": "taxonomy", - "Enabled": true, - "Guid": "36295d61-7f85-4213-8e5c-06772ed67dfb", - "Visible": true, - "Properties": { - "FieldCaption": "Taxonomy coffee", - "explanationtextashtml": "False", - "fielddescriptionashtml": "False" - }, - "Settings": { - "ControlName": "Kentico.Administration.TagSelector", - "TaxonomyGroup": "[\u0022bd88fd9b-8d36-4d02-a4a6-9a2b26c48488\u0022]" - }, - "Precision": null - } - ] - }, - { - "$type": "ContentTypeChannel", - "ContentTypeChannelChannelGuid": "5322a379-5b5f-4220-9383-8e3115e66cd3", - "ContentTypeChannelContentTypeGuid": "06540294-3b56-4cf7-8773-088bb766ac23" - }, - { - "$type": "DataClass", - "ClassDisplayName": "Faq", - "ClassName": "UMT.Faq", - "ClassShortName": "UMT.Faq", - "ClassTableName": "UMT_Faq", - "ClassShowTemplateSelection": null, - "ClassLastModified": "2024-01-08T22:56:07.1472943Z", - "ClassGUID": "7ed6604e-613b-4ce0-8c21-acfb372c416a", - "ClassContactMapping": null, - "ClassContactOverwriteEnabled": null, - "ClassConnectionString": null, - "ClassDefaultObjectType": null, - "ClassResourceGuid": null, - "ClassCodeGenerationSettings": null, - "ClassHasUnmanagedDbSchema": false, - "ClassType": "Content", - "ClassContentTypeType": "Reusable", - "ClassWebPageHasUrl": null, - "Fields": [ - { - "AllowEmpty": false, - "Column": "FaqQuestion", - "ColumnSize": 200, - "ColumnType": "text", - "Enabled": true, - "Guid": "b7a99ef4-6775-4088-acc7-41c21299aabf", - "Visible": true, - "Properties": { - "FieldCaption": "Question" - }, - "Settings": { - "ControlName": "Kentico.Administration.TextInput" - }, - "Precision": null - }, - { - "AllowEmpty": false, - "Column": "FaqAnswer", - "ColumnSize": 200, - "ColumnType": "text", - "Enabled": true, - "Guid": "87995645-5868-470b-b25a-0e2a4e6d0e85", - "Visible": true, - "Properties": { - "FieldCaption": "Answer" - }, - "Settings": { - "ControlName": "Kentico.Administration.TextInput" - }, - "Precision": null - } - ] - }, - { - "$type": "DataClass", - "ClassDisplayName": "Event", - "ClassName": "UMT.Event", - "ClassShortName": "UMT.Event", - "ClassTableName": "UMT_Event", - "ClassShowTemplateSelection": null, - "ClassLastModified": "2024-01-08T22:56:12.2515785Z", - "ClassGUID": "4712c000-4d63-4333-8708-990603f73a1e", - "ClassContactMapping": null, - "ClassContactOverwriteEnabled": null, - "ClassConnectionString": null, - "ClassDefaultObjectType": null, - "ClassResourceGuid": null, - "ClassCodeGenerationSettings": null, - "ClassHasUnmanagedDbSchema": false, - "ClassType": "Content", - "ClassContentTypeType": "Reusable", - "ClassWebPageHasUrl": null, - "Fields": [ - { - "AllowEmpty": true, - "Column": "EventTitle", - "ColumnSize": 200, - "ColumnType": "text", - "Enabled": true, - "Guid": "0e1e63eb-918a-4135-a627-04393672d6f4", - "Visible": true, - "Properties": { - "FieldCaption": "Title" - }, - "Settings": { - "ControlName": "Kentico.Administration.TextInput" - }, - "Precision": null - }, - { - "AllowEmpty": true, - "Column": "EventText", - "ColumnSize": 0, - "ColumnType": "longtext", - "Enabled": true, - "Guid": "a54aef74-42b3-438e-92b2-2f5b4386fb57", - "Visible": true, - "Properties": { - "FieldCaption": "Text" - }, - "Settings": { - "ControlName": "Kentico.Administration.TextArea" - }, - "Precision": null - }, - { - "AllowEmpty": true, - "Column": "EventDate", - "ColumnSize": 0, - "ColumnType": "datetime", - "Enabled": true, - "Guid": "f3356f35-0a78-4a98-8696-a1becb725b0a", - "Visible": true, - "Properties": { - "FieldCaption": "Date" - }, - "Settings": { - "ControlName": "Kentico.Administration.DateTimeInput" - }, - "Precision": null - }, - { - "AllowEmpty": true, - "Column": "EventRecurrentYearly", - "ColumnSize": 0, - "ColumnType": "boolean", - "Enabled": true, - "Guid": "98d2cf95-5027-488a-b833-89510f4662c1", - "Visible": true, - "Properties": { - "FieldCaption": "Event occurs every year" - }, - "Settings": { - "ControlName": "Kentico.Administration.Checkbox" - }, - "Precision": null - } - ] - }, - { - "$type": "ContentItem", - "ContentItemGUID": "c354427d-3d02-4876-8ed4-4de817fae929", - "ContentItemContentFolderGUID": null, - "ContentItemName": "NewsLetterExampleName", - "ContentItemIsReusable": true, - "ContentItemIsSecured": true, - "ContentItemDataClassGuid": "978b2cd4-c248-4317-86a1-3bdd17444267", - "ContentItemChannelGuid": "b186b5a3-f408-4e21-a2f9-e51d68ecac38" - }, - { - "$type": "ContentItemLanguageMetadata", - "ContentItemLanguageMetadataGUID": "65421553-5f92-44b7-a02f-2b9ca083e14a", - "ContentItemLanguageMetadataContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929", - "ContentItemLanguageMetadataDisplayName": "Basic Language Metadata Example", - "ContentItemLanguageMetadataLatestVersionStatus": 1, - "ContentItemLanguageMetadataCreatedWhen": "2024-01-06T22:55:48.9503105Z", - "ContentItemLanguageMetadataCreatedByUserGuid": null, - "ContentItemLanguageMetadataModifiedWhen": "2024-01-08T22:55:52.0392925Z", - "ContentItemLanguageMetadataModifiedByUserGuid": null, - "ContentItemLanguageMetadataHasImageAsset": false, - "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentItemLanguageMetadataScheduledPublishWhen": null, - "ContentItemLanguageMetadataScheduledUnpublishWhen": null - }, - { - "$type": "ContentItemLanguageMetadata", - "ContentItemLanguageMetadataGUID": "12191a4b-26d8-40bb-a214-73d9874920fd", - "ContentItemLanguageMetadataContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929", - "ContentItemLanguageMetadataDisplayName": "Language Metadata Example", - "ContentItemLanguageMetadataLatestVersionStatus": 2, - "ContentItemLanguageMetadataCreatedWhen": "2024-01-06T22:55:58.3208748Z", - "ContentItemLanguageMetadataCreatedByUserGuid": "95f42fd4-6a14-4e88-b214-4e136479f788", - "ContentItemLanguageMetadataModifiedWhen": "2024-01-08T22:56:01.1939486Z", - "ContentItemLanguageMetadataModifiedByUserGuid": "95f42fd4-6a14-4e88-b214-4e136479f788", - "ContentItemLanguageMetadataHasImageAsset": false, - "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentItemLanguageMetadataScheduledPublishWhen": null, - "ContentItemLanguageMetadataScheduledUnpublishWhen": "2045-01-01T00:00:00Z" - }, - { - "$type": "WebPageItem", - "WebPageItemGUID": "6e995319-77e7-475e-9ebb-607bdbf5af9a", - "WebPageItemParentGuid": null, - "WebPageItemName": "NewWebPageItem", - "WebPageItemTreePath": "/home", - "WebPageItemWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", - "WebPageItemContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929", - "WebPageItemOrder": 1 - }, - { - "$type": "Media_Library", - "LibraryName": "LibrarySample", - "LibraryDisplayName": "LibraryDisplayedName", - "LibraryDescription": "TestLibrary", - "LibraryFolder": "TestFolder", - "LibraryGUID": "e3a9c50c-2b76-4ba8-ac19-2f0aa64c47d5", - "LibraryLastModified": null - }, - { - "$type": "Media_File", - "DataSourcePath": null, - "DataSourceUrl": "https://devnet.kentico.com/DevNet/media/devnet/cms_screen.jpg", - "FileGUID": "94df1156-c85d-4356-8e28-16d71c6ac899", - "FileLibraryGuid": "e3a9c50c-2b76-4ba8-ac19-2f0aa64c47d5", - "FileCreatedByUserGuid": "863f796e-823a-4f5e-bbdb-e4a6f15b349b", - "FileModifiedByUserGuid": null, - "FileName": "NewTestFileFromUri", - "FileTitle": "Old devnet screen", - "FileDescription": null, - "FileExtension": ".jpg", - "FileMimeType": null, - "FilePath": "customdir/NewTestFileFromUri.jpg", - "FileImageWidth": null, - "FileImageHeight": null, - "FileCreatedWhen": null, - "FileModifiedWhen": null - }, - { - "$type": "ContentItem", - "ContentItemGUID": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", - "ContentItemContentFolderGUID": null, - "ContentItemName": "SampleReusableFaq", - "ContentItemIsReusable": true, - "ContentItemIsSecured": true, - "ContentItemDataClassGuid": "7ed6604e-613b-4ce0-8c21-acfb372c416a", - "ContentItemChannelGuid": null - }, - { - "$type": "ContentItemCommonData", - "ContentItemCommonDataGUID": "2b1987bf-680b-48c0-85ce-47ff9fde24c7", - "ContentItemCommonDataContentItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", - "ContentItemCommonDataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentItemCommonDataVersionStatus": 2, - "ContentItemCommonDataIsLatest": true, - "ContentItemCommonDataPageBuilderWidgets": null, - "ContentItemCommonDataPageTemplateConfiguration": null - }, - { - "$type": "ContentItemCommonData", - "ContentItemCommonDataGUID": "96016b05-b3d3-42f9-b5aa-71e2f816eb8f", - "ContentItemCommonDataContentItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", - "ContentItemCommonDataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "ContentItemCommonDataVersionStatus": 2, - "ContentItemCommonDataIsLatest": true, - "ContentItemCommonDataPageBuilderWidgets": null, - "ContentItemCommonDataPageTemplateConfiguration": null - }, - { - "$type": "ContentItemData", - "ContentItemDataGUID": "d29e7c59-09d5-443c-999d-063ba62e5f97", - "ContentItemDataCommonDataGuid": "2b1987bf-680b-48c0-85ce-47ff9fde24c7", - "ContentItemContentTypeName": "UMT.Faq", - "FaqQuestion": "en-US FAQ question text", - "FaqAnswer": "en-US FAQ answer text" - }, - { - "$type": "ContentItemData", - "ContentItemDataGUID": "93269639-1c4a-48b8-b367-0da00268eeb0", - "ContentItemDataCommonDataGuid": "96016b05-b3d3-42f9-b5aa-71e2f816eb8f", - "ContentItemContentTypeName": "UMT.Faq", - "FaqQuestion": "en-GB FAQ question text", - "FaqAnswer": "en-GB FAQ answer text" - }, - { - "$type": "ContentItemLanguageMetadata", - "ContentItemLanguageMetadataGUID": "46353800-21b8-48f6-8681-b19966f4b6eb", - "ContentItemLanguageMetadataContentItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", - "ContentItemLanguageMetadataDisplayName": "Sample reusable FAQ", - "ContentItemLanguageMetadataLatestVersionStatus": 0, - "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", - "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataModifiedWhen": null, - "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataHasImageAsset": false, - "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentItemLanguageMetadataScheduledPublishWhen": "2045-01-01T00:00:00Z", - "ContentItemLanguageMetadataScheduledUnpublishWhen": null - }, - { - "$type": "ContentItemLanguageMetadata", - "ContentItemLanguageMetadataGUID": "b15b3d9f-0cb1-405a-bc04-a069daecf72d", - "ContentItemLanguageMetadataContentItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", - "ContentItemLanguageMetadataDisplayName": "Sample reusable FAQ", - "ContentItemLanguageMetadataLatestVersionStatus": 2, - "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", - "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataModifiedWhen": null, - "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataHasImageAsset": false, - "ContentItemLanguageMetadataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "ContentItemLanguageMetadataScheduledPublishWhen": null, - "ContentItemLanguageMetadataScheduledUnpublishWhen": null - }, - { - "$type": "ContentItem", - "ContentItemGUID": "df81215e-1414-4d87-befd-ae123f4e5653", - "ContentItemContentFolderGUID": null, - "ContentItemName": "CreationOfUmtModel", - "ContentItemIsReusable": false, - "ContentItemIsSecured": false, - "ContentItemDataClassGuid": "06540294-3b56-4cf7-8773-088bb766ac23", - "ContentItemChannelGuid": "5322a379-5b5f-4220-9383-8e3115e66cd3" - }, - { - "$type": "ContentItemCommonData", - "ContentItemCommonDataGUID": "8f070195-2f39-463e-b7eb-c180c05fd5e0", - "ContentItemCommonDataContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", - "ContentItemCommonDataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentItemCommonDataVersionStatus": 2, - "ContentItemCommonDataIsLatest": true, - "ContentItemCommonDataPageBuilderWidgets": null, - "ContentItemCommonDataPageTemplateConfiguration": null - }, - { - "$type": "ContentItemCommonData", - "ContentItemCommonDataGUID": "49d2caf6-2011-42d7-961d-02614d1b43f4", - "ContentItemCommonDataContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", - "ContentItemCommonDataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "ContentItemCommonDataVersionStatus": 2, - "ContentItemCommonDataIsLatest": true, - "ContentItemCommonDataPageBuilderWidgets": null, - "ContentItemCommonDataPageTemplateConfiguration": null - }, - { - "$type": "ContentItemData", - "ContentItemDataGUID": "9a5b10e0-d0e6-4de9-9d82-6d8deeea1849", - "ContentItemDataCommonDataGuid": "8f070195-2f39-463e-b7eb-c180c05fd5e0", - "ContentItemContentTypeName": "UMT.Article", - "ArticleTitle": "en-US UMT model creation", - "ArticleText": "This article is only example of creation UMT model for en-US language", - "RelatedArticles": null, - "RelatedFaq": null, - "CoffeaTaxonomy": "[{\u0022Identifier\u0022:\u0022ffe48372-2bac-4a14-ad8c-c86f3f54c7c5\u0022}]", - "ArticleDecimalNumberSample": 123456.12345 - }, - { - "$type": "ContentItemData", - "ContentItemDataGUID": "21380f91-279b-44be-aad8-2e62c345a0e9", - "ContentItemDataCommonDataGuid": "49d2caf6-2011-42d7-961d-02614d1b43f4", - "ContentItemContentTypeName": "UMT.Article", - "ArticleTitle": "en-GB UMT model creation", - "ArticleText": "This article is only example of creation UMT model for en-GB language", - "RelatedArticles": null, - "RelatedFaq": null, - "CoffeaTaxonomy": "[{\u0022Identifier\u0022:\u0022ffe48372-2bac-4a14-ad8c-c86f3f54c7c5\u0022}]", - "ArticleDecimalNumberSample": 123456.12345 - }, - { - "$type": "ContentItemLanguageMetadata", - "ContentItemLanguageMetadataGUID": "192c63ac-e5be-4b0f-b916-b8af6c7e79a9", - "ContentItemLanguageMetadataContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", - "ContentItemLanguageMetadataDisplayName": "Creation of UMT model", - "ContentItemLanguageMetadataLatestVersionStatus": 2, - "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", - "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataModifiedWhen": null, - "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataHasImageAsset": false, - "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentItemLanguageMetadataScheduledPublishWhen": null, - "ContentItemLanguageMetadataScheduledUnpublishWhen": null - }, - { - "$type": "ContentItemLanguageMetadata", - "ContentItemLanguageMetadataGUID": "7f6a0c0d-a2bb-454c-8e16-adcfe0e38d17", - "ContentItemLanguageMetadataContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", - "ContentItemLanguageMetadataDisplayName": "Creation of UMT model GB", - "ContentItemLanguageMetadataLatestVersionStatus": 2, - "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", - "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataModifiedWhen": null, - "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataHasImageAsset": false, - "ContentItemLanguageMetadataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "ContentItemLanguageMetadataScheduledPublishWhen": null, - "ContentItemLanguageMetadataScheduledUnpublishWhen": null - }, - { - "$type": "WebPageUrlPath", - "WebPageUrlPathGUID": "2bda2458-e262-4825-b51b-5a7b345ed7bd", - "WebPageUrlPath": "en-US/creation-of-umt-model", - "WebPageUrlPathHash": null, - "WebPageUrlPathWebPageItemGuid": "6e995319-77e7-475e-9ebb-607bdbf5af9a", - "WebPageUrlPathWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", - "WebPageUrlPathContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "WebPageUrlPathIsLatest": true, - "WebPageUrlPathIsDraft": false - }, - { - "$type": "WebPageUrlPath", - "WebPageUrlPathGUID": "8083fa41-03fe-49c3-87fb-4f7c530b14cf", - "WebPageUrlPath": "en-GB/creation-of-umt-model", - "WebPageUrlPathHash": null, - "WebPageUrlPathWebPageItemGuid": "6e995319-77e7-475e-9ebb-607bdbf5af9a", - "WebPageUrlPathWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", - "WebPageUrlPathContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "WebPageUrlPathIsLatest": true, - "WebPageUrlPathIsDraft": false - }, - { - "$type": "WebPageItem", - "WebPageItemGUID": "6e995319-77e7-475e-9ebb-607bdbf5af9a", - "WebPageItemParentGuid": null, - "WebPageItemName": "CreationOfUmtModelUs", - "WebPageItemTreePath": "/creation-of-umt-model", - "WebPageItemWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", - "WebPageItemContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", - "WebPageItemOrder": 1 - }, - { - "$type": "ContentItem", - "ContentItemGUID": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", - "ContentItemContentFolderGUID": null, - "ContentItemName": "Content-item-with-relations", - "ContentItemIsReusable": false, - "ContentItemIsSecured": true, - "ContentItemDataClassGuid": "06540294-3b56-4cf7-8773-088bb766ac23", - "ContentItemChannelGuid": "5322a379-5b5f-4220-9383-8e3115e66cd3" - }, - { - "$type": "ContentItemCommonData", - "ContentItemCommonDataGUID": "56f0e676-8fcc-4a5d-8b69-f6eca372b998", - "ContentItemCommonDataContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", - "ContentItemCommonDataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentItemCommonDataVersionStatus": 0, - "ContentItemCommonDataIsLatest": true, - "ContentItemCommonDataPageBuilderWidgets": null, - "ContentItemCommonDataPageTemplateConfiguration": null - }, - { - "$type": "ContentItemCommonData", - "ContentItemCommonDataGUID": "a790b2d4-5ac1-4fb0-812c-2ad2171c61c9", - "ContentItemCommonDataContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", - "ContentItemCommonDataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "ContentItemCommonDataVersionStatus": 2, - "ContentItemCommonDataIsLatest": true, - "ContentItemCommonDataPageBuilderWidgets": null, - "ContentItemCommonDataPageTemplateConfiguration": null - }, - { - "$type": "ContentItemData", - "ContentItemDataGUID": "b6847866-12b1-4a4a-aba7-d93860102bc8", - "ContentItemDataCommonDataGuid": "56f0e676-8fcc-4a5d-8b69-f6eca372b998", - "ContentItemContentTypeName": "UMT.Article", - "ArticleTitle": "en-US UMT model creation", - "ArticleText": "This article is only example of creation UMT model for en-US language", - "RelatedArticles": "[{\u0022WebPageGuid\u0022:\u00226e995319-77e7-475e-9ebb-607bdbf5af9a\u0022}]", - "RelatedFaq": "[{\u0022Identifier\u0022:\u0022b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee\u0022}]", - "ArticleDecimalNumberSample": 123456.12345 - }, - { - "$type": "ContentItemReference", - "ContentItemReferenceGUID": "186e37c6-5c55-4637-8feb-ec5cb6547aba", - "ContentItemReferenceSourceCommonDataGuid": "8f070195-2f39-463e-b7eb-c180c05fd5e0", - "ContentItemReferenceTargetItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", - "ContentItemReferenceGroupGUID": "fc1fde10-11bf-4174-bd64-d1f114e4b421" - }, - { - "$type": "ContentItemData", - "ContentItemDataGUID": "a80f91ff-4cfc-4e28-982a-e4a434517680", - "ContentItemDataCommonDataGuid": "a790b2d4-5ac1-4fb0-812c-2ad2171c61c9", - "ContentItemContentTypeName": "UMT.Article", - "ArticleTitle": "en-GB UMT model creation", - "ArticleText": "This article is only example of creation UMT model for en-GB language", - "RelatedArticles": "[{\u0022WebPageGuid\u0022:\u00226e995319-77e7-475e-9ebb-607bdbf5af9a\u0022}]", - "RelatedFaq": "[{\u0022Identifier\u0022:\u0022b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee\u0022}]", - "ArticleDecimalNumberSample": 123456.12345 - }, - { - "$type": "ContentItemReference", - "ContentItemReferenceGUID": "e95eefe5-5b89-43ab-91c9-777be00d5680", - "ContentItemReferenceSourceCommonDataGuid": "49d2caf6-2011-42d7-961d-02614d1b43f4", - "ContentItemReferenceTargetItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", - "ContentItemReferenceGroupGUID": "fc1fde10-11bf-4174-bd64-d1f114e4b421" - }, - { - "$type": "ContentItemLanguageMetadata", - "ContentItemLanguageMetadataGUID": "9ec48558-4e26-4ddf-9804-fa0fbe95142d", - "ContentItemLanguageMetadataContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", - "ContentItemLanguageMetadataDisplayName": "Content item with relations", - "ContentItemLanguageMetadataLatestVersionStatus": 0, - "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", - "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataModifiedWhen": null, - "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataHasImageAsset": false, - "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "ContentItemLanguageMetadataScheduledPublishWhen": null, - "ContentItemLanguageMetadataScheduledUnpublishWhen": null - }, - { - "$type": "ContentItemLanguageMetadata", - "ContentItemLanguageMetadataGUID": "8a3f1795-c0ac-4501-be4e-6fba0cd11654", - "ContentItemLanguageMetadataContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", - "ContentItemLanguageMetadataDisplayName": "Content item with relations en-GB", - "ContentItemLanguageMetadataLatestVersionStatus": 2, - "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", - "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataModifiedWhen": null, - "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ContentItemLanguageMetadataHasImageAsset": false, - "ContentItemLanguageMetadataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "ContentItemLanguageMetadataScheduledPublishWhen": null, - "ContentItemLanguageMetadataScheduledUnpublishWhen": null - }, - { - "$type": "WebPageItem", - "WebPageItemGUID": "14784bf0-69d0-40cf-8be6-e5a0d897774b", - "WebPageItemParentGuid": null, - "WebPageItemName": "ContentItemWithRelations", - "WebPageItemTreePath": "/content-item-with-relations", - "WebPageItemWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", - "WebPageItemContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", - "WebPageItemOrder": 1 - }, - { - "$type": "WebPageUrlPath", - "WebPageUrlPathGUID": "c0f97ba5-7a64-4309-8d58-6054fc90ac66", - "WebPageUrlPath": "en-US/content-item-with-relations", - "WebPageUrlPathHash": null, - "WebPageUrlPathWebPageItemGuid": "14784bf0-69d0-40cf-8be6-e5a0d897774b", - "WebPageUrlPathWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", - "WebPageUrlPathContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", - "WebPageUrlPathIsLatest": true, - "WebPageUrlPathIsDraft": false - }, - { - "$type": "WebPageUrlPath", - "WebPageUrlPathGUID": "ccb7af1f-57d9-405a-84fa-d0f4129a17da", - "WebPageUrlPath": "en-GB/content-item-with-relations", - "WebPageUrlPathHash": null, - "WebPageUrlPathWebPageItemGuid": "14784bf0-69d0-40cf-8be6-e5a0d897774b", - "WebPageUrlPathWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", - "WebPageUrlPathContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", - "WebPageUrlPathIsLatest": true, - "WebPageUrlPathIsDraft": false - }, - { - "$type": "ContentFolder", - "ContentFolderGUID": "7665a8fc-53a2-4aff-86e8-99b009104ff2", - "ContentFolderParentFolderGUID": null, - "ContentFolderName": "articles", - "ContentFolderDisplayName": "Articles", - "ContentFolderTreePath": "/articles" - }, - { - "$type": "ContentFolder", - "ContentFolderGUID": "ae29c1d1-217a-45da-8b30-585d1881387e", - "ContentFolderParentFolderGUID": "7665a8fc-53a2-4aff-86e8-99b009104ff2", - "ContentFolderName": "obsolete", - "ContentFolderDisplayName": "Obsolete", - "ContentFolderTreePath": "/articles/obsolete" - }, - { - "$type": "ContentItemSimplified", - "ContentItemGUID": "37c3f5dd-6f2a-4eff-b46e-a36eddebf572", - "ContentItemContentFolderGUID": null, - "IsSecured": false, - "ContentTypeName": "UMT.Article", - "Name": "SimplifiedModelSample", - "IsReusable": true, - "ChannelName": "websitechannelExample", - "LanguageData": [ - { - "LanguageName": "en-US", - "DisplayName": "Simplified model sample - en-us", - "VersionStatus": 0, - "UserGuid": null, - "ScheduledPublishWhen": "2045-01-01T00:00:00Z", - "ScheduledUnpublishWhen": null, - "ContentItemData": { - "ArticleTitle": "en-US UMT simplified model creation", - "ArticleText": "This article is only example of creation UMT simplified model for en-US language", - "RelatedArticles": null, - "RelatedFaq": null, - "CoffeaTaxonomy": "[{\u0022Identifier\u0022:\u0022a6e3cc11-95a8-482c-beb4-58bbef6e7bdd\u0022},{\u0022Identifier\u0022:\u0022bb181050-79b0-4f42-9280-ef486a139623\u0022}]" - } - }, - { - "LanguageName": "en-GB", - "DisplayName": "Simplified model sample - en-gb", - "VersionStatus": 2, - "UserGuid": null, - "ScheduledPublishWhen": null, - "ScheduledUnpublishWhen": "2045-01-01T00:00:00Z", - "ContentItemData": { - "ArticleTitle": "en-GB UMT simplified model creation", - "ArticleText": "This article is only example of creation UMT simplified model for en-GB language", - "RelatedArticles": null, - "RelatedFaq": null, - "CoffeaTaxonomy": "[{\u0022Identifier\u0022:\u0022a6e3cc11-95a8-482c-beb4-58bbef6e7bdd\u0022},{\u0022Identifier\u0022:\u0022bb181050-79b0-4f42-9280-ef486a139623\u0022}]" - } - } - ], - "PageData": { - "PageUrls": [ - { - "UrlPath": "en-us/simplified-sample", - "PathIsDraft": false, - "LanguageName": "en-US" - }, - { - "UrlPath": "en-gb/simplified-sample", - "PathIsDraft": false, - "LanguageName": "en-GB" - } - ], - "PageGuid": "4ea03de4-977e-48aa-9340-babf3d23bafa", - "ParentGuid": null, - "TreePath": "/simplified-sample", - "ItemOrder": null - } - }, - { - "$type": "ContentItemSimplified", - "ContentItemGUID": "9ed8de86-859c-4f6c-94f2-cdd6baed99fe", - "ContentItemContentFolderGUID": null, - "IsSecured": false, - "ContentTypeName": "UMT.Article", - "Name": "SimplifiedModelSampleAsSubPAge", - "IsReusable": true, - "ChannelName": "websitechannelExample", - "LanguageData": [ - { - "LanguageName": "en-US", - "DisplayName": "Simplified model sample sub page - en-us", - "VersionStatus": 0, - "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ScheduledPublishWhen": null, - "ScheduledUnpublishWhen": null, - "ContentItemData": { - "ArticleTitle": "en-US UMT simplified model creation as sub page", - "ArticleText": "This article is only example of creation UMT simplified model for en-US language", - "RelatedArticles": null, - "RelatedFaq": null - } - }, - { - "LanguageName": "en-GB", - "DisplayName": "Simplified model sample sub page - en-gb", - "VersionStatus": 2, - "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ScheduledPublishWhen": null, - "ScheduledUnpublishWhen": null, - "ContentItemData": { - "ArticleTitle": "en-GB UMT simplified model creation as sub page", - "ArticleText": "This article is only example of creation UMT simplified model for en-GB language", - "RelatedArticles": null, - "RelatedFaq": null - } - } - ], - "PageData": { - "PageUrls": [ - { - "UrlPath": "en-us/simplified-sample/sub-page", - "PathIsDraft": false, - "LanguageName": "en-US" - }, - { - "UrlPath": "en-gb/simplified-sample/sub-page", - "PathIsDraft": false, - "LanguageName": "en-GB" - } - ], - "PageGuid": null, - "ParentGuid": "4ea03de4-977e-48aa-9340-babf3d23bafa", - "TreePath": "/simplified-sample/sub-page", - "ItemOrder": null - } - }, - { - "$type": "ContentItemSimplified", - "ContentItemGUID": "f9cb9484-ce90-460f-a5c8-ad953e2b9286", - "ContentItemContentFolderGUID": "ae29c1d1-217a-45da-8b30-585d1881387e", - "IsSecured": false, - "ContentTypeName": "UMT.Faq", - "Name": "SimplifiedModelSampleReusable", - "IsReusable": true, - "ChannelName": null, - "LanguageData": [ - { - "LanguageName": "en-US", - "DisplayName": "FAQ: reusable simplified model sample - en-us", - "VersionStatus": 0, - "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ScheduledPublishWhen": null, - "ScheduledUnpublishWhen": null, - "ContentItemData": { - "FaqQuestion": "en-US FAQ question text (reusable)", - "FaqAnswer": "en-US FAQ answer text (reusable)" - } - }, - { - "LanguageName": "en-GB", - "DisplayName": "FAQ: reusable simplified model sample - en-gb", - "VersionStatus": 2, - "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", - "ScheduledPublishWhen": null, - "ScheduledUnpublishWhen": "2045-01-01T00:00:00Z", - "ContentItemData": { - "FaqQuestion": "en-US FAQ question text (reusable)", - "FaqAnswer": "en-US FAQ answer text (reusable)" - } - } - ], - "PageData": null - } + { + "$type": "Taxonomy", + "TaxonomyName": "CoffeaGenus", + "TaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", + "TaxonomyTitle": "Coffea genus", + "TaxonomyDescription": "Coffea is a genus of flowering plants in the family Rubiaceae", + "TaxonomyTranslations": { + "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { + "Title": "Coffea enUS" + }, + "a6c0a558-8b33-47b6-87a8-491b437c9923": { + "Title": "Coffea enGB" + } + } + }, + { + "$type": "Tag", + "TagName": "CoffeaCanephora", + "TagGUID": "a6e3cc11-95a8-482c-beb4-58bbef6e7bdd", + "TagTaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", + "TagParentGUID": null, + "TagOrder": null, + "TagTitle": "Coffea canephora (Coffea robusta)", + "TagDescription": "Coffea canephora (especially C. canephora var. robusta, so predominantly cultivated that it is often simply termed Coffea robusta, or commonly robusta coffee)", + "TagTranslations": { + "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { + "Title": "Coffea canephora enUS", + "Description": "ENUS Robusta is a species of flowering plant in the family Rubiaceae. Though widely known by the synonym Coffea robusta, the plant is currently scientifically identified as Coffea canephora, which has two main varieties, C. c. robusta and C. c. nganda.[2] The plant has a shallow root system and grows as a robust tree or shrub to about 10 metres (30 feet) tall. It flowers irregularly, taking about 10\u201411 months for the berries to ripen, producing oval-shaped beans." + }, + "a6c0a558-8b33-47b6-87a8-491b437c9923": { + "Title": "Coffea canephora enGB", + "Description": "ENGB Robusta is a species of flowering plant in the family Rubiaceae. Though widely known by the synonym Coffea robusta, the plant is currently scientifically identified as Coffea canephora, which has two main varieties, C. c. robusta and C. c. nganda.[2] The plant has a shallow root system and grows as a robust tree or shrub to about 10 metres (30 feet) tall. It flowers irregularly, taking about 10\u201411 months for the berries to ripen, producing oval-shaped beans." + } + } + }, + { + "$type": "Tag", + "TagName": "CoffeaNganda", + "TagGUID": "b351f88c-7e0c-4339-bcf8-ed86bb8a2804", + "TagTaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", + "TagParentGUID": "a6e3cc11-95a8-482c-beb4-58bbef6e7bdd", + "TagOrder": null, + "TagTitle": "Coffea nganda", + "TagDescription": "Coffea nganda variety of coffea canephora", + "TagTranslations": { + "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { + "Title": "Coffea nganda enUS", + "Description": "ENUS Coffea nganda variety of coffea canephora." + }, + "a6c0a558-8b33-47b6-87a8-491b437c9923": { + "Title": "Coffea nganda enGB", + "Description": "ENGB Coffea nganda variety of coffea canephora." + } + } + }, + { + "$type": "Tag", + "TagName": "CoffeaRobusta", + "TagGUID": "bb181050-79b0-4f42-9280-ef486a139623", + "TagTaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", + "TagParentGUID": "a6e3cc11-95a8-482c-beb4-58bbef6e7bdd", + "TagOrder": null, + "TagTitle": "Coffea robusta", + "TagDescription": "Coffea robusta variety of coffea canephora", + "TagTranslations": { + "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { + "Title": "Coffea robusta enUS", + "Description": "ENUS Coffea robusta variety of coffea canephora." + }, + "a6c0a558-8b33-47b6-87a8-491b437c9923": { + "Title": "Coffea robusta enGB", + "Description": "ENGB Coffea robusta variety of coffea canephora." + } + } + }, + { + "$type": "Tag", + "TagName": "CoffeaArabica", + "TagGUID": "ffe48372-2bac-4a14-ad8c-c86f3f54c7c5", + "TagTaxonomyGUID": "bd88fd9b-8d36-4d02-a4a6-9a2b26c48488", + "TagParentGUID": null, + "TagOrder": null, + "TagTitle": "Coffea arabica", + "TagDescription": "Coffea arabica (/\u0259\u02C8r\u00E6b\u026Ak\u0259/), also known as the Arabica coffee, is a species of flowering plant in the coffee and madder family Rubiaceae.", + "TagTranslations": { + "f454e93b-5fe9-42a9-b1af-b572234ed9c4": { + "Title": "Coffea arabica enUS", + "Description": "ENUS Wild plants grow between 9 and 12 m (30 and 39 ft) tall, and have an open branching system; the leaves are opposite, simple elliptic-ovate to oblong, 6\u201312 cm (2.5\u20134.5 in) long and 4\u20138 cm (1.5\u20133 in) broad, glossy dark green. The flowers are white, 10\u201315 mm in diameter, and grow in axillary clusters. The seeds are contained in a drupe (commonly called a \u0022cherry\u0022) 10\u201315 mm in diameter, maturing bright red to purple and typically containing two seeds, often called coffee beans." + }, + "a6c0a558-8b33-47b6-87a8-491b437c9923": { + "Title": "Coffea arabica enGB", + "Description": "ENGB Wild plants grow between 9 and 12 m (30 and 39 ft) tall, and have an open branching system; the leaves are opposite, simple elliptic-ovate to oblong, 6\u201312 cm (2.5\u20134.5 in) long and 4\u20138 cm (1.5\u20133 in) broad, glossy dark green. The flowers are white, 10\u201315 mm in diameter, and grow in axillary clusters. The seeds are contained in a drupe (commonly called a \u0022cherry\u0022) 10\u201315 mm in diameter, maturing bright red to purple and typically containing two seeds, often called coffee beans." + } + } + }, + { + "$type": "UserInfo", + "UserName": "sadmin", + "FirstName": "Sample", + "LastName": "Admin", + "Email": "admin@sample.localhost", + "UserPassword": "[sample hash]", + "UserEnabled": true, + "UserCreated": "1990-01-01T00:00:00Z", + "LastLogon": null, + "UserGUID": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "UserLastModified": null, + "UserSecurityStamp": null, + "UserPasswordLastChanged": null, + "UserIsPendingRegistration": false, + "UserRegistrationLinkExpiration": null, + "UserAdministrationAccess": true, + "UserIsExternal": false + }, + { + "$type": "ContentLanguage", + "ContentLanguageGUID": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentLanguageDisplayName": "English (United States)", + "ContentLanguageName": "en-US", + "ContentLanguageIsDefault": false, + "ContentLanguageFallbackContentLanguageGuid": null, + "ContentLanguageCultureFormat": "en-US" + }, + { + "$type": "ContentLanguage", + "ContentLanguageGUID": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "ContentLanguageDisplayName": "English (United Kingdom)", + "ContentLanguageName": "en-GB", + "ContentLanguageIsDefault": false, + "ContentLanguageFallbackContentLanguageGuid": null, + "ContentLanguageCultureFormat": "en-GB" + }, + { + "$type": "ContentLanguage", + "ContentLanguageGUID": "4c80c6dd-a5c2-443d-873a-e9c328024b7c", + "ContentLanguageDisplayName": "Spanish", + "ContentLanguageName": "es", + "ContentLanguageIsDefault": false, + "ContentLanguageFallbackContentLanguageGuid": null, + "ContentLanguageCultureFormat": "es" + }, + { + "$type": "Channel", + "ChannelDisplayName": "email Channel Example", + "ChannelName": "emailChannelExampleBasic", + "ChannelGUID": "fc847362-e4b0-40ae-8235-f20098daf09f", + "ChannelType": 1 + }, + { + "$type": "Channel", + "ChannelDisplayName": "website Channel Example", + "ChannelName": "websitechannelExample", + "ChannelGUID": "5322a379-5b5f-4220-9383-8e3115e66cd3", + "ChannelType": 0 + }, + { + "$type": "EmailChannel", + "EmailChannelGUID": "2c7309ec-1e24-4715-ae6c-8c7efc98a4c5", + "EmailChannelSendingDomain": "emailChannelsample.com", + "EmailChannelPrimaryContentLanguageGUID": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "EmailChannelChannelGuid": "fc847362-e4b0-40ae-8235-f20098daf09f", + "EmailChannelServiceDomain": "www.emailChannelSendingDomainSample" + }, + { + "$type": "WebSiteChannel", + "WebsiteChannelGUID": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", + "WebsiteChannelChannelGuid": "5322a379-5b5f-4220-9383-8e3115e66cd3", + "WebsiteChannelDomain": "websitesamplewebsitedomain.com", + "WebsiteChannelHomePage": "home", + "WebsiteChannelPrimaryContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "WebsiteChannelDefaultCookieLevel": 1000, + "WebsiteChannelStoreFormerUrls": false + }, + { + "$type": "DataClass", + "ClassDisplayName": "This is Article example", + "ClassName": "UMT.Article", + "ClassShortName": "UMT.Article", + "ClassTableName": "UMT_Article", + "ClassShowTemplateSelection": null, + "ClassLastModified": "2024-01-08T22:55:31.7853783\u002B01:00", + "ClassGUID": "06540294-3b56-4cf7-8773-088bb766ac23", + "ClassContactMapping": null, + "ClassContactOverwriteEnabled": null, + "ClassConnectionString": null, + "ClassDefaultObjectType": null, + "ClassResourceGuid": null, + "ClassCodeGenerationSettings": null, + "ClassHasUnmanagedDbSchema": false, + "ClassType": "Content", + "ClassContentTypeType": "Website", + "ClassWebPageHasUrl": true, + "Fields": [ + { + "AllowEmpty": true, + "Column": "ArticleTitle", + "ColumnSize": 200, + "ColumnType": "text", + "Enabled": true, + "Guid": "ea7da631-6d9c-413f-a746-93442b623908", + "Visible": true, + "Properties": { + "FieldCaption": "Article title" + }, + "Settings": { + "ControlName": "Kentico.Administration.TextInput" + }, + "Precision": null + }, + { + "AllowEmpty": true, + "Column": "ArticleDecimalNumberSample", + "ColumnSize": 15, + "ColumnType": "decimal", + "Enabled": true, + "Guid": "8e749651-773b-47b9-a888-c541c3c3e1b7", + "Visible": true, + "Properties": { + "FieldCaption": "Article decimal number sample" + }, + "Settings": { + "ControlName": "Kentico.Administration.DecimalNumberInput" + }, + "Precision": 5 + }, + { + "AllowEmpty": true, + "Column": "ArticleText", + "ColumnSize": 0, + "ColumnType": "longtext", + "Enabled": true, + "Guid": "a54aef74-42b3-438e-92b2-2f5b4386fb57", + "Visible": true, + "Properties": { + "FieldCaption": "Article text" + }, + "Settings": { + "ControlName": "Kentico.Administration.TextArea" + }, + "Precision": null + }, + { + "AllowEmpty": true, + "Column": "RelatedArticles", + "ColumnSize": 0, + "ColumnType": "webpages", + "Enabled": true, + "Guid": "4b7a3fec-ee64-4688-b441-fece563b906d", + "Visible": true, + "Properties": { + "FieldCaption": "Related articles", + "fieldcaption": "Related articles", + "fielddescriptionashtml": "False" + }, + "Settings": { + "ControlName": "Kentico.Administration.WebPageSelector", + "MaximumPages": 5, + "Sortable": "False", + "TreePath": "/Articles" + }, + "Precision": null + }, + { + "AllowEmpty": true, + "Column": "RelatedFaq", + "ColumnSize": 0, + "ColumnType": "contentitemreference", + "Enabled": true, + "Guid": "fc1fde10-11bf-4174-bd64-d1f114e4b421", + "Visible": true, + "Properties": { + "FieldCaption": "Related articles", + "fieldcaption": "Related Faq", + "fielddescriptionashtml": "False" + }, + "Settings": { + "ControlName": "Kentico.Administration.ContentItemSelector", + "AllowedContentItemTypeIdentifiers": "[\u00227ed6604e-613b-4ce0-8c21-acfb372c416a\u0022]" + }, + "Precision": null + }, + { + "AllowEmpty": true, + "Column": "CoffeaTaxonomy", + "ColumnSize": 0, + "ColumnType": "taxonomy", + "Enabled": true, + "Guid": "36295d61-7f85-4213-8e5c-06772ed67dfb", + "Visible": true, + "Properties": { + "FieldCaption": "Taxonomy coffee", + "explanationtextashtml": "False", + "fielddescriptionashtml": "False" + }, + "Settings": { + "ControlName": "Kentico.Administration.TagSelector", + "TaxonomyGroup": "[\u0022bd88fd9b-8d36-4d02-a4a6-9a2b26c48488\u0022]" + }, + "Precision": null + } + ] + }, + { + "$type": "ContentTypeChannel", + "ContentTypeChannelChannelGuid": "5322a379-5b5f-4220-9383-8e3115e66cd3", + "ContentTypeChannelContentTypeGuid": "06540294-3b56-4cf7-8773-088bb766ac23" + }, + { + "$type": "DataClass", + "ClassDisplayName": "Faq", + "ClassName": "UMT.Faq", + "ClassShortName": "UMT.Faq", + "ClassTableName": "UMT_Faq", + "ClassShowTemplateSelection": null, + "ClassLastModified": "2024-01-08T22:56:07.1472943Z", + "ClassGUID": "7ed6604e-613b-4ce0-8c21-acfb372c416a", + "ClassContactMapping": null, + "ClassContactOverwriteEnabled": null, + "ClassConnectionString": null, + "ClassDefaultObjectType": null, + "ClassResourceGuid": null, + "ClassCodeGenerationSettings": null, + "ClassHasUnmanagedDbSchema": false, + "ClassType": "Content", + "ClassContentTypeType": "Reusable", + "ClassWebPageHasUrl": null, + "Fields": [ + { + "AllowEmpty": false, + "Column": "FaqQuestion", + "ColumnSize": 200, + "ColumnType": "text", + "Enabled": true, + "Guid": "b7a99ef4-6775-4088-acc7-41c21299aabf", + "Visible": true, + "Properties": { + "FieldCaption": "Question" + }, + "Settings": { + "ControlName": "Kentico.Administration.TextInput" + }, + "Precision": null + }, + { + "AllowEmpty": false, + "Column": "FaqAnswer", + "ColumnSize": 200, + "ColumnType": "text", + "Enabled": true, + "Guid": "87995645-5868-470b-b25a-0e2a4e6d0e85", + "Visible": true, + "Properties": { + "FieldCaption": "Answer" + }, + "Settings": { + "ControlName": "Kentico.Administration.TextInput" + }, + "Precision": null + } + ] + }, + { + "$type": "DataClass", + "ClassDisplayName": "Event", + "ClassName": "UMT.Event", + "ClassShortName": "UMT.Event", + "ClassTableName": "UMT_Event", + "ClassShowTemplateSelection": null, + "ClassLastModified": "2024-01-08T22:56:12.2515785Z", + "ClassGUID": "4712c000-4d63-4333-8708-990603f73a1e", + "ClassContactMapping": null, + "ClassContactOverwriteEnabled": null, + "ClassConnectionString": null, + "ClassDefaultObjectType": null, + "ClassResourceGuid": null, + "ClassCodeGenerationSettings": null, + "ClassHasUnmanagedDbSchema": false, + "ClassType": "Content", + "ClassContentTypeType": "Reusable", + "ClassWebPageHasUrl": null, + "Fields": [ + { + "AllowEmpty": true, + "Column": "EventTitle", + "ColumnSize": 200, + "ColumnType": "text", + "Enabled": true, + "Guid": "0e1e63eb-918a-4135-a627-04393672d6f4", + "Visible": true, + "Properties": { + "FieldCaption": "Title" + }, + "Settings": { + "ControlName": "Kentico.Administration.TextInput" + }, + "Precision": null + }, + { + "AllowEmpty": true, + "Column": "EventText", + "ColumnSize": 0, + "ColumnType": "longtext", + "Enabled": true, + "Guid": "a54aef74-42b3-438e-92b2-2f5b4386fb57", + "Visible": true, + "Properties": { + "FieldCaption": "Text" + }, + "Settings": { + "ControlName": "Kentico.Administration.TextArea" + }, + "Precision": null + }, + { + "AllowEmpty": true, + "Column": "EventDate", + "ColumnSize": 0, + "ColumnType": "datetime", + "Enabled": true, + "Guid": "f3356f35-0a78-4a98-8696-a1becb725b0a", + "Visible": true, + "Properties": { + "FieldCaption": "Date" + }, + "Settings": { + "ControlName": "Kentico.Administration.DateTimeInput" + }, + "Precision": null + }, + { + "AllowEmpty": true, + "Column": "EventRecurrentYearly", + "ColumnSize": 0, + "ColumnType": "boolean", + "Enabled": true, + "Guid": "98d2cf95-5027-488a-b833-89510f4662c1", + "Visible": true, + "Properties": { + "FieldCaption": "Event occurs every year" + }, + "Settings": { + "ControlName": "Kentico.Administration.Checkbox" + }, + "Precision": null + } + ] + }, + { + "$type": "ContentItem", + "ContentItemGUID": "c354427d-3d02-4876-8ed4-4de817fae929", + "ContentItemContentFolderGUID": null, + "ContentItemName": "NewsLetterExampleName", + "ContentItemIsReusable": true, + "ContentItemIsSecured": true, + "ContentItemDataClassGuid": "978b2cd4-c248-4317-86a1-3bdd17444267", + "ContentItemChannelGuid": "b186b5a3-f408-4e21-a2f9-e51d68ecac38" + }, + { + "$type": "ContentItemLanguageMetadata", + "ContentItemLanguageMetadataGUID": "65421553-5f92-44b7-a02f-2b9ca083e14a", + "ContentItemLanguageMetadataContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929", + "ContentItemLanguageMetadataDisplayName": "Basic Language Metadata Example", + "ContentItemLanguageMetadataLatestVersionStatus": 1, + "ContentItemLanguageMetadataCreatedWhen": "2024-01-06T22:55:48.9503105Z", + "ContentItemLanguageMetadataCreatedByUserGuid": null, + "ContentItemLanguageMetadataModifiedWhen": "2024-01-08T22:55:52.0392925Z", + "ContentItemLanguageMetadataModifiedByUserGuid": null, + "ContentItemLanguageMetadataHasImageAsset": false, + "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentItemLanguageMetadataScheduledPublishWhen": null, + "ContentItemLanguageMetadataScheduledUnpublishWhen": null + }, + { + "$type": "ContentItemLanguageMetadata", + "ContentItemLanguageMetadataGUID": "12191a4b-26d8-40bb-a214-73d9874920fd", + "ContentItemLanguageMetadataContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929", + "ContentItemLanguageMetadataDisplayName": "Language Metadata Example", + "ContentItemLanguageMetadataLatestVersionStatus": 2, + "ContentItemLanguageMetadataCreatedWhen": "2024-01-06T22:55:58.3208748Z", + "ContentItemLanguageMetadataCreatedByUserGuid": "95f42fd4-6a14-4e88-b214-4e136479f788", + "ContentItemLanguageMetadataModifiedWhen": "2024-01-08T22:56:01.1939486Z", + "ContentItemLanguageMetadataModifiedByUserGuid": "95f42fd4-6a14-4e88-b214-4e136479f788", + "ContentItemLanguageMetadataHasImageAsset": false, + "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentItemLanguageMetadataScheduledPublishWhen": null, + "ContentItemLanguageMetadataScheduledUnpublishWhen": "2045-01-01T00:00:00Z" + }, + { + "$type": "WebPageItem", + "WebPageItemGUID": "6e995319-77e7-475e-9ebb-607bdbf5af9a", + "WebPageItemParentGuid": null, + "WebPageItemName": "NewWebPageItem", + "WebPageItemTreePath": "/home", + "WebPageItemWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", + "WebPageItemContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929", + "WebPageItemOrder": 1 + }, + { + "$type": "Media_Library", + "LibraryName": "LibrarySample", + "LibraryDisplayName": "LibraryDisplayedName", + "LibraryDescription": "TestLibrary", + "LibraryFolder": "TestFolder", + "LibraryGUID": "e3a9c50c-2b76-4ba8-ac19-2f0aa64c47d5", + "LibraryLastModified": null + }, + { + "$type": "Media_File", + "DataSourcePath": null, + "DataSourceUrl": "https://devnet.kentico.com/DevNet/media/devnet/cms_screen.jpg", + "FileGUID": "94df1156-c85d-4356-8e28-16d71c6ac899", + "FileLibraryGuid": "e3a9c50c-2b76-4ba8-ac19-2f0aa64c47d5", + "FileCreatedByUserGuid": "863f796e-823a-4f5e-bbdb-e4a6f15b349b", + "FileModifiedByUserGuid": null, + "FileName": "NewTestFileFromUri", + "FileTitle": "Old devnet screen", + "FileDescription": null, + "FileExtension": ".jpg", + "FileMimeType": null, + "FilePath": "customdir/NewTestFileFromUri.jpg", + "FileImageWidth": null, + "FileImageHeight": null, + "FileCreatedWhen": null, + "FileModifiedWhen": null + }, + { + "$type": "ContentItem", + "ContentItemGUID": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", + "ContentItemContentFolderGUID": null, + "ContentItemName": "SampleReusableFaq", + "ContentItemIsReusable": true, + "ContentItemIsSecured": true, + "ContentItemDataClassGuid": "7ed6604e-613b-4ce0-8c21-acfb372c416a", + "ContentItemChannelGuid": null + }, + { + "$type": "ContentItemCommonData", + "ContentItemCommonDataGUID": "2b1987bf-680b-48c0-85ce-47ff9fde24c7", + "ContentItemCommonDataContentItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", + "ContentItemCommonDataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentItemCommonDataVersionStatus": 2, + "ContentItemCommonDataIsLatest": true, + "ContentItemCommonDataPageBuilderWidgets": null, + "ContentItemCommonDataPageTemplateConfiguration": null + }, + { + "$type": "ContentItemCommonData", + "ContentItemCommonDataGUID": "96016b05-b3d3-42f9-b5aa-71e2f816eb8f", + "ContentItemCommonDataContentItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", + "ContentItemCommonDataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "ContentItemCommonDataVersionStatus": 2, + "ContentItemCommonDataIsLatest": true, + "ContentItemCommonDataPageBuilderWidgets": null, + "ContentItemCommonDataPageTemplateConfiguration": null + }, + { + "$type": "ContentItemData", + "ContentItemDataGUID": "d29e7c59-09d5-443c-999d-063ba62e5f97", + "ContentItemDataCommonDataGuid": "2b1987bf-680b-48c0-85ce-47ff9fde24c7", + "ContentItemContentTypeName": "UMT.Faq", + "FaqQuestion": "en-US FAQ question text", + "FaqAnswer": "en-US FAQ answer text" + }, + { + "$type": "ContentItemData", + "ContentItemDataGUID": "93269639-1c4a-48b8-b367-0da00268eeb0", + "ContentItemDataCommonDataGuid": "96016b05-b3d3-42f9-b5aa-71e2f816eb8f", + "ContentItemContentTypeName": "UMT.Faq", + "FaqQuestion": "en-GB FAQ question text", + "FaqAnswer": "en-GB FAQ answer text" + }, + { + "$type": "ContentItemLanguageMetadata", + "ContentItemLanguageMetadataGUID": "46353800-21b8-48f6-8681-b19966f4b6eb", + "ContentItemLanguageMetadataContentItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", + "ContentItemLanguageMetadataDisplayName": "Sample reusable FAQ", + "ContentItemLanguageMetadataLatestVersionStatus": 0, + "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", + "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataModifiedWhen": null, + "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataHasImageAsset": false, + "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentItemLanguageMetadataScheduledPublishWhen": "2045-01-01T00:00:00Z", + "ContentItemLanguageMetadataScheduledUnpublishWhen": null + }, + { + "$type": "ContentItemLanguageMetadata", + "ContentItemLanguageMetadataGUID": "b15b3d9f-0cb1-405a-bc04-a069daecf72d", + "ContentItemLanguageMetadataContentItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", + "ContentItemLanguageMetadataDisplayName": "Sample reusable FAQ", + "ContentItemLanguageMetadataLatestVersionStatus": 2, + "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", + "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataModifiedWhen": null, + "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataHasImageAsset": false, + "ContentItemLanguageMetadataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "ContentItemLanguageMetadataScheduledPublishWhen": null, + "ContentItemLanguageMetadataScheduledUnpublishWhen": null + }, + { + "$type": "ContentItem", + "ContentItemGUID": "df81215e-1414-4d87-befd-ae123f4e5653", + "ContentItemContentFolderGUID": null, + "ContentItemName": "CreationOfUmtModel", + "ContentItemIsReusable": false, + "ContentItemIsSecured": false, + "ContentItemDataClassGuid": "06540294-3b56-4cf7-8773-088bb766ac23", + "ContentItemChannelGuid": "5322a379-5b5f-4220-9383-8e3115e66cd3" + }, + { + "$type": "ContentItemCommonData", + "ContentItemCommonDataGUID": "8f070195-2f39-463e-b7eb-c180c05fd5e0", + "ContentItemCommonDataContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", + "ContentItemCommonDataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentItemCommonDataVersionStatus": 2, + "ContentItemCommonDataIsLatest": true, + "ContentItemCommonDataPageBuilderWidgets": null, + "ContentItemCommonDataPageTemplateConfiguration": null + }, + { + "$type": "ContentItemCommonData", + "ContentItemCommonDataGUID": "49d2caf6-2011-42d7-961d-02614d1b43f4", + "ContentItemCommonDataContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", + "ContentItemCommonDataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "ContentItemCommonDataVersionStatus": 2, + "ContentItemCommonDataIsLatest": true, + "ContentItemCommonDataPageBuilderWidgets": null, + "ContentItemCommonDataPageTemplateConfiguration": null + }, + { + "$type": "ContentItemData", + "ContentItemDataGUID": "9a5b10e0-d0e6-4de9-9d82-6d8deeea1849", + "ContentItemDataCommonDataGuid": "8f070195-2f39-463e-b7eb-c180c05fd5e0", + "ContentItemContentTypeName": "UMT.Article", + "ArticleTitle": "en-US UMT model creation", + "ArticleText": "This article is only example of creation UMT model for en-US language", + "RelatedArticles": null, + "RelatedFaq": null, + "CoffeaTaxonomy": "[{\u0022Identifier\u0022:\u0022ffe48372-2bac-4a14-ad8c-c86f3f54c7c5\u0022}]", + "ArticleDecimalNumberSample": 123456.12345 + }, + { + "$type": "ContentItemData", + "ContentItemDataGUID": "21380f91-279b-44be-aad8-2e62c345a0e9", + "ContentItemDataCommonDataGuid": "49d2caf6-2011-42d7-961d-02614d1b43f4", + "ContentItemContentTypeName": "UMT.Article", + "ArticleTitle": "en-GB UMT model creation", + "ArticleText": "This article is only example of creation UMT model for en-GB language", + "RelatedArticles": null, + "RelatedFaq": null, + "CoffeaTaxonomy": "[{\u0022Identifier\u0022:\u0022ffe48372-2bac-4a14-ad8c-c86f3f54c7c5\u0022}]", + "ArticleDecimalNumberSample": 123456.12345 + }, + { + "$type": "ContentItemLanguageMetadata", + "ContentItemLanguageMetadataGUID": "192c63ac-e5be-4b0f-b916-b8af6c7e79a9", + "ContentItemLanguageMetadataContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", + "ContentItemLanguageMetadataDisplayName": "Creation of UMT model", + "ContentItemLanguageMetadataLatestVersionStatus": 2, + "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", + "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataModifiedWhen": null, + "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataHasImageAsset": false, + "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentItemLanguageMetadataScheduledPublishWhen": null, + "ContentItemLanguageMetadataScheduledUnpublishWhen": null + }, + { + "$type": "ContentItemLanguageMetadata", + "ContentItemLanguageMetadataGUID": "7f6a0c0d-a2bb-454c-8e16-adcfe0e38d17", + "ContentItemLanguageMetadataContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", + "ContentItemLanguageMetadataDisplayName": "Creation of UMT model GB", + "ContentItemLanguageMetadataLatestVersionStatus": 2, + "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", + "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataModifiedWhen": null, + "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataHasImageAsset": false, + "ContentItemLanguageMetadataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "ContentItemLanguageMetadataScheduledPublishWhen": null, + "ContentItemLanguageMetadataScheduledUnpublishWhen": null + }, + { + "$type": "WebPageUrlPath", + "WebPageUrlPathGUID": "2bda2458-e262-4825-b51b-5a7b345ed7bd", + "WebPageUrlPath": "en-US/creation-of-umt-model", + "WebPageUrlPathHash": null, + "WebPageUrlPathWebPageItemGuid": "6e995319-77e7-475e-9ebb-607bdbf5af9a", + "WebPageUrlPathWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", + "WebPageUrlPathContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "WebPageUrlPathIsLatest": true, + "WebPageUrlPathIsDraft": false + }, + { + "$type": "WebPageUrlPath", + "WebPageUrlPathGUID": "8083fa41-03fe-49c3-87fb-4f7c530b14cf", + "WebPageUrlPath": "en-GB/creation-of-umt-model", + "WebPageUrlPathHash": null, + "WebPageUrlPathWebPageItemGuid": "6e995319-77e7-475e-9ebb-607bdbf5af9a", + "WebPageUrlPathWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", + "WebPageUrlPathContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "WebPageUrlPathIsLatest": true, + "WebPageUrlPathIsDraft": false + }, + { + "$type": "WebPageItem", + "WebPageItemGUID": "6e995319-77e7-475e-9ebb-607bdbf5af9a", + "WebPageItemParentGuid": null, + "WebPageItemName": "CreationOfUmtModelUs", + "WebPageItemTreePath": "/creation-of-umt-model", + "WebPageItemWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", + "WebPageItemContentItemGuid": "df81215e-1414-4d87-befd-ae123f4e5653", + "WebPageItemOrder": 1 + }, + { + "$type": "ContentItem", + "ContentItemGUID": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", + "ContentItemContentFolderGUID": null, + "ContentItemName": "Content-item-with-relations", + "ContentItemIsReusable": false, + "ContentItemIsSecured": true, + "ContentItemDataClassGuid": "06540294-3b56-4cf7-8773-088bb766ac23", + "ContentItemChannelGuid": "5322a379-5b5f-4220-9383-8e3115e66cd3" + }, + { + "$type": "ContentItemCommonData", + "ContentItemCommonDataGUID": "56f0e676-8fcc-4a5d-8b69-f6eca372b998", + "ContentItemCommonDataContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", + "ContentItemCommonDataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentItemCommonDataVersionStatus": 0, + "ContentItemCommonDataIsLatest": true, + "ContentItemCommonDataPageBuilderWidgets": null, + "ContentItemCommonDataPageTemplateConfiguration": null + }, + { + "$type": "ContentItemCommonData", + "ContentItemCommonDataGUID": "a790b2d4-5ac1-4fb0-812c-2ad2171c61c9", + "ContentItemCommonDataContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", + "ContentItemCommonDataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "ContentItemCommonDataVersionStatus": 2, + "ContentItemCommonDataIsLatest": true, + "ContentItemCommonDataPageBuilderWidgets": null, + "ContentItemCommonDataPageTemplateConfiguration": null + }, + { + "$type": "ContentItemData", + "ContentItemDataGUID": "b6847866-12b1-4a4a-aba7-d93860102bc8", + "ContentItemDataCommonDataGuid": "56f0e676-8fcc-4a5d-8b69-f6eca372b998", + "ContentItemContentTypeName": "UMT.Article", + "ArticleTitle": "en-US UMT model creation", + "ArticleText": "This article is only example of creation UMT model for en-US language", + "RelatedArticles": "[{\u0022WebPageGuid\u0022:\u00226e995319-77e7-475e-9ebb-607bdbf5af9a\u0022}]", + "RelatedFaq": "[{\u0022Identifier\u0022:\u0022b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee\u0022}]", + "ArticleDecimalNumberSample": 123456.12345 + }, + { + "$type": "ContentItemReference", + "ContentItemReferenceGUID": "186e37c6-5c55-4637-8feb-ec5cb6547aba", + "ContentItemReferenceSourceCommonDataGuid": "8f070195-2f39-463e-b7eb-c180c05fd5e0", + "ContentItemReferenceTargetItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", + "ContentItemReferenceGroupGUID": "fc1fde10-11bf-4174-bd64-d1f114e4b421" + }, + { + "$type": "ContentItemData", + "ContentItemDataGUID": "a80f91ff-4cfc-4e28-982a-e4a434517680", + "ContentItemDataCommonDataGuid": "a790b2d4-5ac1-4fb0-812c-2ad2171c61c9", + "ContentItemContentTypeName": "UMT.Article", + "ArticleTitle": "en-GB UMT model creation", + "ArticleText": "This article is only example of creation UMT model for en-GB language", + "RelatedArticles": "[{\u0022WebPageGuid\u0022:\u00226e995319-77e7-475e-9ebb-607bdbf5af9a\u0022}]", + "RelatedFaq": "[{\u0022Identifier\u0022:\u0022b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee\u0022}]", + "ArticleDecimalNumberSample": 123456.12345 + }, + { + "$type": "ContentItemReference", + "ContentItemReferenceGUID": "e95eefe5-5b89-43ab-91c9-777be00d5680", + "ContentItemReferenceSourceCommonDataGuid": "49d2caf6-2011-42d7-961d-02614d1b43f4", + "ContentItemReferenceTargetItemGuid": "b64b3e3e-f5a9-4d02-8cdb-6d81805c0fee", + "ContentItemReferenceGroupGUID": "fc1fde10-11bf-4174-bd64-d1f114e4b421" + }, + { + "$type": "ContentItemLanguageMetadata", + "ContentItemLanguageMetadataGUID": "9ec48558-4e26-4ddf-9804-fa0fbe95142d", + "ContentItemLanguageMetadataContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", + "ContentItemLanguageMetadataDisplayName": "Content item with relations", + "ContentItemLanguageMetadataLatestVersionStatus": 0, + "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", + "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataModifiedWhen": null, + "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataHasImageAsset": false, + "ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "ContentItemLanguageMetadataScheduledPublishWhen": null, + "ContentItemLanguageMetadataScheduledUnpublishWhen": null + }, + { + "$type": "ContentItemLanguageMetadata", + "ContentItemLanguageMetadataGUID": "8a3f1795-c0ac-4501-be4e-6fba0cd11654", + "ContentItemLanguageMetadataContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", + "ContentItemLanguageMetadataDisplayName": "Content item with relations en-GB", + "ContentItemLanguageMetadataLatestVersionStatus": 2, + "ContentItemLanguageMetadataCreatedWhen": "2023-12-10T00:00:00Z", + "ContentItemLanguageMetadataCreatedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataModifiedWhen": null, + "ContentItemLanguageMetadataModifiedByUserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemLanguageMetadataHasImageAsset": false, + "ContentItemLanguageMetadataContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "ContentItemLanguageMetadataScheduledPublishWhen": null, + "ContentItemLanguageMetadataScheduledUnpublishWhen": null + }, + { + "$type": "WebPageItem", + "WebPageItemGUID": "14784bf0-69d0-40cf-8be6-e5a0d897774b", + "WebPageItemParentGuid": null, + "WebPageItemName": "ContentItemWithRelations", + "WebPageItemTreePath": "/content-item-with-relations", + "WebPageItemWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", + "WebPageItemContentItemGuid": "e09121ad-dd97-472f-b8f6-85fe5428ed6a", + "WebPageItemOrder": 1 + }, + { + "$type": "WebPageUrlPath", + "WebPageUrlPathGUID": "c0f97ba5-7a64-4309-8d58-6054fc90ac66", + "WebPageUrlPath": "en-US/content-item-with-relations", + "WebPageUrlPathHash": null, + "WebPageUrlPathWebPageItemGuid": "14784bf0-69d0-40cf-8be6-e5a0d897774b", + "WebPageUrlPathWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", + "WebPageUrlPathContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4", + "WebPageUrlPathIsLatest": true, + "WebPageUrlPathIsDraft": false + }, + { + "$type": "WebPageUrlPath", + "WebPageUrlPathGUID": "ccb7af1f-57d9-405a-84fa-d0f4129a17da", + "WebPageUrlPath": "en-GB/content-item-with-relations", + "WebPageUrlPathHash": null, + "WebPageUrlPathWebPageItemGuid": "14784bf0-69d0-40cf-8be6-e5a0d897774b", + "WebPageUrlPathWebsiteChannelGuid": "a6ba6fcb-9d05-4abe-afb4-74b153c90db7", + "WebPageUrlPathContentLanguageGuid": "a6c0a558-8b33-47b6-87a8-491b437c9923", + "WebPageUrlPathIsLatest": true, + "WebPageUrlPathIsDraft": false + }, + { + "$type": "ContentFolder", + "ContentFolderGUID": "7665a8fc-53a2-4aff-86e8-99b009104ff2", + "ContentFolderParentFolderGUID": null, + "ContentFolderName": "articles", + "ContentFolderDisplayName": "Articles", + "ContentFolderTreePath": "/articles" + }, + { + "$type": "ContentFolder", + "ContentFolderGUID": "ae29c1d1-217a-45da-8b30-585d1881387e", + "ContentFolderParentFolderGUID": "7665a8fc-53a2-4aff-86e8-99b009104ff2", + "ContentFolderName": "obsolete", + "ContentFolderDisplayName": "Obsolete", + "ContentFolderTreePath": "/articles/obsolete" + }, + { + "$type": "ContentItemSimplified", + "ContentItemGUID": "37c3f5dd-6f2a-4eff-b46e-a36eddebf572", + "ContentItemContentFolderGUID": null, + "IsSecured": false, + "ContentTypeName": "UMT.Article", + "Name": "SimplifiedModelSample", + "IsReusable": true, + "ChannelName": "websitechannelExample", + "LanguageData": [ + { + "LanguageName": "en-US", + "DisplayName": "Simplified model sample - en-us", + "VersionStatus": 0, + "UserGuid": null, + "ScheduledPublishWhen": "2045-01-01T00:00:00Z", + "ScheduledUnpublishWhen": null, + "ContentItemData": { + "ArticleTitle": "en-US UMT simplified model creation", + "ArticleText": "This article is only example of creation UMT simplified model for en-US language", + "RelatedArticles": null, + "RelatedFaq": null, + "CoffeaTaxonomy": "[{\u0022Identifier\u0022:\u0022a6e3cc11-95a8-482c-beb4-58bbef6e7bdd\u0022},{\u0022Identifier\u0022:\u0022bb181050-79b0-4f42-9280-ef486a139623\u0022}]" + } + }, + { + "LanguageName": "en-GB", + "DisplayName": "Simplified model sample - en-gb", + "VersionStatus": 2, + "UserGuid": null, + "ScheduledPublishWhen": null, + "ScheduledUnpublishWhen": "2045-01-01T00:00:00Z", + "ContentItemData": { + "ArticleTitle": "en-GB UMT simplified model creation", + "ArticleText": "This article is only example of creation UMT simplified model for en-GB language", + "RelatedArticles": null, + "RelatedFaq": null, + "CoffeaTaxonomy": "[{\u0022Identifier\u0022:\u0022a6e3cc11-95a8-482c-beb4-58bbef6e7bdd\u0022},{\u0022Identifier\u0022:\u0022bb181050-79b0-4f42-9280-ef486a139623\u0022}]" + } + } + ], + "PageData": { + "PageUrls": [ + { + "UrlPath": "en-us/simplified-sample", + "PathIsDraft": null, + "LanguageName": "en-US" + }, + { + "UrlPath": "en-gb/simplified-sample", + "PathIsDraft": null, + "LanguageName": "en-GB" + }, + { + "UrlPath": "es/simplified-sample", + "PathIsDraft": null, + "LanguageName": "es" + } + ], + "PageGuid": "4ea03de4-977e-48aa-9340-babf3d23bafa", + "ParentGuid": null, + "TreePath": "/simplified-sample", + "ItemOrder": null + } + }, + { + "$type": "ContentItemSimplified", + "ContentItemGUID": "9ed8de86-859c-4f6c-94f2-cdd6baed99fe", + "ContentItemContentFolderGUID": null, + "IsSecured": false, + "ContentTypeName": "UMT.Article", + "Name": "SimplifiedModelSampleAsSubPAge", + "IsReusable": true, + "ChannelName": "websitechannelExample", + "LanguageData": [ + { + "LanguageName": "en-US", + "DisplayName": "Simplified model sample sub page - en-us", + "VersionStatus": 0, + "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ScheduledPublishWhen": null, + "ScheduledUnpublishWhen": null, + "ContentItemData": { + "ArticleTitle": "en-US UMT simplified model creation as sub page", + "ArticleText": "This article is only example of creation UMT simplified model for en-US language", + "RelatedArticles": null, + "RelatedFaq": null + } + }, + { + "LanguageName": "en-GB", + "DisplayName": "Simplified model sample sub page - en-gb", + "VersionStatus": 2, + "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ScheduledPublishWhen": null, + "ScheduledUnpublishWhen": null, + "ContentItemData": { + "ArticleTitle": "en-GB UMT simplified model creation as sub page", + "ArticleText": "This article is only example of creation UMT simplified model for en-GB language", + "RelatedArticles": null, + "RelatedFaq": null + } + } + ], + "PageData": { + "PageUrls": [ + { + "UrlPath": "en-us/simplified-sample/sub-page", + "PathIsDraft": null, + "LanguageName": "en-US" + }, + { + "UrlPath": "en-gb/simplified-sample/sub-page", + "PathIsDraft": null, + "LanguageName": "en-GB" + }, + { + "UrlPath": "es/simplified-sample/sub-page", + "PathIsDraft": null, + "LanguageName": "es" + } + ], + "PageGuid": null, + "ParentGuid": "4ea03de4-977e-48aa-9340-babf3d23bafa", + "TreePath": "/simplified-sample/sub-page", + "ItemOrder": null + } + }, + { + "$type": "ContentItemSimplified", + "ContentItemGUID": "f9cb9484-ce90-460f-a5c8-ad953e2b9286", + "ContentItemContentFolderGUID": "ae29c1d1-217a-45da-8b30-585d1881387e", + "IsSecured": false, + "ContentTypeName": "UMT.Faq", + "Name": "SimplifiedModelSampleReusable", + "IsReusable": true, + "ChannelName": null, + "LanguageData": [ + { + "LanguageName": "en-US", + "DisplayName": "FAQ: reusable simplified model sample - en-us", + "VersionStatus": 0, + "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ScheduledPublishWhen": null, + "ScheduledUnpublishWhen": null, + "ContentItemData": { + "FaqQuestion": "en-US FAQ question text (reusable)", + "FaqAnswer": "en-US FAQ answer text (reusable)" + } + }, + { + "LanguageName": "en-GB", + "DisplayName": "FAQ: reusable simplified model sample - en-gb", + "VersionStatus": 2, + "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ScheduledPublishWhen": null, + "ScheduledUnpublishWhen": "2045-01-01T00:00:00Z", + "ContentItemData": { + "FaqQuestion": "en-US FAQ question text (reusable)", + "FaqAnswer": "en-US FAQ answer text (reusable)" + } + } + ], + "PageData": null + } ] """; #pragma warning restore S2479 diff --git a/examples/Kentico.Xperience.UMT.Examples/SampleProvider.cs b/examples/Kentico.Xperience.UMT.Examples/SampleProvider.cs index 46feaa8..bf64d40 100644 --- a/examples/Kentico.Xperience.UMT.Examples/SampleProvider.cs +++ b/examples/Kentico.Xperience.UMT.Examples/SampleProvider.cs @@ -54,6 +54,7 @@ public static List GetFullSample() UserSamples.SampleAdministrator, ContentLanguageSamples.SampleContentLanguageEnUs, ContentLanguageSamples.SampleContentLanguageEnGb, + ContentLanguageSamples.SampleContentLanguageEs, ChannelSamples.SampleChannelForEmailChannel, ChannelSamples.SampleChannelForWebSiteChannel, diff --git a/examples/Kentico.Xperience.UMT.Examples/Samples/ContentItemSimplifiedSamples.cs b/examples/Kentico.Xperience.UMT.Examples/Samples/ContentItemSimplifiedSamples.cs index b42c64d..b3f29e0 100644 --- a/examples/Kentico.Xperience.UMT.Examples/Samples/ContentItemSimplifiedSamples.cs +++ b/examples/Kentico.Xperience.UMT.Examples/Samples/ContentItemSimplifiedSamples.cs @@ -33,14 +33,17 @@ public static class ContentItemSimplifiedSamples new() { UrlPath = "en-us/simplified-sample", - PathIsDraft = false, LanguageName = ContentLanguageSamples.SampleContentLanguageEnUs.ContentLanguageName! }, new() { UrlPath = "en-gb/simplified-sample", - PathIsDraft = false, LanguageName = ContentLanguageSamples.SampleContentLanguageEnGb.ContentLanguageName! + }, + new() + { + UrlPath = "es/simplified-sample", + LanguageName = ContentLanguageSamples.SampleContentLanguageEs.ContentLanguageName! } ] }, @@ -107,14 +110,17 @@ public static class ContentItemSimplifiedSamples new() { UrlPath = "en-us/simplified-sample/sub-page", - PathIsDraft = false, LanguageName = ContentLanguageSamples.SampleContentLanguageEnUs.ContentLanguageName! }, new() { UrlPath = "en-gb/simplified-sample/sub-page", - PathIsDraft = false, LanguageName = ContentLanguageSamples.SampleContentLanguageEnGb.ContentLanguageName! + }, + new() + { + UrlPath = "es/simplified-sample/sub-page", + LanguageName = ContentLanguageSamples.SampleContentLanguageEs.ContentLanguageName! } ] }, diff --git a/examples/Kentico.Xperience.UMT.Examples/Samples/ContentLanguageSamples.cs b/examples/Kentico.Xperience.UMT.Examples/Samples/ContentLanguageSamples.cs index f58d7e7..d08c586 100644 --- a/examples/Kentico.Xperience.UMT.Examples/Samples/ContentLanguageSamples.cs +++ b/examples/Kentico.Xperience.UMT.Examples/Samples/ContentLanguageSamples.cs @@ -6,8 +6,9 @@ public static class ContentLanguageSamples { public static readonly Guid CONTENT_LANGUAGE_ENUS_SAMPLE_GUID = new Guid("F454E93B-5FE9-42A9-B1AF-B572234ED9C4"); public static readonly Guid CONTENT_LANGUAGE_ENGB_SAMPLE_GUID = new Guid("A6C0A558-8B33-47B6-87A8-491B437C9923"); + public static readonly Guid CONTENT_LANGUAGE_ES_SAMPLE_GUID = new Guid("4C80C6DD-A5C2-443D-873A-E9C328024B7C"); - [Sample("contentlanguage.sample.en-us", "This sample describes how to create content language for English (United States)", "ContentLanguage Sample")] + [Sample("contentlanguage.sample.en-us", "This sample describes how to create content language for English (United States)", "ContentLanguage Sample - English US")] public static ContentLanguageModel SampleContentLanguageEnUs => new() { ContentLanguageCultureFormat = "en-US", @@ -18,7 +19,7 @@ public static class ContentLanguageSamples ContentLanguageName = "en-US" }; - [Sample("contentlanguage.sample.en-gb", "This sample describes how to create content language for English (United Kingdom)", "ContentLanguage Sample")] + [Sample("contentlanguage.sample.en-gb", "This sample describes how to create content language for English (United Kingdom)", "ContentLanguage Sample - English UK")] public static ContentLanguageModel SampleContentLanguageEnGb => new() { ContentLanguageCultureFormat = "en-GB", @@ -28,4 +29,14 @@ public static class ContentLanguageSamples ContentLanguageIsDefault = false, ContentLanguageName = "en-GB" }; + + [Sample("contentlanguage.sample.es", "This sample describes how to create content language for Spanish", "ContentLanguage Sample - Spanish")] + public static ContentLanguageModel SampleContentLanguageEs => new() + { + ContentLanguageCultureFormat = "es", + ContentLanguageDisplayName = "Spanish", + ContentLanguageGUID = CONTENT_LANGUAGE_ES_SAMPLE_GUID, + ContentLanguageIsDefault = false, + ContentLanguageName = "es" + }; } diff --git a/src/Kentico.Xperience.UMT/InfoAdapter/ContentItemSimplifiedAdapter.cs b/src/Kentico.Xperience.UMT/InfoAdapter/ContentItemSimplifiedAdapter.cs index 1ac98d9..958fcfd 100644 --- a/src/Kentico.Xperience.UMT/InfoAdapter/ContentItemSimplifiedAdapter.cs +++ b/src/Kentico.Xperience.UMT/InfoAdapter/ContentItemSimplifiedAdapter.cs @@ -7,8 +7,10 @@ using CMS.Membership; using CMS.Websites; using CMS.Websites.Internal; + using Kentico.Xperience.UMT.Model; using Kentico.Xperience.UMT.ProviderProxy; + using Microsoft.Extensions.Logging; namespace Kentico.Xperience.UMT.InfoAdapter; @@ -51,12 +53,12 @@ public ContentItemInfo Adapt(IUmtModel input) var existingContentItem = ProviderProxy.GetBaseInfoByGuid(cim.ContentItemGUID.Value, cim) as ContentItemInfo; var createdWhen = dateTimeNowService.GetDateTimeNow(); - + var contentTypeProxy = providerProxyFactory.CreateProviderProxy(new ProviderProxyContext()); ArgumentException.ThrowIfNullOrWhiteSpace(cim.ContentTypeName); var dataClassInfo = contentTypeProxy.GetBaseInfoByCodeName(cim.ContentTypeName, null!) as DataClassInfo; ArgumentNullException.ThrowIfNull(dataClassInfo); - + var channelProxy = providerProxyFactory.CreateProviderProxy(new ProviderProxyContext()); ChannelInfo? channel = null; if (dataClassInfo.ClassContentTypeType == ClassContentTypeType.WEBSITE) @@ -76,22 +78,21 @@ public ContentItemInfo Adapt(IUmtModel input) ContentItemChannelGuid = channel?.ChannelGUID, ContentItemContentFolderGUID = cim.ContentItemContentFolderGUID }; - + var adapter = adapterFactory.CreateAdapter(contentItemModel, new ProviderProxyContext()); ArgumentNullException.ThrowIfNull(adapter); var contentItemInfo = (ContentItemInfo)adapter.Adapt(contentItemModel); contentItemInfo = (ContentItemInfo)adapter.ProviderProxy.Save(contentItemInfo, contentItemModel); - + var contentLanguageProxy = providerProxyFactory.CreateProviderProxy(new ProviderProxyContext()); var userInfoProxy = providerProxyFactory.CreateProviderProxy(new ProviderProxyContext()); - var languages = new List(); foreach (var languageData in cim.LanguageData) { var customData = languageData.ContentItemData?.ToDictionary() ?? []; - + ArgumentException.ThrowIfNullOrWhiteSpace(languageData.LanguageName); - languages.Add(languageData.LanguageName); + var contentLanguageInfo = contentLanguageProxy.GetBaseInfoByCodeName(languageData.LanguageName, null!) as ContentLanguageInfo; ArgumentNullException.ThrowIfNull(contentLanguageInfo); @@ -109,7 +110,7 @@ public ContentItemInfo Adapt(IUmtModel input) .WhereEquals(nameof(ContentItemCommonDataInfo.ContentItemCommonDataContentLanguageID), contentLanguageInfo.ContentLanguageID) .FirstOrDefault() ?.ContentItemCommonDataGUID; - + contentItemLanguageMetadataGuid = Provider.Instance.Get() .WhereEquals(nameof(ContentItemLanguageMetadataInfo.ContentItemLanguageMetadataContentItemID), contentItemInfo.ContentItemID) .WhereEquals(nameof(ContentItemLanguageMetadataInfo.ContentItemLanguageMetadataContentLanguageID), contentLanguageInfo.ContentLanguageID) @@ -169,7 +170,7 @@ public ContentItemInfo Adapt(IUmtModel input) // ContentItemLanguageMetadataHasImageAsset = null, ContentItemLanguageMetadataContentLanguageGuid = contentLanguageInfo.ContentLanguageGUID, ContentItemLanguageMetadataScheduledPublishWhen = languageData.ScheduledPublishWhen, - ContentItemLanguageMetadataScheduledUnpublishWhen = languageData.ScheduledUnpublishWhen + ContentItemLanguageMetadataScheduledUnpublishWhen = languageData.ScheduledUnpublishWhen }; adapter = adapterFactory.CreateAdapter(contentItemLanguageMetadataModel, new ProviderProxyContext()); @@ -182,19 +183,16 @@ public ContentItemInfo Adapt(IUmtModel input) { var dataProvider = Service.Resolve() .Get(dataClassInfo.ClassName); - + contentItemDataGuid = dataProvider.Get() .WhereEquals(nameof(ContentItemDataInfo.ContentItemDataCommonDataID), commonDataInfo.ContentItemCommonDataID) .FirstOrDefault() ?.ContentItemDataGUID; } - + var contentItemDataModel = new ContentItemDataModel { - CustomProperties = customData, - ContentItemDataGUID = contentItemDataGuid ?? Guid.NewGuid(), - ContentItemDataCommonDataGuid = commonDataInfo.ContentItemCommonDataGUID, - ContentItemContentTypeName = cim.ContentTypeName + CustomProperties = customData, ContentItemDataGUID = contentItemDataGuid ?? Guid.NewGuid(), ContentItemDataCommonDataGuid = commonDataInfo.ContentItemCommonDataGUID, ContentItemContentTypeName = cim.ContentTypeName }; adapter = adapterFactory.CreateAdapter(contentItemDataModel, new ProviderProxyContext()); ArgumentNullException.ThrowIfNull(adapter); @@ -209,9 +207,9 @@ public ContentItemInfo Adapt(IUmtModel input) var webSiteChannel = Provider.Instance.Get() .WhereEquals(nameof(WebsiteChannelInfo.WebsiteChannelChannelID), channel?.ChannelID) ?.FirstOrDefault(); - + ArgumentNullException.ThrowIfNull(webSiteChannel); - + var webPageItemGuid = pageData.PageGuid; if (existingContentItem != null && webPageItemGuid == null) { @@ -221,7 +219,7 @@ public ContentItemInfo Adapt(IUmtModel input) .FirstOrDefault() ?.WebPageItemGUID; } - + var webPageItemModel = new WebPageItemModel { WebPageItemGUID = webPageItemGuid ?? Guid.NewGuid(), @@ -232,74 +230,72 @@ public ContentItemInfo Adapt(IUmtModel input) WebPageItemContentItemGuid = contentItemModel.ContentItemGUID, WebPageItemOrder = pageData.ItemOrder }; - + adapter = adapterFactory.CreateAdapter(webPageItemModel, new ProviderProxyContext()); ArgumentNullException.ThrowIfNull(adapter); var webPageItemInfo = (WebPageItemInfo)adapter.Adapt(webPageItemModel); adapter.ProviderProxy.Save(webPageItemInfo, webPageItemModel); var urls = pageData.PageUrls ?? []; - - foreach (string language in languages) + + foreach (var urlsByLang in urls.GroupBy(url => url.LanguageName)) { - var contentLanguageInfo = contentLanguageProxy.GetBaseInfoByCodeName(language, null!) as ContentLanguageInfo; + ArgumentException.ThrowIfNullOrWhiteSpace(urlsByLang.Key); + + var contentLanguageInfo = contentLanguageProxy.GetBaseInfoByCodeName(urlsByLang.Key, null!) as ContentLanguageInfo; ArgumentNullException.ThrowIfNull(contentLanguageInfo); - var pu = urls.Find(u => u.LanguageName?.Equals(language, StringComparison.CurrentCultureIgnoreCase) ?? false); - if (pu == null) + var orphaned = Provider.Instance.Get() + .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebPageItemID), webPageItemInfo.WebPageItemID) + .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathContentLanguageID), contentLanguageInfo.ContentLanguageID) + .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebsiteChannelID), webSiteChannel.WebsiteChannelID); + + foreach (var pageUrlPathInfo in orphaned) + { + pageUrlPathInfo.Delete(); + } + + foreach (var pageUrlModel in urlsByLang) { - var orphaned = Provider.Instance.Get() - .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebPageItemID), webPageItemInfo.WebPageItemID) - .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathContentLanguageID), contentLanguageInfo.ContentLanguageID) - .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebsiteChannelID), webSiteChannel.WebsiteChannelID); + ArgumentException.ThrowIfNullOrWhiteSpace(pageUrlModel.LanguageName); - foreach (var pageUrlPathInfo in orphaned) + Guid? webPageUrlPathGuid = null; + if (existingContentItem != null) { - pageUrlPathInfo.Delete(); + // only single url is currently supported per language in this model + webPageUrlPathGuid = Provider.Instance.Get() + .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebPageItemID), webPageItemInfo.WebPageItemID) + .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathContentLanguageID), contentLanguageInfo.ContentLanguageID) + .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebsiteChannelID), webSiteChannel.WebsiteChannelID) + .FirstOrDefault() + ?.WebPageUrlPathGUID; } - continue; - } - - ArgumentException.ThrowIfNullOrWhiteSpace(pu.LanguageName); + var webPageUrlPathModel = new WebPageUrlPathModel + { + WebPageUrlPathGUID = webPageUrlPathGuid ?? Guid.NewGuid(), + WebPageUrlPath = pageUrlModel.UrlPath, + // WebPageUrlPathHash = null, + WebPageUrlPathWebPageItemGuid = webPageItemModel.WebPageItemGUID, + WebPageUrlPathWebsiteChannelGuid = webSiteChannel.WebsiteChannelGUID, + WebPageUrlPathContentLanguageGuid = contentLanguageInfo.ContentLanguageGUID, + WebPageUrlPathIsLatest = true, // when draft content item is supported, this needs to draft state take into account + WebPageUrlPathIsDraft = false // when draft content item is supported, this needs to draft state take into account + }; - Guid? webPageUrlPathGuid = null; - if (existingContentItem != null) - { - // this will miss if url path is changed, it is up to user cleaning old urls (or we supply parameter to configure if old urls should be cleared) - webPageUrlPathGuid = Provider.Instance.Get() - .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebPageItemID), webPageItemInfo.WebPageItemID) - .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathContentLanguageID), contentLanguageInfo.ContentLanguageID) - .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPathWebsiteChannelID), webSiteChannel.WebsiteChannelID) - .WhereEquals(nameof(WebPageUrlPathInfo.WebPageUrlPath), pu.UrlPath) - .FirstOrDefault() - ?.WebPageUrlPathGUID; + adapter = adapterFactory.CreateAdapter(webPageUrlPathModel, new ProviderProxyContext()); + ArgumentNullException.ThrowIfNull(adapter); + var webPageUrlPathInfo = (WebPageUrlPathInfo)adapter.Adapt(webPageUrlPathModel); + adapter.ProviderProxy.Save(webPageUrlPathInfo, webPageUrlPathModel); } - - var webPageUrlPathModel = new WebPageUrlPathModel - { - WebPageUrlPathGUID = webPageUrlPathGuid ?? Guid.NewGuid(), - WebPageUrlPath = pu.UrlPath, - // WebPageUrlPathHash = null, - WebPageUrlPathWebPageItemGuid = webPageItemModel.WebPageItemGUID, - WebPageUrlPathWebsiteChannelGuid = webSiteChannel.WebsiteChannelGUID, - WebPageUrlPathContentLanguageGuid = contentLanguageInfo.ContentLanguageGUID, - WebPageUrlPathIsLatest = true, - WebPageUrlPathIsDraft = pu.PathIsDraft ?? true - }; - - adapter = adapterFactory.CreateAdapter(webPageUrlPathModel, new ProviderProxyContext()); - ArgumentNullException.ThrowIfNull(adapter); - var webPageUrlPathInfo = (WebPageUrlPathInfo)adapter.Adapt(webPageUrlPathModel); - adapter.ProviderProxy.Save(webPageUrlPathInfo, webPageUrlPathModel); } } else { - ArgumentNullException.ThrowIfNull(cim.PageData); + ArgumentNullException.ThrowIfNull(cim.PageData); } } - + scope.Commit(); return contentItemInfo; @@ -309,7 +305,7 @@ private static IEnumerable UnpackReusableFieldSchemas(IEnumerable { using var siEnum = schemaInfos.GetEnumerator(); - if (siEnum.MoveNext() && FormHelper.GetFormInfo(ContentItemCommonDataInfo.TYPEINFO.ObjectClassName, true) is {} cfi) + if (siEnum.MoveNext() && FormHelper.GetFormInfo(ContentItemCommonDataInfo.TYPEINFO.ObjectClassName, true) is { } cfi) { do { @@ -318,7 +314,7 @@ private static IEnumerable UnpackReusableFieldSchemas(IEnumerable .GetFields(true, true, true) .Where(f => string.Equals(f.Properties[ReusableFieldSchemaConstants.SCHEMA_IDENTIFIER_KEY] as string, fsi.Guid.ToString(), StringComparison.InvariantCultureIgnoreCase)); - + foreach (var formFieldInfo in formFieldInfos) { yield return formFieldInfo; diff --git a/src/Kentico.Xperience.UMT/Model/ContentItemSimplifiedModel.cs b/src/Kentico.Xperience.UMT/Model/ContentItemSimplifiedModel.cs index 76b17d2..8413465 100644 --- a/src/Kentico.Xperience.UMT/Model/ContentItemSimplifiedModel.cs +++ b/src/Kentico.Xperience.UMT/Model/ContentItemSimplifiedModel.cs @@ -83,6 +83,9 @@ public class ContentItemLanguageData public class PageDataModel { + /// + /// PageUrlModel item is required for each content language that exist in XbyK instance without regards to created LanguageData (urls are pre-created for non-existing language versions) + /// public List? PageUrls { get; set; } /// /// Required only if page needs to be referenced as a parent by any child page @@ -93,10 +96,15 @@ public class PageDataModel public int? ItemOrder { get; set; } } - +/// +/// Defines url for web page item +/// public class PageUrlModel { public string? UrlPath { get; set; } + /// + /// currently unused, until simplified model supports Draft content items (and not only Published or InitialDraft) + /// public bool? PathIsDraft { get; set; } public string? LanguageName { get; set; } } diff --git a/src/Kentico.Xperience.UMT/Model/ContentLanguageModel.cs b/src/Kentico.Xperience.UMT/Model/ContentLanguageModel.cs index 1a64564..fe1c16d 100644 --- a/src/Kentico.Xperience.UMT/Model/ContentLanguageModel.cs +++ b/src/Kentico.Xperience.UMT/Model/ContentLanguageModel.cs @@ -9,6 +9,7 @@ namespace Kentico.Xperience.UMT.Model; /// /// contentlanguage.sample.en-us /// contentlanguage.sample.en-gb +/// contentlanguage.sample.en-us [UmtModel(DISCRIMINATOR)] public class ContentLanguageModel : UmtModel {