Skip to content

Commit

Permalink
Gh 69 add rfs and taxonomies/sb (#71)
Browse files Browse the repository at this point in the history
* GH-69 :: transfer types and changes from finished branch spike

* GH-69 :: adjust cherry-picked code

* GH-69 :: Transfer CI data for content items and pages

* GH-69 :: add new content items

* GH-69 :: content updates

* GH-69 :: refactoring and renaming

* GH-69 :: refactor, include nullable for featured article view model

* GH-69 :: remove non-existant tag helper from article list widget

* GH-69 :: update condition in article list widget

* GH-69 :: remove unused code from content item retriever service, register generic version
  • Loading branch information
kentico-matthews authored Sep 4, 2024
1 parent 610b01f commit 56ebaf2
Show file tree
Hide file tree
Showing 189 changed files with 4,209 additions and 56 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,4 @@ MigrationBackup/
FodyWeavers.xsd
src/TrainingGuides.Web/.config/dotnet-tools.json
src/TrainingGuides.Web/License/
.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ public partial class ArticlePage : IWebPageFieldsSource
public IEnumerable<Article> ArticlePageContent { get; set; }


/// <summary>
/// ArticlePageArticleContent.
/// </summary>
public IEnumerable<IArticleSchema> ArticlePageArticleContent { get; set; }


/// <summary>
/// ArticlePagePublishDate.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
//--------------------------------------------------------------------------------------------------
// <auto-generated>
//
// 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/.
//
// </auto-generated>
//--------------------------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using CMS.ContentEngine;

namespace TrainingGuides
{
/// <summary>
/// Represents a content item of type <see cref="GeneralArticle"/>.
/// </summary>
[RegisterContentTypeMapping(CONTENT_TYPE_NAME)]
public partial class GeneralArticle : IContentItemFieldsSource, IArticleSchema
{
/// <summary>
/// Code name of the content type.
/// </summary>
public const string CONTENT_TYPE_NAME = "TrainingGuides.GeneralArticle";


/// <summary>
/// Represents system properties for a content item.
/// </summary>
[SystemField]
public ContentItemFields SystemFields { get; set; }


/// <summary>
/// ArticleSchemaTitle.
/// </summary>
public string ArticleSchemaTitle { get; set; }


/// <summary>
/// ArticleSchemaTeaser.
/// </summary>
public IEnumerable<Asset> ArticleSchemaTeaser { get; set; }


/// <summary>
/// ArticleSchemaSummary.
/// </summary>
public string ArticleSchemaSummary { get; set; }


/// <summary>
/// ArticleSchemaText.
/// </summary>
public string ArticleSchemaText { get; set; }


/// <summary>
/// ArticleSchemaRelatedArticles.
/// </summary>
public IEnumerable<Article> ArticleSchemaRelatedArticles { get; set; }


/// <summary>
/// ArticleSchemaCategory.
/// </summary>
public IEnumerable<TagReference> ArticleSchemaCategory { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
//--------------------------------------------------------------------------------------------------
// <auto-generated>
//
// 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/.
//
// </auto-generated>
//--------------------------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using CMS.ContentEngine;

namespace TrainingGuides
{
/// <summary>
/// Represents a content item of type <see cref="Interview"/>.
/// </summary>
[RegisterContentTypeMapping(CONTENT_TYPE_NAME)]
public partial class Interview : IContentItemFieldsSource, IArticleSchema
{
/// <summary>
/// Code name of the content type.
/// </summary>
public const string CONTENT_TYPE_NAME = "TrainingGuides.Interview";


/// <summary>
/// Represents system properties for a content item.
/// </summary>
[SystemField]
public ContentItemFields SystemFields { get; set; }


/// <summary>
/// InterviewRespondantName.
/// </summary>
public string InterviewRespondantName { get; set; }


/// <summary>
/// ArticleSchemaTitle.
/// </summary>
public string ArticleSchemaTitle { get; set; }


/// <summary>
/// ArticleSchemaTeaser.
/// </summary>
public IEnumerable<Asset> ArticleSchemaTeaser { get; set; }


/// <summary>
/// ArticleSchemaSummary.
/// </summary>
public string ArticleSchemaSummary { get; set; }


/// <summary>
/// ArticleSchemaText.
/// </summary>
public string ArticleSchemaText { get; set; }


/// <summary>
/// ArticleSchemaRelatedArticles.
/// </summary>
public IEnumerable<Article> ArticleSchemaRelatedArticles { get; set; }


/// <summary>
/// ArticleSchemaCategory.
/// </summary>
public IEnumerable<TagReference> ArticleSchemaCategory { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
//--------------------------------------------------------------------------------------------------
// <auto-generated>
//
// 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/.
//
// </auto-generated>
//--------------------------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using CMS.ContentEngine;

namespace TrainingGuides
{
/// <summary>
/// Defines a contract for content types with the <see cref="IArticleSchema"/> reusable schema assigned.
/// </summary>
public interface IArticleSchema
{
/// <summary>
/// Code name of the reusable field schema.
/// </summary>
public const string REUSABLE_FIELD_SCHEMA_NAME = "ArticleSchema";


/// <summary>
/// ArticleSchemaTitle.
/// </summary>
public string ArticleSchemaTitle { get; set; }


/// <summary>
/// ArticleSchemaTeaser.
/// </summary>
public IEnumerable<Asset> ArticleSchemaTeaser { get; set; }


/// <summary>
/// ArticleSchemaSummary.
/// </summary>
public string ArticleSchemaSummary { get; set; }


/// <summary>
/// ArticleSchemaText.
/// </summary>
public string ArticleSchemaText { get; set; }


/// <summary>
/// ArticleSchemaRelatedArticles.
/// </summary>
public IEnumerable<Article> ArticleSchemaRelatedArticles { get; set; }


/// <summary>
/// ArticleSchemaCategory.
/// </summary>
public IEnumerable<TagReference> ArticleSchemaCategory { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,100 @@
<field allowempty="true" column="ContentItemCommonDataPageTemplateConfiguration" columnprecision="0" columntype="longtext" enabled="true" guid="0d5a573b-759a-4dd7-a86b-be2ef2f5bac4" system="true" />
<field allowempty="true" column="ContentItemCommonDataFirstPublishedWhen" columnprecision="7" columntype="datetime" enabled="true" guid="1318327e-9a4c-47e7-be2e-3da0fe99c15e" system="true" />
<field allowempty="true" column="ContentItemCommonDataLastPublishedWhen" columnprecision="7" columntype="datetime" enabled="true" guid="169ce320-e362-4b70-b4dd-cc055082c254" system="true" />
<schema guid="c3b4896f-ba7c-4b75-9cd4-47afa7489ff1" name="ArticleSchema">
<properties>
<fieldcaption>Article schema</fieldcaption>
</properties>
</schema>
<field allowempty="true" column="ArticleSchemaTitle" columnprecision="0" columnsize="300" columntype="text" enabled="true" guid="7f920142-174c-41cd-8e92-cc40e80aabdb" visible="true">
<properties>
<explanationtextashtml>False</explanationtextashtml>
<fieldcaption>Title</fieldcaption>
<fielddescriptionashtml>False</fielddescriptionashtml>
<kxp_schema_identifier>c3b4896f-ba7c-4b75-9cd4-47afa7489ff1</kxp_schema_identifier>
</properties>
<settings>
<controlname>Kentico.Administration.TextInput</controlname>
</settings>
</field>
<field allowempty="true" column="ArticleSchemaTeaser" columnprecision="0" columntype="contentitemreference" enabled="true" guid="a66eef38-b296-4172-9f69-dda2e1840fec" visible="true">
<properties>
<explanationtext>
<![CDATA[Upload a vivid image to spark the user’s imagination. Use jpeg, jpg, png, or WebP format. Serve the image in resolution 3840 x 2160px for clarity across devices. Keep the image size under 1.7 MB to optimize speed.]]>
</explanationtext>
<explanationtextashtml>False</explanationtextashtml>
<fieldcaption>Add teaser image</fieldcaption>
<fielddescriptionashtml>False</fielddescriptionashtml>
<kxp_schema_identifier>c3b4896f-ba7c-4b75-9cd4-47afa7489ff1</kxp_schema_identifier>
</properties>
<settings>
<AllowedContentItemTypeIdentifiers>
<![CDATA[["9ecde825-735e-4967-a995-cc97b55adb0f"]]]>
</AllowedContentItemTypeIdentifiers>
<controlname>Kentico.Administration.ContentItemSelector</controlname>
<SelectionType>contentTypes</SelectionType>
</settings>
</field>
<field allowempty="true" column="ArticleSchemaSummary" columnprecision="0" columnsize="250" columntype="text" enabled="true" guid="c93e2bfc-78be-4cb9-bed2-9632279136e9" visible="true">
<properties>
<explanationtext>
<![CDATA[Keep the summary under 250 characters. Different channels will truncate content if necessary.]]>
</explanationtext>
<explanationtextashtml>False</explanationtextashtml>
<fieldcaption>Summary</fieldcaption>
<fielddescriptionashtml>False</fielddescriptionashtml>
<kxp_schema_identifier>c3b4896f-ba7c-4b75-9cd4-47afa7489ff1</kxp_schema_identifier>
</properties>
<settings>
<controlname>Kentico.Administration.TextArea</controlname>
<CopyButtonVisible>False</CopyButtonVisible>
<MaxRowsNumber>5</MaxRowsNumber>
<MinRowsNumber>3</MinRowsNumber>
</settings>
</field>
<field allowempty="true" column="ArticleSchemaText" columnprecision="0" columntype="longtext" enabled="true" guid="f474940d-642c-482d-b497-87d3db3b0958" visible="true">
<properties>
<explanationtextashtml>False</explanationtextashtml>
<fieldcaption>Text</fieldcaption>
<fielddescriptionashtml>False</fielddescriptionashtml>
<kxp_schema_identifier>c3b4896f-ba7c-4b75-9cd4-47afa7489ff1</kxp_schema_identifier>
</properties>
<settings>
<controlname>Kentico.Administration.RichTextEditor</controlname>
</settings>
</field>
<field allowempty="true" column="ArticleSchemaRelatedArticles" columnprecision="0" columntype="contentitemreference" enabled="true" guid="21100f23-0278-412c-b2d5-95308980c1de" visible="true">
<properties>
<explanationtext>
<![CDATA[Add default related article to your item. Editors can override the default and select different related items in their channel.]]>
</explanationtext>
<explanationtextashtml>False</explanationtextashtml>
<fieldcaption>Select related articles</fieldcaption>
<fielddescriptionashtml>False</fielddescriptionashtml>
<kxp_schema_identifier>c3b4896f-ba7c-4b75-9cd4-47afa7489ff1</kxp_schema_identifier>
</properties>
<settings>
<AllowedContentItemTypeIdentifiers>
<![CDATA[["17a2abf5-c412-4cee-8b6b-e5209bcd3e8c"]]]>
</AllowedContentItemTypeIdentifiers>
<controlname>Kentico.Administration.ContentItemSelector</controlname>
<SelectionType>contentTypes</SelectionType>
</settings>
</field>
<field allowempty="true" column="ArticleSchemaCategory" columnprecision="0" columntype="taxonomy" enabled="true" guid="7a10c083-cc91-4cf0-88af-66f580c90aa3" visible="true">
<properties>
<explanationtextashtml>False</explanationtextashtml>
<fieldcaption>Categories</fieldcaption>
<fielddescriptionashtml>False</fielddescriptionashtml>
<kxp_schema_identifier>c3b4896f-ba7c-4b75-9cd4-47afa7489ff1</kxp_schema_identifier>
</properties>
<settings>
<controlname>Kentico.Administration.TagSelector</controlname>
<TaxonomyGroup>
<![CDATA[["06b56c2a-463b-422a-b8d8-d9bbc352d958"]]]>
</TaxonomyGroup>
</settings>
</field>
</form>
</ClassFormDefinition>
<ClassGUID>a6581fb3-892a-45b4-981a-012ce4b50b43</ClassGUID>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<ContentFolderCreatedWhen>2024-01-01 05:00:00Z</ContentFolderCreatedWhen>
<ContentFolderDisplayName>Root</ContentFolderDisplayName>
<ContentFolderGUID>9d6509a4-a231-4837-8f1c-81a90705f988</ContentFolderGUID>
<ContentFolderModifiedByUserID>
<CodeName>administrator</CodeName>
<GUID>6415b8ce-8072-4bcd-8e48-9d7178b826b7</GUID>
<ObjectType>cms.user</ObjectType>
</ContentFolderModifiedByUserID>
<ContentFolderName>Root</ContentFolderName>
<ContentFolderTreePath>/</ContentFolderTreePath>
</cms.contentfolder>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<cms.contentitem>
<ContentItemContentFolderID>
<CodeName>Root</CodeName>
<GUID>9d6509a4-a231-4837-8f1c-81a90705f988</GUID>
<ObjectType>cms.contentfolder</ObjectType>
</ContentItemContentFolderID>
<ContentItemContentTypeID>
<CodeName>TrainingGuides.Article</CodeName>
<GUID>17a2abf5-c412-4cee-8b6b-e5209bcd3e8c</GUID>
<ObjectType>cms.contenttype</ObjectType>
</ContentItemContentTypeID>
<ContentItemGUID>018c60ab-7808-48fa-80c9-e59420d02e32</ContentItemGUID>
<ContentItemIsReusable>True</ContentItemIsReusable>
<ContentItemIsSecured>False</ContentItemIsSecured>
<ContentItemName>AboutBirds-mhz679ij</ContentItemName>
</cms.contentitem>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<cms.contentitem>
<ContentItemContentFolderID>
<CodeName>Root</CodeName>
<GUID>9d6509a4-a231-4837-8f1c-81a90705f988</GUID>
<ObjectType>cms.contentfolder</ObjectType>
</ContentItemContentFolderID>
<ContentItemContentTypeID>
<CodeName>TrainingGuides.GeneralArticle</CodeName>
<GUID>8afff782-a445-4e6b-a237-821fca0db4fb</GUID>
<ObjectType>cms.contenttype</ObjectType>
</ContentItemContentTypeID>
<ContentItemGUID>d829d7bc-7228-4962-aa63-12e0cc74773f</ContentItemGUID>
<ContentItemIsReusable>True</ContentItemIsReusable>
<ContentItemIsSecured>False</ContentItemIsSecured>
<ContentItemName>AboutConifers-ioz7lmio</ContentItemName>
</cms.contentitem>
Loading

0 comments on commit 56ebaf2

Please sign in to comment.