Ark.Framework.Settings.Abstractions
9.1.0
dotnet add package Ark.Framework.Settings.Abstractions --version 9.1.0
NuGet\Install-Package Ark.Framework.Settings.Abstractions -Version 9.1.0
<PackageReference Include="Ark.Framework.Settings.Abstractions" Version="9.1.0" />
<PackageVersion Include="Ark.Framework.Settings.Abstractions" Version="9.1.0" />
<PackageReference Include="Ark.Framework.Settings.Abstractions" />
paket add Ark.Framework.Settings.Abstractions --version 9.1.0
#r "nuget: Ark.Framework.Settings.Abstractions, 9.1.0"
#:package Ark.Framework.Settings.Abstractions@9.1.0
#addin nuget:?package=Ark.Framework.Settings.Abstractions&version=9.1.0
#tool nuget:?package=Ark.Framework.Settings.Abstractions&version=9.1.0
Ark.Framework.Settings.Abstractions
Settings types for Ark: values developers define in code, editors edit in the CMS and code
injects (the search page, footer text per language). Reference it from the project holding
your content types; Ark.Framework.Settings does the rest.
Install
dotnet add package Ark.Framework.Settings.Abstractions - requires Ark.Framework.Infrastructure.
Setup
[SettingsType(DisplayName = "Navigation")]
public class NavigationSettings : SettingsData
{
[ContentProperty(PropertyEditor.ContentReference, AllowedTypes = [typeof(SearchPage)])]
public ContentReference<ContentTypeKey>? SearchPage { get; set; }
[CultureSpecific, ContentProperty(PropertyEditor.TextArea)]
public string? FooterText { get; set; }
}
Main entry points
SettingsData,[SettingsType]- the base class and attribute of a settings type.[NotPublic]- keeps a settings type or property out of the public settings endpoint.ISettings<T>- the live values of a settings type, for code.SettingsSaved- the event raised when a settings type is saved or restored.
Notes
- One instance per type, created with the properties' defaults on first read; it can't be deleted.
- The instance is keyed by the class name: renaming the class starts a new, empty instance.
- Give every
stringproperty a default (or make itstring?): the first version is made from the defaults. - Each type gets
{Type}Versionsand{Type}Translationstables, plus oneSettingsRootstable; add a migration.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Ark.Framework.Infrastructure (>= 9.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Ark.Framework.Settings.Abstractions:
| Package | Downloads |
|---|---|
|
Ark.Framework.Settings
Settings types for the CMS framework: ISettings<T> for code, the CMS settings API and the public settings endpoint (ark.UseSettings, MapArkSettingsTypes, MapArkSettingsDelivery). Settings types themselves are declared with Ark.Framework.Settings.Abstractions. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.0 | 0 | 11/23/2026 |
v9.1.0: Public packages, content type display texts, search sort order, Markdown images and tables
**Breaking for the CMS UI package**
- The npm package is renamed from `@ark/cms` to `@arkframework/cms` (and `@ark/cms/client` to `@arkframework/cms/client`). Change the dependency and the imports. To install a release candidate, map the scope to the cms-packages feed in `.npmrc`: `@arkframework:registry=https://pkgs.dev.azure.com/antonkronosjo/CMS/_packaging/cms-packages/npm/registry/`.
**New**
- Public packages: stable versions are published to nuget.org (`Ark.Framework.*`) and npmjs.org (`@arkframework/cms`), so a site needs no feed for them. Release candidates stay on the cms-packages feed.
- Release notes: every package carries its release's notes (`<releaseNotes>` in the `.nuspec`), shown on nuget.org.
- Content type display texts: `[DisplayText(language, name)]` on a content type, settings type, property or tab (`Tab = "..."`), repeatable per CMS language, with `Description`, and `Group` on a content type. The API sends them as `displayTexts` on `GET /api/content/types`, the creation, update and settings schemas and `GET /api/settings`. The CMS UI shows them - create picker names, descriptions and groups, field labels and help texts, tab and type names - before the site's `resources`.
- Search sort order: `o.Sorts` on `MapArkSearch` lists the index fields visitors may sort by, such as `SearchSchema.FirstPublishedField`. `GET /api/search?sort={field}&desc=true` picks one; without `sort` the order is best match first, as before. A sort the site didn't allow is a 400; a field in `o.Sorts` that can't be sorted on stops the site at startup. `searchContent` in `@arkframework/cms/client` takes `sort` and `desc`.
**Fixed**
- The CMS Markdown editor keeps images, GFM tables and raw HTML. Before, editing any text saved it without its images and tables, and with its HTML escaped. A table may be saved reformatted, with the same cells.
**Docs**
- Guide: a section on the CMS editor UI, and where stable versions and release candidates come from.
No migrations.