Documents

Documents are exactly as they sound, meaning they are Documents! Here you can store all of your information, like texts, images, booleans etc.

Each document can have as many fields as you like. Document fields are based upon the schema a document exists. Let's dive into some of those fields.

Document Fields

Plain Text

This is your standard text input. Here, you can type in your normal text, have a markdown, or populate it through a resource (Read more in our resources page).

Rich Text

This is a rich text editor with formating options (WYSIWYG).

File

Here you can upload your files, like images, videos, anything you like.

Relationships

In Lucent, you can create relationships between documents, from any schema you have in your channel.

Tags

Attach “labels” to your document by adding descriptive words or phrases.

Boolean

This field can hae a True or False option, with a checkbox.

Number

Insert only numeric values.

Date

Date and time fields.

Block Editor

Rich Text editor that outputs json formatted content.

Embed

Embed multimedia just by adding the link to your media (oEmbed).

Json

Add data in JSON format

Slug

Select any text field and slugify it.

Subdocument

Add subschema documents in your document, ideal for templating (e.g. page sections).

Section

Add a tab to separate your document into sections. Any fields directly after this, will be viewed in a separate tab.

Combo

Create your own custom fields with a combination of other fields.

Enviroments

In Lucent there are 2 versions of each document at the same time. The Demo version and the Live version. This feature gives you the ability to manage your content without affecting the live website and when you are ready you can publish your changes.

Each time you save a document only the Demo version will get updated. When you publish a document both the demo and the live version will get updated. Simple as that.

If you have revisions enabled, each time a document is published a new revision is created. Revisions are not created when you just save a document.

Scheduling a document

Documents can also be scheduled when to be published and unpublished. For example, let's say you have an offer which starts at the 25th of December, and you want a page for that offer. You can schedule your document to be published and then schedule it to be unpublished when the offer expires.