Skip to content

Content Folder Settings ​

Open from row Settings (gear) or the New wizard on the content folder list
Dialog title is usually Settings, with three tabs: Basic, Related data, Fields

Configure content folder metadata, associations with other content folders, and field display order for admin entry/list UIs. Not used to fill specific field values for one entry (that is on the content entry edit page).

Prerequisite

A content type must exist. Related data can only target other folder-type content folders (not single content folders).

Content folder settings: Basic tab

Basic ​

SettingDescription
NameContent folder identifier; {name} in k.content.{name}; usually cannot change after create
Display nameName shown in the admin
Preview URLOptional; used by content entry Save and preview, etc.
Content typeBinds a content type; usually cannot change after save
Page sizeFolder only: entries per page; can choose Disable pagination
GroupCollapse with other folders in the content folder list
SortableWhether manual entry ordering is allowed
Sort fieldWhen enabled: sort by a field asc/desc, or drag-and-drop order
HiddenHide from the content folder list (use Show all to view)

Single content folders omit pagination and other list-related items; follow the UI.

Attach data from other content folders to each entry in this folder for admin entry and front-end k.content reads. Two kinds:

TypeAdmin labelData relationshipTypical use
Category dataCategory dataCurrent entry “belongs to” entries in the related folder (tag/category style, many-to-many)Article belongs to multiple tags; product in categories
Embedded dataEmbedded dataPick and embed specific entries from the related folder on the current entry (stores Id list)Recommended products on an article, carousel items

Both require:

ItemDescription
Target content folderSelect another folder-type content folder in the site
AliasKey in API and templates; must be unique; English recommended
Display nameSection title on the admin form
MultipleCategory data only: allow multi-select associations

Embedded data can add groups: multiple related folders in one group; group name is for admin display; aliases are configured per folder in the group.

Content folder settings: Related data tab

Category data vs embedded data (how to choose) ​

Category dataEmbedded dataCurrent articlePick tag folder entriesLookup by article Idcategory relationsCurrent articleCheck recommended productsIds stored on current article
QuestionPrefer
Relation set defined by “which categories/tags this entry belongs to”Category data
Relation set is a manually picked fixed set of entries at edit timeEmbedded data
Need multiple related folders in one blockEmbedded data + groups

Get the current entry first (.get() for folders; direct k.content.{folderName} for single-content folders), then access by configured alias.

Category data (alias example tags) ​

typescript
const post = k.content.Article.get('2024-launch')

// Alias tags: array of related folder entries linked to this article
const tagItems = post.tags  // equivalent to KCategory.All()

for (const tag of tagItems) {
  k.console.log(tag.title)
}

Embedded data (alias example relatedProducts) ​

typescript
const post = k.content.Article.get('2024-launch')

// Alias relatedProducts: array of embedded product entries on this article
const products = post.relatedProducts  // equivalent to KEmbeddedFolder.All()

for (const p of products) {
  k.console.log(p.title)
}

relatedContent (by name) ​

You can also use relatedContent on the entry and call get by alias:

typescript
const post = k.content.Article.get('2024-launch')
const gallery = post.relatedContent.get('sideGallery')

Unconfigured aliases return null / empty. Exact return types and offline entries: k.content and runtime behavior.

With k-data

Listing main folder entries on list pages often uses k-data; related blocks on detail pages are usually rendered after get on a single entry and reading aliases in KScript.


Fields ​

Controls display order of editable fields + related sections on the content entry edit page and related UIs (drag to reorder).

SourceDescription
Fields marked user-editable in the content typeFrom the type bound to this folder
Configured category/embedded relationsAppear by alias or display name

Affects admin display order only; field definitions remain in content types.

Content folder settings: Fields tab (display order)

On save, if Basic or Related data validation fails, the dialog switches to the corresponding tab.

DocDescription
Content foldersCreate folder / single content
Content entriesEnter relations and field values
k.contentAPI reference