Templating the Key Text Field

The Key Text field allows content writers to enter a single string.

Get the Key Text value

Here is an example that shows how to get the value of a Key Text field. In this case, the Key Text field has the API ID of title.

Copy
<h1>{{ $document->data->title }}</h1>

Was this article helpful?
Not really
Yes, Thanks

Can't find what you're looking for? Get in touch with us on our Community Forum.