OneEntry Platform 2.0.1 Help

Attributes

Attributes are the most important feature of OneEntry. The CMS allows attaching sets of attributes to the majority of entities in the system.

For example, you want to add products to the catalog that must have fields such as price, sku, and image. Attributes enable you to do this.

Entities that support attaching attributes have a field attributeValues.

Getting attributes in KMM

val page: Page = ... val attributes = page.attributeValues["en_US"] ?: throw ... val attribute: AttributeValue = attributes["description"] ?: throw ...

Handling string attributes in KMM

attribute.valueAsString()

Getting attributes in Swift

let page: Page = try await ... let attributes = page.attributeValues["en_US"] let attribute: AttributeValue = attributes?["description"] ?? ...

Handling string attributes in Swift

try attribute.valueAsString()
Last modified: 01 August 2025