preview problem v2.50

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

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

Greg -

That works perfectly! I had no idea that switch was available.  Thanks again and thanks for the speedy response.

Craig