-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gh 69 add rfs and taxonomies/fb (#70)
* GH-69 :: add new content types * GH-69 :: add new content items * GH-69 :: content item updates * GH-69 :: add personalization * Gh-66 :: refactor old service resolution * GH-69 :: refactor personalization condition type * GH-69 :: refactoring and renaming * GH-69 :: refactoring, small adjustments * GH-69 :: fix nullability in article service * GH-69 :: update condition of article listing widget * GH-72 :: update Code generation script: (#73) - include reusable field schemas - ensure the same namespace for RFS and other content types - use --with-provider-class False for Custom module classes (recommended) - extract repetitive code into a function --------- Co-authored-by: Dominika Glueck <[email protected]>
- Loading branch information
1 parent
95c839a
commit 465c7b6
Showing
100 changed files
with
2,014 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
src/TrainingGuides.Entities/ReusableContentTypes/GeneralArticle/GeneralArticle.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
src/TrainingGuides.Entities/ReusableContentTypes/Interview/Interview.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
src/TrainingGuides.Entities/ReusableFieldSchemas/ArticleSchema/IArticleSchema.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
Oops, something went wrong.