preview problem v2.50

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 17, 2013   (RSS)

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? 

thanks

Hi, 

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',
));

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com