Preview draft missing variables

Post Reply
kevinblundit
Jr. Bludit
Posts: 1
Joined: Tue Nov 26, 2024 2:33 pm

When I use the preview function when writing a blog, some of the data will not display unless you publish the blog. Things such as:

Code: Select all

$page->coverImage()
and custom data such as

Code: Select all

$page->custom('seoheader')
appear to be empty and my preview looks all wrong.

When it's published everything looks perfect - it's a struggle because I can't preview my blogs without publishing them.

Just wondered if anyone had a tip?
Post Reply