Page 1 of 1

Preview draft missing variables

Posted: Tue Nov 26, 2024 2:36 pm
by kevinblundit
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?