Preview draft missing variables
Posted: Tue Nov 26, 2024 2:36 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:
and custom data such as
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?
Code: Select all
$page->coverImage()Code: Select all
$page->custom('seoheader')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?