OVERRIDING THE HIDDEN VALUE, PUBLISHDATE & REMOVEDATE TO SHOW RECORDS - Jul 31st, 2013


User In-House-Logic needed to override the hidden value and the publishStart & publishEnd date fields to show records on
a web page.

Greg Thomas from Interactive Tools came to the rescue...

He said:

If you're using a getRecords function to retrieve your data you can get it to override the hidden and display
before/after dates with these variables:


// load records from 'blog'
list($blogRecords, $blogMetaData) = getRecords(array(
'tableName' => 'blog',
'loadUploads' => true,
'allowSearch' => false,
'ignoreHidden' => true, // don't hide records with hidden flag set
'ignorePublishDate' => true, // don't hide records with publishDate > now
'ignoreRemoveDate' => true, // don't hide records with removeDate < now
));


So these array keys tell the getRecords function to ignore the hidden field, publish and remove dates.



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service