Story

data class Story(id: Long, uuid: String, name: String, slug: String, fullSlug: String, defaultFullSlug: String?, createdAt: String, publishedAt: String?, firstPublishedAt: String?, content: JsonObject?, sortByDate: Boolean?, position: Int?, tagList: List<String>?, isStartPage: Boolean, parentId: Int?, groupId: String?, alternates: List<Alternate>?, translatedSlugs: List<JsonObject>?, releaseId: String?, lang: String)

This is an object representing your content entry. One Story object can be of a specific type, so called content types and is able to contain components. You define the fields and nestability of your content types to achieve your content structure. To learn how to build a basic blog you can checkout our content building tutorial.

Parameters

id

Numeric id

uuid

Generated uuid string

name

The name you give this story

slug

The slug / path you give this story

fullSlug

Combined parent folder and current slug

defaultFullSlug

Contains the full slug of the default language if the app Translatable Slugs is installed

createdAt

Creation date

publishedAt

Latest publishing date

firstPublishedAt

First publishing date

content

Your defined custom content body object

sortByDate
position

Position in folder

tagList
isStartPage

Is startpage of current folder (true/false)

parentId

Parent folder id

groupId

Alternates group id (uuid string)

alternates

Array of alternate objects

translatedSlugs

Array of alternate objects

releaseId

Id of your content stage (default: null)

lang

Defined language (default: "default")

Constructors

Story
Link copied to clipboard
fun Story(id: Long, uuid: String, name: String, slug: String, fullSlug: String, defaultFullSlug: String? = null, createdAt: String, publishedAt: String? = null, firstPublishedAt: String? = null, content: JsonObject? = null, sortByDate: Boolean? = null, position: Int? = null, tagList: List<String>? = null, isStartPage: Boolean = false, parentId: Int? = null, groupId: String? = null, alternates: List<Alternate>? = null, translatedSlugs: List<JsonObject>? = null, releaseId: String? = null, lang: String = "default")

Properties

alternates
Link copied to clipboard
val alternates: List<Alternate>? = null
content
Link copied to clipboard
val content: JsonObject? = null
createdAt
Link copied to clipboard
val createdAt: String
defaultFullSlug
Link copied to clipboard
val defaultFullSlug: String? = null
firstPublishedAt
Link copied to clipboard
val firstPublishedAt: String? = null
fullSlug
Link copied to clipboard
val fullSlug: String
groupId
Link copied to clipboard
val groupId: String? = null
id
Link copied to clipboard
val id: Long
isStartPage
Link copied to clipboard
val isStartPage: Boolean = false
lang
Link copied to clipboard
val lang: String
name
Link copied to clipboard
val name: String
parentId
Link copied to clipboard
val parentId: Int? = null
position
Link copied to clipboard
val position: Int? = null
publishedAt
Link copied to clipboard
val publishedAt: String? = null
releaseId
Link copied to clipboard
val releaseId: String? = null
slug
Link copied to clipboard
val slug: String
sortByDate
Link copied to clipboard
val sortByDate: Boolean? = null
tagList
Link copied to clipboard
val tagList: List<String>? = null
translatedSlugs
Link copied to clipboard
val translatedSlugs: List<JsonObject>? = null
uuid
Link copied to clipboard
val uuid: String