Skip to content

Commit

Permalink
GH-69 :: transfer types and changes from finished branch spike
Browse files Browse the repository at this point in the history
  • Loading branch information
kentico-matthews committed Aug 26, 2024
1 parent 610b01f commit b0bd3b2
Show file tree
Hide file tree
Showing 51 changed files with 1,413 additions and 41 deletions.
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,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>
/// IntervieweeName.
/// </summary>
public string IntervieweeName { 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>
/// ArticleSchemaTaxonomy.
/// </summary>
public IEnumerable<TagReference> ArticleSchemaTaxonomy { get; set; }
}
}
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="NewsArticle"/>.
/// </summary>
[RegisterContentTypeMapping(CONTENT_TYPE_NAME)]
public partial class NewsArticle : IContentItemFieldsSource, IArticleSchema
{
/// <summary>
/// Code name of the content type.
/// </summary>
public const string CONTENT_TYPE_NAME = "TrainingGuides.NewsArticle";


/// <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>
/// ArticleSchemaTaxonomy.
/// </summary>
public IEnumerable<TagReference> ArticleSchemaTaxonomy { 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>
/// ArticleSchemaTaxonomy.
/// </summary>
public IEnumerable<TagReference> ArticleSchemaTaxonomy { 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="ArticleSchemaTaxonomy" columnprecision="0" columntype="taxonomy" enabled="true" guid="7a10c083-cc91-4cf0-88af-66f580c90aa3" visible="true">
<properties>
<explanationtextashtml>False</explanationtextashtml>
<fieldcaption>Tags</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.NewsArticle</CodeName>
<GUID>8afff782-a445-4e6b-a237-821fca0db4fb</GUID>
<ObjectType>cms.contenttype</ObjectType>
</ContentItemContentTypeID>
<ContentItemGUID>ea6d110c-d9be-4a69-a193-4758bb0c9efa</ContentItemGUID>
<ContentItemIsReusable>True</ContentItemIsReusable>
<ContentItemIsSecured>False</ContentItemIsSecured>
<ContentItemName>AboutFrogs-fgk2dl5o</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.Asset</CodeName>
<GUID>9ecde825-735e-4967-a995-cc97b55adb0f</GUID>
<ObjectType>cms.contenttype</ObjectType>
</ContentItemContentTypeID>
<ContentItemGUID>e1f1110e-93f1-4fec-94c8-571f6fbd2e26</ContentItemGUID>
<ContentItemIsReusable>True</ContentItemIsReusable>
<ContentItemIsSecured>False</ContentItemIsSecured>
<ContentItemName>Frog-1fdh3ccm</ContentItemName>
</cms.contentitem>
Loading

0 comments on commit b0bd3b2

Please sign in to comment.