diff --git a/.gitignore b/.gitignore index b0b976a3..e77983cf 100644 --- a/.gitignore +++ b/.gitignore @@ -364,3 +364,4 @@ MigrationBackup/ FodyWeavers.xsd src/TrainingGuides.Web/.config/dotnet-tools.json src/TrainingGuides.Web/License/ +.vscode/settings.json diff --git a/src/TrainingGuides.Entities/PageContentTypes/ArticlePage/ArticlePage.generated.cs b/src/TrainingGuides.Entities/PageContentTypes/ArticlePage/ArticlePage.generated.cs index 5e2ae039..5214bc30 100644 --- a/src/TrainingGuides.Entities/PageContentTypes/ArticlePage/ArticlePage.generated.cs +++ b/src/TrainingGuides.Entities/PageContentTypes/ArticlePage/ArticlePage.generated.cs @@ -41,6 +41,12 @@ public partial class ArticlePage : IWebPageFieldsSource public IEnumerable
ArticlePageContent { get; set; } + /// + /// ArticlePageArticleContent. + /// + public IEnumerable ArticlePageArticleContent { get; set; } + + /// /// ArticlePagePublishDate. /// diff --git a/src/TrainingGuides.Entities/ReusableContentTypes/Interview/Interview.generated.cs b/src/TrainingGuides.Entities/ReusableContentTypes/Interview/Interview.generated.cs new file mode 100644 index 00000000..76a99caa --- /dev/null +++ b/src/TrainingGuides.Entities/ReusableContentTypes/Interview/Interview.generated.cs @@ -0,0 +1,78 @@ +//-------------------------------------------------------------------------------------------------- +// +// +// This code was generated by code generator tool. +// +// To customize the code use your own partial class. For more info about how to use and customize +// the generated code see the documentation at https://docs.xperience.io/. +// +// +//-------------------------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using CMS.ContentEngine; + +namespace TrainingGuides +{ + /// + /// Represents a content item of type . + /// + [RegisterContentTypeMapping(CONTENT_TYPE_NAME)] + public partial class Interview : IContentItemFieldsSource, IArticleSchema + { + /// + /// Code name of the content type. + /// + public const string CONTENT_TYPE_NAME = "TrainingGuides.Interview"; + + + /// + /// Represents system properties for a content item. + /// + [SystemField] + public ContentItemFields SystemFields { get; set; } + + + /// + /// IntervieweeName. + /// + public string IntervieweeName { get; set; } + + + /// + /// ArticleSchemaTitle. + /// + public string ArticleSchemaTitle { get; set; } + + + /// + /// ArticleSchemaTeaser. + /// + public IEnumerable ArticleSchemaTeaser { get; set; } + + + /// + /// ArticleSchemaSummary. + /// + public string ArticleSchemaSummary { get; set; } + + + /// + /// ArticleSchemaText. + /// + public string ArticleSchemaText { get; set; } + + + /// + /// ArticleSchemaRelatedArticles. + /// + public IEnumerable
ArticleSchemaRelatedArticles { get; set; } + + + /// + /// ArticleSchemaTaxonomy. + /// + public IEnumerable ArticleSchemaTaxonomy { get; set; } + } +} \ No newline at end of file diff --git a/src/TrainingGuides.Entities/ReusableContentTypes/NewsArticle/NewsArticle.generated.cs b/src/TrainingGuides.Entities/ReusableContentTypes/NewsArticle/NewsArticle.generated.cs new file mode 100644 index 00000000..ae283155 --- /dev/null +++ b/src/TrainingGuides.Entities/ReusableContentTypes/NewsArticle/NewsArticle.generated.cs @@ -0,0 +1,72 @@ +//-------------------------------------------------------------------------------------------------- +// +// +// This code was generated by code generator tool. +// +// To customize the code use your own partial class. For more info about how to use and customize +// the generated code see the documentation at https://docs.xperience.io/. +// +// +//-------------------------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using CMS.ContentEngine; + +namespace TrainingGuides +{ + /// + /// Represents a content item of type . + /// + [RegisterContentTypeMapping(CONTENT_TYPE_NAME)] + public partial class NewsArticle : IContentItemFieldsSource, IArticleSchema + { + /// + /// Code name of the content type. + /// + public const string CONTENT_TYPE_NAME = "TrainingGuides.NewsArticle"; + + + /// + /// Represents system properties for a content item. + /// + [SystemField] + public ContentItemFields SystemFields { get; set; } + + + /// + /// ArticleSchemaTitle. + /// + public string ArticleSchemaTitle { get; set; } + + + /// + /// ArticleSchemaTeaser. + /// + public IEnumerable ArticleSchemaTeaser { get; set; } + + + /// + /// ArticleSchemaSummary. + /// + public string ArticleSchemaSummary { get; set; } + + + /// + /// ArticleSchemaText. + /// + public string ArticleSchemaText { get; set; } + + + /// + /// ArticleSchemaRelatedArticles. + /// + public IEnumerable
ArticleSchemaRelatedArticles { get; set; } + + + /// + /// ArticleSchemaTaxonomy. + /// + public IEnumerable ArticleSchemaTaxonomy { get; set; } + } +} \ No newline at end of file diff --git a/src/TrainingGuides.Entities/ReusableFieldSchemas/ArticleSchema/IArticleSchema.generated.cs b/src/TrainingGuides.Entities/ReusableFieldSchemas/ArticleSchema/IArticleSchema.generated.cs new file mode 100644 index 00000000..9a3b7676 --- /dev/null +++ b/src/TrainingGuides.Entities/ReusableFieldSchemas/ArticleSchema/IArticleSchema.generated.cs @@ -0,0 +1,64 @@ +//-------------------------------------------------------------------------------------------------- +// +// +// This code was generated by code generator tool. +// +// To customize the code use your own partial class. For more info about how to use and customize +// the generated code see the documentation at https://docs.xperience.io/. +// +// +//-------------------------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using CMS.ContentEngine; + +namespace TrainingGuides +{ + /// + /// Defines a contract for content types with the reusable schema assigned. + /// + public interface IArticleSchema + { + /// + /// Code name of the reusable field schema. + /// + public const string REUSABLE_FIELD_SCHEMA_NAME = "ArticleSchema"; + + + /// + /// ArticleSchemaTitle. + /// + public string ArticleSchemaTitle { get; set; } + + + /// + /// ArticleSchemaTeaser. + /// + public IEnumerable ArticleSchemaTeaser { get; set; } + + + /// + /// ArticleSchemaSummary. + /// + public string ArticleSchemaSummary { get; set; } + + + /// + /// ArticleSchemaText. + /// + public string ArticleSchemaText { get; set; } + + + /// + /// ArticleSchemaRelatedArticles. + /// + public IEnumerable
ArticleSchemaRelatedArticles { get; set; } + + + /// + /// ArticleSchemaTaxonomy. + /// + public IEnumerable ArticleSchemaTaxonomy { get; set; } + } +} \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.class/cms.contentitemcommondata.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.class/cms.contentitemcommondata.xml index 78356ed1..811bcb66 100644 --- a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.class/cms.contentitemcommondata.xml +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.class/cms.contentitemcommondata.xml @@ -17,6 +17,100 @@ + + + Article schema + + + + + False + Title + False + c3b4896f-ba7c-4b75-9cd4-47afa7489ff1 + + + Kentico.Administration.TextInput + + + + + + + + False + Add teaser image + False + c3b4896f-ba7c-4b75-9cd4-47afa7489ff1 + + + + + + Kentico.Administration.ContentItemSelector + contentTypes + + + + + + + + False + Summary + False + c3b4896f-ba7c-4b75-9cd4-47afa7489ff1 + + + Kentico.Administration.TextArea + False + 5 + 3 + + + + + False + Text + False + c3b4896f-ba7c-4b75-9cd4-47afa7489ff1 + + + Kentico.Administration.RichTextEditor + + + + + + + + False + Select related articles + False + c3b4896f-ba7c-4b75-9cd4-47afa7489ff1 + + + + + + Kentico.Administration.ContentItemSelector + contentTypes + + + + + False + Tags + False + c3b4896f-ba7c-4b75-9cd4-47afa7489ff1 + + + Kentico.Administration.TagSelector + + + + + a6581fb3-892a-45b4-981a-012ce4b50b43 diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentfolder/root.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentfolder/root.xml index 129465bb..7d1f5ce4 100644 --- a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentfolder/root.xml +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentfolder/root.xml @@ -3,6 +3,11 @@ 2023-12-31 23:00:00Z Root 9d6509a4-a231-4837-8f1c-81a90705f988 + + administrator + 6415b8ce-8072-4bcd-8e48-9d7178b826b7 + cms.user + Root / \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitem/aboutfrogs-fgk2dl5o.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitem/aboutfrogs-fgk2dl5o.xml new file mode 100644 index 00000000..06e2858a --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitem/aboutfrogs-fgk2dl5o.xml @@ -0,0 +1,17 @@ + + + + Root + 9d6509a4-a231-4837-8f1c-81a90705f988 + cms.contentfolder + + + TrainingGuides.NewsArticle + 8afff782-a445-4e6b-a237-821fca0db4fb + cms.contenttype + + ea6d110c-d9be-4a69-a193-4758bb0c9efa + True + False + AboutFrogs-fgk2dl5o + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitem/frog-1fdh3ccm.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitem/frog-1fdh3ccm.xml new file mode 100644 index 00000000..48a9f750 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitem/frog-1fdh3ccm.xml @@ -0,0 +1,17 @@ + + + + Root + 9d6509a4-a231-4837-8f1c-81a90705f988 + cms.contentfolder + + + TrainingGuides.Asset + 9ecde825-735e-4967-a995-cc97b55adb0f + cms.contenttype + + e1f1110e-93f1-4fec-94c8-571f6fbd2e26 + True + False + Frog-1fdh3ccm + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemcommondata/aboutfrogs-fgk2dl5o@6f58670996/78a4697f-3565-4b1f-81ac-22dc97b0e571_en@ac50fc5148.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemcommondata/aboutfrogs-fgk2dl5o@6f58670996/78a4697f-3565-4b1f-81ac-22dc97b0e571_en@ac50fc5148.xml new file mode 100644 index 00000000..6c68e87f --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemcommondata/aboutfrogs-fgk2dl5o@6f58670996/78a4697f-3565-4b1f-81ac-22dc97b0e571_en@ac50fc5148.xml @@ -0,0 +1,44 @@ + + + Learn some facts about frogs + + + + + + + + Frogs are a diverse and largely carnivorous group of short-bodied, tailless amphibians composing the order Anura. They are known for their smooth, moist skin, bulging eyes, and powerful hind legs adapted for leaping. Frogs inhabit a wide range of ecosystems, from the tropics to subarctic regions, but the greatest concentration of species diversity is found in tropical rainforests. They play key roles in the ecosystem as both predators and prey, consuming insects, small mammals, and even other frogs, while simultaneously serving as a crucial food source for a variety of larger animals. Frogs are also notable for their vocalizations, which are often used to attract mates during the breeding season.

]]> +
+ About frogs + + AboutFrogs-fgk2dl5o + ea6d110c-d9be-4a69-a193-4758bb0c9efa + cms.contentitem + + + en + e81b5172-f240-4041-88b1-653089984e29 + cms.contentlanguage + + 2024-08-21 18:35:26Z + 78a4697f-3565-4b1f-81ac-22dc97b0e571 + True + 2024-08-21 18:35:26Z + 2 + + + a66eef38-b296-4172-9f69-dda2e1840fec + 56cc063f-3589-4203-bb2b-7ee174c59252 + + 78a4697f-3565-4b1f-81ac-22dc97b0e571 + cms.contentitemcommondata + + + Frog-1fdh3ccm + e1f1110e-93f1-4fec-94c8-571f6fbd2e26 + cms.contentitem + + + +
\ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemcommondata/frog-1fdh3ccm@bb43ebe9f7/f214a4d3-e2ff-4a83-9514-9158b972488c_en@09bfc9ef45.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemcommondata/frog-1fdh3ccm@bb43ebe9f7/f214a4d3-e2ff-4a83-9514-9158b972488c_en@09bfc9ef45.xml new file mode 100644 index 00000000..d813d66c --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemcommondata/frog-1fdh3ccm@bb43ebe9f7/f214a4d3-e2ff-4a83-9514-9158b972488c_en@09bfc9ef45.xml @@ -0,0 +1,18 @@ + + + + Frog-1fdh3ccm + e1f1110e-93f1-4fec-94c8-571f6fbd2e26 + cms.contentitem + + + en + e81b5172-f240-4041-88b1-653089984e29 + cms.contentlanguage + + 2024-08-21 18:35:16Z + f214a4d3-e2ff-4a83-9514-9158b972488c + True + 2024-08-21 18:35:16Z + 2 + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemlanguagemetadata/aboutfrogs-fgk2dl5o@6f58670996/bafb97bf-5009-421e-84c2-3b1ee5f67e97_en@ffa3ce5ff7.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemlanguagemetadata/aboutfrogs-fgk2dl5o@6f58670996/bafb97bf-5009-421e-84c2-3b1ee5f67e97_en@ffa3ce5ff7.xml new file mode 100644 index 00000000..01d78995 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemlanguagemetadata/aboutfrogs-fgk2dl5o@6f58670996/bafb97bf-5009-421e-84c2-3b1ee5f67e97_en@ffa3ce5ff7.xml @@ -0,0 +1,38 @@ + + + + AboutFrogs-fgk2dl5o + ea6d110c-d9be-4a69-a193-4758bb0c9efa + cms.contentitem + + + en + e81b5172-f240-4041-88b1-653089984e29 + cms.contentlanguage + + + administrator + 6415b8ce-8072-4bcd-8e48-9d7178b826b7 + cms.user + + 2024-08-21 18:35:23Z + About frogs + bafb97bf-5009-421e-84c2-3b1ee5f67e97 + False + 2 + + administrator + 6415b8ce-8072-4bcd-8e48-9d7178b826b7 + cms.user + + + + + bafb97bf-5009-421e-84c2-3b1ee5f67e97 + cms.contentitemlanguagemetadata + + 7a10c083-cc91-4cf0-88af-66f580c90aa3 + 04ab8b7e-f25b-4d3e-9e78-bf319a5f9140 + + + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemlanguagemetadata/frog-1fdh3ccm@bb43ebe9f7/4d587127-54fe-46b7-8c1b-90821e3bba50_en@404a8ed1c4.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemlanguagemetadata/frog-1fdh3ccm@bb43ebe9f7/4d587127-54fe-46b7-8c1b-90821e3bba50_en@404a8ed1c4.xml new file mode 100644 index 00000000..9982e8ff --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contentitemlanguagemetadata/frog-1fdh3ccm@bb43ebe9f7/4d587127-54fe-46b7-8c1b-90821e3bba50_en@404a8ed1c4.xml @@ -0,0 +1,28 @@ + + + + Frog-1fdh3ccm + e1f1110e-93f1-4fec-94c8-571f6fbd2e26 + cms.contentitem + + + en + e81b5172-f240-4041-88b1-653089984e29 + cms.contentlanguage + + + administrator + 6415b8ce-8072-4bcd-8e48-9d7178b826b7 + cms.user + + 2024-08-21 18:35:16Z + Frog + 4d587127-54fe-46b7-8c1b-90821e3bba50 + True + 2 + + administrator + 6415b8ce-8072-4bcd-8e48-9d7178b826b7 + cms.user + + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.article.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.article.xml index 3776edeb..ff2514fa 100644 --- a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.article.xml +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.article.xml @@ -1,7 +1,7 @@  Reusable - Article + Article (DEPRECATED, DO NOT USE)
diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.articlepage.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.articlepage.xml index 3105bc71..046cc1f6 100644 --- a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.articlepage.xml +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.articlepage.xml @@ -10,7 +10,7 @@ False - Article page content + Article page content (DEPRECATED, DO NOT USE) False @@ -18,6 +18,21 @@ Kentico.Administration.ContentItemSelector + contentTypes + + + + + False + Content + False + + + + + + Kentico.Administration.ContentItemSelector + reusableFieldSchemas diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.interview.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.interview.xml new file mode 100644 index 00000000..ffefddcf --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.interview.xml @@ -0,0 +1,33 @@ + + + Reusable + Article (interview) + + + + + + + + + + + False + Name of the interview respondant + False + + + Kentico.Administration.TextInput + + + + + da713409-64bd-4bdd-bf21-3ec8294ab1b6 + False + xp-bubble + TrainingGuides.Interview + TrainingGuidesInterview + TrainingGuides_Interview + Content + False + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.newsarticle.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.newsarticle.xml new file mode 100644 index 00000000..4bf953c9 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.contenttype/trainingguides.newsarticle.xml @@ -0,0 +1,23 @@ + + + Reusable + Article (news) + +
+ + + + + + + +
+ 8afff782-a445-4e6b-a237-821fca0db4fb + False + xp-newspaper + TrainingGuides.NewsArticle + TrainingGuidesNewsArticle + TrainingGuides_NewsArticle + Content + False +
\ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.tag/animals.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.tag/animals.xml new file mode 100644 index 00000000..11f7a516 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.tag/animals.xml @@ -0,0 +1,15 @@ + + + 04ab8b7e-f25b-4d3e-9e78-bf319a5f9140 + + + + Animals + 1 + + ArticleCategory + 06b56c2a-463b-422a-b8d8-d9bbc352d958 + cms.taxonomy + + Animals + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.tag/plants.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.tag/plants.xml new file mode 100644 index 00000000..73824c2b --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.tag/plants.xml @@ -0,0 +1,15 @@ + + + 34ebdcf5-20d6-4ecc-90e6-fc150dd5b36f + + + + Plants + 2 + + ArticleCategory + 06b56c2a-463b-422a-b8d8-d9bbc352d958 + cms.taxonomy + + Plants + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.taxonomy/articlecategory.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.taxonomy/articlecategory.xml new file mode 100644 index 00000000..fcaa7f63 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/cms.taxonomy/articlecategory.xml @@ -0,0 +1,6 @@ + + + 06b56c2a-463b-422a-b8d8-d9bbc352d958 + ArticleCategory + Article Category + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.asset/frog-1fdh3ccm_f214..14-9158b972488c_en@9f9e15ee12/b93839da-325a-44a6-b984-57d4f5c0fbeb#p..h@a524.jpg b/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.asset/frog-1fdh3ccm_f214..14-9158b972488c_en@9f9e15ee12/b93839da-325a-44a6-b984-57d4f5c0fbeb#p..h@a524.jpg new file mode 100644 index 00000000..21adb2b3 Binary files /dev/null and b/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.asset/frog-1fdh3ccm_f214..14-9158b972488c_en@9f9e15ee12/b93839da-325a-44a6-b984-57d4f5c0fbeb#p..h@a524.jpg differ diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.asset/frog-1fdh3ccm_f214..14-9158b972488c_en@9f9e15ee12/b93839da-325a-44a6-b984-57d4f5c0fbeb.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.asset/frog-1fdh3ccm_f214..14-9158b972488c_en@9f9e15ee12/b93839da-325a-44a6-b984-57d4f5c0fbeb.xml new file mode 100644 index 00000000..fe6ea748 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.asset/frog-1fdh3ccm_f214..14-9158b972488c_en@9f9e15ee12/b93839da-325a-44a6-b984-57d4f5c0fbeb.xml @@ -0,0 +1,19 @@ + + + Frog in water + Frog + + + + False + + f214a4d3-e2ff-4a83-9514-9158b972488c + cms.contentitemcommondata + + Frog-1fdh3ccm + e1f1110e-93f1-4fec-94c8-571f6fbd2e26 + cms.contentitem + + + b93839da-325a-44a6-b984-57d4f5c0fbeb + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.newsarticle/aboutfrogs-fgk2dl5..ac-22dc97b0e571_en@ec83e40e4b/b18169c8-4e30-4058-bfb2-55eaf8fc81cc.xml b/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.newsarticle/aboutfrogs-fgk2dl5..ac-22dc97b0e571_en@ec83e40e4b/b18169c8-4e30-4058-bfb2-55eaf8fc81cc.xml new file mode 100644 index 00000000..3c4b66b4 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/@global/contentitemdata.trainingguides.newsarticle/aboutfrogs-fgk2dl5..ac-22dc97b0e571_en@ec83e40e4b/b18169c8-4e30-4058-bfb2-55eaf8fc81cc.xml @@ -0,0 +1,13 @@ + + + + 78a4697f-3565-4b1f-81ac-22dc97b0e571 + cms.contentitemcommondata + + AboutFrogs-fgk2dl5o + ea6d110c-d9be-4a69-a193-4758bb0c9efa + cms.contentitem + + + b18169c8-4e30-4058-bfb2-55eaf8fc81cc + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitem/aboutfrogs-l30ila6d.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitem/aboutfrogs-l30ila6d.xml new file mode 100644 index 00000000..01311780 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitem/aboutfrogs-l30ila6d.xml @@ -0,0 +1,17 @@ + + + + TrainingGuidesPages + 5ba9c1e8-b61e-4570-b666-87a9b92bbe3b + cms.channel + + + TrainingGuides.ArticlePage + c5201839-8fe2-4d8d-a19a-f080592dc7d3 + cms.contenttype + + df4f4ee0-00c3-4d1f-a8aa-02c8af7c5ad3 + False + False + AboutFrogs-l30ila6d + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitemcommondata/aboutfrogs-l30ila6d@36773011d4/8feda8c9-4e7c-4107-a45d-44b8dda57913_en@de6db6bc09.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitemcommondata/aboutfrogs-l30ila6d@36773011d4/8feda8c9-4e7c-4107-a45d-44b8dda57913_en@de6db6bc09.xml new file mode 100644 index 00000000..9734cf49 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitemcommondata/aboutfrogs-l30ila6d@36773011d4/8feda8c9-4e7c-4107-a45d-44b8dda57913_en@de6db6bc09.xml @@ -0,0 +1,36 @@ + + + + AboutFrogs-l30ila6d + df4f4ee0-00c3-4d1f-a8aa-02c8af7c5ad3 + cms.contentitem + + + en + e81b5172-f240-4041-88b1-653089984e29 + cms.contentlanguage + + 2024-08-21 18:52:38Z + 8feda8c9-4e7c-4107-a45d-44b8dda57913 + True + 2024-08-21 18:52:38Z + + + + 2 + + + b660d800-8f44-4311-af7d-f5073bda6ab3 + 6df0d7eb-d4a4-488e-9915-116ca35b3670 + + 8feda8c9-4e7c-4107-a45d-44b8dda57913 + cms.contentitemcommondata + + + AboutFrogs-fgk2dl5o + ea6d110c-d9be-4a69-a193-4758bb0c9efa + cms.contentitem + + + + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitemlanguagemetadata/aboutfrogs-l30ila6d@36773011d4/c5262732-e795-498a-9cb5-f07ace5a2a30_en@f52a49d856.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitemlanguagemetadata/aboutfrogs-l30ila6d@36773011d4/c5262732-e795-498a-9cb5-f07ace5a2a30_en@f52a49d856.xml new file mode 100644 index 00000000..7d5c8feb --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.contentitemlanguagemetadata/aboutfrogs-l30ila6d@36773011d4/c5262732-e795-498a-9cb5-f07ace5a2a30_en@f52a49d856.xml @@ -0,0 +1,28 @@ + + + + AboutFrogs-l30ila6d + df4f4ee0-00c3-4d1f-a8aa-02c8af7c5ad3 + cms.contentitem + + + en + e81b5172-f240-4041-88b1-653089984e29 + cms.contentlanguage + + + administrator + 6415b8ce-8072-4bcd-8e48-9d7178b826b7 + cms.user + + 2024-08-21 18:52:36Z + About frogs + c5262732-e795-498a-9cb5-f07ace5a2a30 + False + 2 + + administrator + 6415b8ce-8072-4bcd-8e48-9d7178b826b7 + cms.user + + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_birds-ybwhmsw4@83daabbda2.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_birds-ybwhmsw4@83daabbda2.xml index 13c50506..4ac079c2 100644 --- a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_birds-ybwhmsw4@83daabbda2.xml +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_birds-ybwhmsw4@83daabbda2.xml @@ -7,7 +7,7 @@ 56cd8e4a-c820-41d0-bd2c-fdb6bb6f475d AboutBirds-glix32jw - 2 + 3 News-bgt05j82 77c7aa1f-e0e3-4b74-a66f-8c0c87523c15 diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_cats@a97413897c.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_cats@a97413897c.xml index 36c67e31..08aa0dfd 100644 --- a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_cats@a97413897c.xml +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_cats@a97413897c.xml @@ -7,7 +7,7 @@ e637f5c7-7b4d-4359-a638-0956eedff300 AboutCats-2unc5586 - 4 + 5 News-bgt05j82 77c7aa1f-e0e3-4b74-a66f-8c0c87523c15 diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_dogs@4479709f2d.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_dogs@4479709f2d.xml index 89109a3c..b8f13594 100644 --- a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_dogs@4479709f2d.xml +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_dogs@4479709f2d.xml @@ -7,7 +7,7 @@ 443668df-c26c-4b4a-b8b9-9168f2a28073 AboutDogs-c4f5xvnf - 3 + 4 News-bgt05j82 77c7aa1f-e0e3-4b74-a66f-8c0c87523c15 diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_frogs@0768518750.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_frogs@0768518750.xml new file mode 100644 index 00000000..8a130609 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_frogs@0768518750.xml @@ -0,0 +1,26 @@ + + + + AboutFrogs-l30ila6d + df4f4ee0-00c3-4d1f-a8aa-02c8af7c5ad3 + cms.contentitem + + c48419d1-41d5-4fb5-91a3-32968bd8aeb3 + AboutFrogs-l30ila6d + 1 + + News-bgt05j82 + 77c7aa1f-e0e3-4b74-a66f-8c0c87523c15 + cms.webpageitem + + /News/About_frogs + + fdba40fe-1ece-4821-9d57-eaa1d89e13b1 + cms.websitechannel + + TrainingGuidesPages + 5ba9c1e8-b61e-4570-b666-87a9b92bbe3b + cms.channel + + + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_reptiles@e174b68708.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_reptiles@e174b68708.xml index 3b443518..160854a5 100644 --- a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_reptiles@e174b68708.xml +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageitem/news@b33b666735/news_about_reptiles@e174b68708.xml @@ -7,7 +7,7 @@ fc87659b-c4d3-456e-aef7-7202aa247426 AboutReptiles-gjkhpmft - 1 + 2 News-bgt05j82 77c7aa1f-e0e3-4b74-a66f-8c0c87523c15 diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageurlpath/news_about_frogs@6414ee4045/es_newses_about-frogs_es@3a73b1cf64.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageurlpath/news_about_frogs@6414ee4045/es_newses_about-frogs_es@3a73b1cf64.xml new file mode 100644 index 00000000..6b997390 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageurlpath/news_about_frogs@6414ee4045/es_newses_about-frogs_es@3a73b1cf64.xml @@ -0,0 +1,29 @@ + + + es/NewsES/About-frogs + + es + b2e99971-c2dd-4a47-bb64-0d9a0d28d226 + cms.contentlanguage + + 6852af8a-8e86-438e-9ae7-9b53a2aed9b6 + + + + False + True + + AboutFrogs-l30ila6d + c48419d1-41d5-4fb5-91a3-32968bd8aeb3 + cms.webpageitem + + + fdba40fe-1ece-4821-9d57-eaa1d89e13b1 + cms.websitechannel + + TrainingGuidesPages + 5ba9c1e8-b61e-4570-b666-87a9b92bbe3b + cms.channel + + + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageurlpath/news_about_frogs@6414ee4045/news_about-frogs_en@bfc854c2d1.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageurlpath/news_about_frogs@6414ee4045/news_about-frogs_en@bfc854c2d1.xml new file mode 100644 index 00000000..793d2705 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/cms.webpageurlpath/news_about_frogs@6414ee4045/news_about-frogs_en@bfc854c2d1.xml @@ -0,0 +1,29 @@ + + + News/About-frogs + + en + e81b5172-f240-4041-88b1-653089984e29 + cms.contentlanguage + + a0dc569a-5e66-4e37-a127-280778092b66 + + + + False + True + + AboutFrogs-l30ila6d + c48419d1-41d5-4fb5-91a3-32968bd8aeb3 + cms.webpageitem + + + fdba40fe-1ece-4821-9d57-eaa1d89e13b1 + cms.websitechannel + + TrainingGuidesPages + 5ba9c1e8-b61e-4570-b666-87a9b92bbe3b + cms.channel + + + \ No newline at end of file diff --git a/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/contentitemdata.trainingguides.articlepage/aboutfrogs-l30ila6..5d-44b8dda57913_en@76a7183452/17d1d6f3-e0aa-4f3e-bb14-b0c4d2d59c20.xml b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/contentitemdata.trainingguides.articlepage/aboutfrogs-l30ila6..5d-44b8dda57913_en@76a7183452/17d1d6f3-e0aa-4f3e-bb14-b0c4d2d59c20.xml new file mode 100644 index 00000000..e86a2da1 --- /dev/null +++ b/src/TrainingGuides.Web/App_Data/CIRepository/TrainingGuidesPages/contentitemdata.trainingguides.articlepage/aboutfrogs-l30ila6..5d-44b8dda57913_en@76a7183452/17d1d6f3-e0aa-4f3e-bb14-b0c4d2d59c20.xml @@ -0,0 +1,17 @@ + + + + + + 2024-08-21 18:52:00Z + + 8feda8c9-4e7c-4107-a45d-44b8dda57913 + cms.contentitemcommondata + + AboutFrogs-l30ila6d + df4f4ee0-00c3-4d1f-a8aa-02c8af7c5ad3 + cms.contentitem + + + 17d1d6f3-e0aa-4f3e-bb14-b0c4d2d59c20 + \ No newline at end of file diff --git a/src/TrainingGuides.Web/Features/Articles/Services/ArticlePageService.cs b/src/TrainingGuides.Web/Features/Articles/Services/ArticlePageService.cs index 047ef0c0..efc40f8f 100644 --- a/src/TrainingGuides.Web/Features/Articles/Services/ArticlePageService.cs +++ b/src/TrainingGuides.Web/Features/Articles/Services/ArticlePageService.cs @@ -23,11 +23,28 @@ public async Task GetArticlePageViewModel(ArticlePage? art return new ArticlePageViewModel(); } + string articleUrl = (await webPageUrlRetriever.Retrieve(articlePage)).RelativePath; + + var articleSchema = articlePage.ArticlePageArticleContent.FirstOrDefault(); + + if (articleSchema != null) + { + var articleSchemaTeaserImage = articleSchema?.ArticleSchemaTeaser.FirstOrDefault(); + + return new ArticlePageViewModel + { + Title = articleSchema?.ArticleSchemaTitle ?? string.Empty, + Summary = new HtmlString(articleSchema?.ArticleSchemaSummary), + Text = new HtmlString(articleSchema?.ArticleSchemaText), + CreatedOn = articlePage.ArticlePagePublishDate, + TeaserImage = AssetViewModel.GetViewModel(articleSchemaTeaserImage!), + Url = articleUrl + }; + } + var article = articlePage.ArticlePageContent.FirstOrDefault(); var articleTeaserImage = article?.ArticleTeaser.FirstOrDefault(); - string articleUrl = (await webPageUrlRetriever.Retrieve(articlePage)).RelativePath; - return new ArticlePageViewModel { Title = article?.ArticleTitle ?? string.Empty, diff --git a/src/TrainingGuides.Web/assets/ContentItems/e1/e1f1110e-93f1-4fec-94c8-571f6fbd2e26/8666969b-6438-4825-a1c8-11fc2e2184d0/cdbf9d1a-740e-417d-a0f5-f73b74599177.jpg b/src/TrainingGuides.Web/assets/ContentItems/e1/e1f1110e-93f1-4fec-94c8-571f6fbd2e26/8666969b-6438-4825-a1c8-11fc2e2184d0/cdbf9d1a-740e-417d-a0f5-f73b74599177.jpg new file mode 100644 index 00000000..21adb2b3 Binary files /dev/null and b/src/TrainingGuides.Web/assets/ContentItems/e1/e1f1110e-93f1-4fec-94c8-571f6fbd2e26/8666969b-6438-4825-a1c8-11fc2e2184d0/cdbf9d1a-740e-417d-a0f5-f73b74599177.jpg differ