Limit the number of records displayed

4 posts by 3 authors in: Forums > CMS Builder
Last Post: June 6, 2012   (RSS)

By MercerDesign - June 1, 2012

I have a news list which shows all the current news, I have also told all my other pages to pull in the first record from that list which works fine, my problem is on the news page I want all the current news displayed in the main content area but I also still want only the first record pulled into an area on the right, so my question is how do I keep all the records showing but then limit the same list of records to just one on the page in the different area.

Re: [Mercer Design] Limit the number of records displayed

By Jason - June 1, 2012

Hi,

You could try something like this:

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

$firstNewsRecord = array();

if($newsRecords) {
$firstNewsRecord = $newsRecords[0];
}


In this example, $newsRecords is a list of all of your news articles. $firstNewsRecord is the first record from that list. These variables can be displayed separately.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

Re: [Mercer Design] Limit the number of records displayed

By Damon - June 6, 2012

Hi,

Can you send in one Support Request so we can take look at your code and CMS Builder setup:
https://www.interactivetools.com/support/email_support_form.php?priority=free

We can look into both these issues at the same time. Please include this in the "Summary of Problem textbox on the support form:

Limit the number of records displayed:
http://www.interactivetools.com/forum/gforum.cgi?post=93673#93673

MultiSearch results page:
http://www.interactivetools.com/forum/gforum.cgi?post=93674#93674

Thanks!
Cheers,
Damon Edis - interactivetools.com

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