Limit the number of records displayed?

2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 3, 2016   (RSS)

By Damon - November 3, 2016

Hi,

Try switching the iframe to a PHP include and use a div with scrolling.

To limit the number of articles to 5, change this code from this:

// load records
list($newsRecords, $newsMetaData) = getRecords(array(
'tableName' => 'news',
));

to this:

// load records
list($newsRecords, $newsMetaData) = getRecords(array(
'tableName' => 'news',
'limit'       => '5',
));

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/