How Contentstack Modular Blocks Fit .NET Core

You can use Block Model classes to model the different types of blocks that can appear in a Contentstack Modular Blocks Field as strongly-typed objects. https://deliverystack.net/2020/07/20/net-core-headless-cms-entry-models-and-entry-model-classes/ https://deliverystack.net/2020/07/21/contentstack-net-sample-entry-model/ https://www.contentstack.com/docs/developers/create-content-types/modular-blocks/ https://deliverystack.net/2020/07/21/contentstack-modular-blocks-and-net-core/ Block Model classes are exactly like Entry Models: Plain Old CLR Objects (POCOs) with properties that expose data deserialized from JSON that is part of anContinue reading “How Contentstack Modular Blocks Fit .NET Core”

.NET Core Paging and Threading with Headless (CMS)

When invoking RESTful API calls to retrieve data from a Content Management System (CMS), search index, or other system, a common pattern is that the service returns a limited number of records of a maximum fixed size, called a page. If you need additional records, you request the next page. When the order of dataContinue reading “.NET Core Paging and Threading with Headless (CMS)”

Convert Entry JSON to Entry Model

If you can access the JSON representation of an Entry, then you can convert that JSON to an Entry Model (https://deliverystack.wordpress.com/2020/07/20/net-core-headless-cms-entry-models-and-entry-model-classes/). This functionality works well as a .NET extension method (https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods). This example uses the Contentstack .NET SDK (https://www.contentstack.com/docs/platforms/dot-net/api-reference/api/index.html) for the following reasons: Contentstack provides a default Entry Model class (https://www.contentstack.com/docs/platforms/dot-net/api-reference/api/Contentstack.Core.Models.Entry.html, https://github.com/contentstack/contentstack-dotnet/blob/master/Contentstack.Core/Models/Entry.cs) that makes itContinue reading “Convert Entry JSON to Entry Model”

Contentstack Modular Blocks and .NET Core

In a previous blog posts (https://deliverystack.wordpress.com/2020/07/21/contentstack-net-sample-entry-model/) I may have cast Contentstack Modular Blocks (https://www.contentstack.com/docs/developers/create-content-types/modular-blocks/) in a bad light. In fact, Modular Blocks are incredibly powerful and honestly one of the few differentiators between headless CMS providers from a .NET content delivery perspective. They aren’t difficult to model or implement. A CMS may allow multiple FieldContinue reading “Contentstack Modular Blocks and .NET Core”

The (Best) [CMS] API Has No Methods

The (Best) [CMS] API Has No Methods. I mean that in the sense that The Emperor Wears No Clothes. With twenty five years of experience in enterprise systems including twenty in CMS, I mean it with conviction. All I want are objects populated from one or more systems such as search, CMS, product information management,Continue reading “The (Best) [CMS] API Has No Methods”

SaaS is the Only Real Cloud

In addition to supporting modern JavaScript frameworks (and actually fitting well with .NET Core and ASP.NET Core), because they allow each party to focus solely on their own requirements and technologies using stable and well-defined interfaces to other platforms, complete SaaS solutions (cloud-hosted, microservice-architected, RESTful API-implemented, decoupled, including content management) derive maximum value from theContinue reading “SaaS is the Only Real Cloud”

Kentico Kontent .NET Sample Entry Model

What follows is my attempt to define an Entry Model class as described in the blog post https://deliverystack.wordpress.com/2020/07/20/net-core-headless-cms-entry-models-and-entry-model-classes/ to support the Content Type that I described in the blog post at https://deliverystack.wordpress.com/2020/07/21/entry-data-formats-in-headless-cms/ for the Kentico Kontent SaaS headless CMS. Without the challenges of transforming JSON to HTML as required for Contentful or repeating Field valuesContinue reading “Kentico Kontent .NET Sample Entry Model”

Contentstack .NET Sample Entry Model

What follows is my attempt to define an Entry Model class as described in the blog post https://deliverystack.wordpress.com/2020/07/20/net-core-headless-cms-entry-models-and-entry-model-classes/ to support the Content Type that I described in the blog post at https://deliverystack.wordpress.com/2020/07/21/entry-data-formats-in-headless-cms/ for the Contentstack SaaS headless CMS. Somehow I managed to name three fields incorrectly. I already published entries and pastebinned the JSON soContinue reading “Contentstack .NET Sample Entry Model”

Contentful .NET Sample Entry Model

What follows is my attempt to define an Entry Model class as described in the blog post https://deliverystack.wordpress.com/2020/07/20/net-core-headless-cms-entry-models-and-entry-model-classes/ to support the Content Type that I described in the blog post at https://deliverystack.wordpress.com/2020/07/21/entry-data-formats-in-headless-cms/ for the Contentful SaaS headless CMS. https://pastebin.com/qKsX4DMW I receive NullReferenceException when I try to access the Assets. This could make sense, because theContinue reading “Contentful .NET Sample Entry Model”

Entry Data Formats in Headless CMS

We can use the .NET SDKs from the headless CMS vendors to retrieve data and evaluate the JSON formats uses to represent Entries in each system. While we should use strongly-typed Entry Model classes as described in the blog post https://deliverystack.wordpress.com/2020/07/20/net-core-headless-cms-entry-models-and-entry-model-classes/, we can evaluate the raw JSON to see how the systems represent data, whatContinue reading “Entry Data Formats in Headless CMS”