Use a Widget to View Entry JSON in the Contentstack SaaS Headless CMS

This blog post explains how you can use a widget to view the JSON representation of an entry in the Contentstack SaaS headless CMS user interface. You can create a widget based on the JSON custom field to view the JSON representation of entries in the Contentstack UI. In a stack, click the gear, andContinue reading “Use a Widget to View Entry JSON in the Contentstack SaaS Headless CMS”

Read-Only Custom Field for Contentstack SaaS Headless CMS

This blog post explains how you can add a custom field to the Contentstack SaaS headless content management system, in this case to render a message set by code to the CMS user as a read-only HTML element while editing the entry that contains that value. You can use this technique to provide guidance toContinue reading “Read-Only Custom Field for Contentstack SaaS Headless CMS”

Contentstack SaaS Headless CMS .NET SDK Exception Management

This blog post explains how you can access information about errors that occur when using the .NET SDK for the Contentstack SaaS headless content management system. For background information about accessing error data from the underlying .NET HttpWebRequest class, see this previous blog post: Access Error Data from HTTP Response When HttpWebRequest Throws an ExceptionContinue reading “Contentstack SaaS Headless CMS .NET SDK Exception Management”

Code Dump: Contentstack .NET Static Site Exporter

This blog post describes a prototype .NET command line tool that exports a website to static HTML and JSON files in subdirectories corresponding to the URLs of the entries in the Contentstack SaaS headless CMS. You can use a solution based on this approach to spider any Contentstack content delivery website to HTML and JSONContinue reading “Code Dump: Contentstack .NET Static Site Exporter”

Code Dump: .NET Contentstack Media Importer

This blog post describes a prototype .NET command line solution for importing media into the Contentstack SaaS headless content management system. While this tool functions, it could use testing and refactoring. More importantly, it demonstrates relevant APIs and techniques for working with folder paths in Contentstack. You can use these techniques to create asset folderContinue reading “Code Dump: .NET Contentstack Media Importer”

Paging Through HTTP API Results with .NET

This blog post demonstrates a simple C# coding pattern for paging through JSON results from HTTP APIs. For network considerations and to prevent unbounded queries, HTTP APIs often return records in batches of a maximum size. To process additional data, you can request additional pages. You could use this coding pattern on any platform toContinue reading “Paging Through HTTP API Results with .NET”

Access Error Data from HTTP Response When HttpWebRequest Throws an Exception

This blog post explains how to access the response body that may contain error messages when an HTTP request returns an error. You can use this technique to diagnose HTTP service API calls that return errors and raise exceptions. The following raise an WebException or an AggregateException if the HTTP request returns an error. stringContinue reading “Access Error Data from HTTP Response When HttpWebRequest Throws an Exception”

Prototype .NET Class Uploads Media Assets to Contentstack

This short blog post describes a prototype C# class that uploads files to the Contentstack SaaS headless CMS. I use this code to import media from a list specified in a spreadsheet. This code needs extensive refactoring and testing, but it works, I need to move on to something else, and I am publishing thisContinue reading “Prototype .NET Class Uploads Media Assets to Contentstack”

Troubleshooting Webhooks

This blog post contains information about troubleshooting webhooks, which I have been exploring specifically with the Contentstack SaaS headless CMS. Webhooks are just HTTP requests, so troubleshooting them is not unlike troubleshooting any HTTP request. Webhook – Wikipedia About Webhooks (contentstack.com) For me, problems that appear significant often have trivial solutions, often involving simple user errors.Continue reading “Troubleshooting Webhooks”

Synchronize Content between Headless Content Management Systems

This blog post describes techniques that you can use to syndicate content from one headless content management system to others from the same CMS vendor, typically from production to test, development, and other systems. Organizations often deploy separate instances of a content management system for development, test, production, and potentially other purposes. Changes to contentContinue reading “Synchronize Content between Headless Content Management Systems”