preview problem v2.50
I have an issue with preview on v2.50. I created a separate preview page, removed the where statement and the preview works, except it does not work for information where the publish date is in the future. This website has a new posting each day. So if I am working on tomorrows entry (future publish date) I cannot preview it. When I press the preview button it previews today's posted article even though I am in the posted entry for tomorrow. If I change the publish date to today, it works fine. Is there a way around this?
Are you using the getRecords function to display the record on your preview page? If so, I think you need to turn the ignore publish date setting to true. You can do that like this:
// load record from 'blog'
list($blogRecords, $blogMetaData) = getRecords(array(
'tableName' => 'news',
'where' => "`num` = '1'",
'loadUploads' => false,
'allowSearch' => false,
'ignorePublishDate' => true,
'limit' => '1',
PHP Programmer - interactivetools.com