Ark.Framework.Pages
9.1.0
dotnet add package Ark.Framework.Pages --version 9.1.0
NuGet\Install-Package Ark.Framework.Pages -Version 9.1.0
<PackageReference Include="Ark.Framework.Pages" Version="9.1.0" />
<PackageVersion Include="Ark.Framework.Pages" Version="9.1.0" />
<PackageReference Include="Ark.Framework.Pages" />
paket add Ark.Framework.Pages --version 9.1.0
#r "nuget: Ark.Framework.Pages, 9.1.0"
#:package Ark.Framework.Pages@9.1.0
#addin nuget:?package=Ark.Framework.Pages&version=9.1.0
#tool nuget:?package=Ark.Framework.Pages&version=9.1.0
Ark.Framework.Pages
Pages for Ark: the page tree, URLs per language, inherited access, the main menu, the tree API for a CMS UI and the by-URL API for a public site.
Install
dotnet add package Ark.Framework.Pages - requires Ark.Framework.Infrastructure, Ark.Framework.AspNetCore and Ark.Framework.Pages.Abstractions.
Setup
builder.Services.AddArk<ContentTypeKey>(ark =>
{
...
ark.UsePages<ContentTypeKey>(o => o.PrefixDefaultLanguage = false);
});
app.MapArkPages<ContentTypeKey>(); // /api/content/pages
app.MapArkPageDelivery<ContentTypeKey>(); // /api/delivery/by-url, menu, url-prefixes, parse-url
Add a migration after turning it on: it adds ArkPageTree and ArkPageUrls.
Main entry points
UsePages<T>(...)- turns on pages and registersIPageServiceandIPageTreeService.PageOptions- whether the default language has a URL prefix, and the site's hosts, so a link to an own page's address is stored as a link to the page.IPageTreeService- creating, moving and ordering pages, and the tree for editing.MapArkPages<T>(),MapArkPageDelivery<T>()- the tree API and the public page API.
HTTP endpoints
Tree API (MapArkPages, /api/content/pages):
| Request | Does |
|---|---|
GET /tree?language= |
the root page and the pages under it |
GET /{id}/children?language= |
one level, for loading on demand |
GET /{id} |
parentId, sortOrder, ancestorIds, urls, urlParts per language |
GET /{id}/ancestors |
the pages above it, the root first |
GET /types, GET /{id}/allowed-children, GET /allowed-children |
page types, and which may go where (or be the root) |
PUT /{id}/move |
{ parentId, index } |
PUT /{id}/children/order |
{ childIds } |
Creating a page is POST /api/content with metadata.parentId.
Delivery API (MapArkPageDelivery, /api/delivery):
| Request | Returns |
|---|---|
GET /by-url?url= |
the published page at a public URL; 404, or 404 with { redirect } for a non-canonical form |
GET /by-url?path=&language= |
the published page at a path in a language |
GET /url-prefixes |
what URLs start with per language: { "sv": "", "en": "/en" } |
GET /parse-url?url= |
{ path, language, redirect } for any public URL |
GET /menu?language=&depth= |
the main menu: [{ id, name, url, children }] |
Notes
- URL segments are lower case
a-z0-9-, unique among siblings per language; a segment made from the name is numbered (about-us-2). - Without its own access rules, a page takes the rules of the nearest page above it (with
UseAccessRules). - Moves take effect at once and add no version. The root page can't be moved.
- Under the root, a supported language code can't be a segment.
- There is no redirect from a page's old URL after a rename or move. Each page whose URL changes raises
ContentUrlChanged, and with search on its hits carry the new URL (fields.url).
| 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.AspNetCore (>= 9.1.0)
- Ark.Framework.Infrastructure (>= 9.1.0)
- Ark.Framework.Pages.Abstractions (>= 9.1.0)
NuGet packages
This package is not used by any NuGet packages.
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.