Category page shows just 5 records...

4 posts by 2 authors in: Forums > CMS Builder
Last Post: August 5, 2011   (RSS)

By mbareara - July 22, 2011

Hi :-)
i have a problem on this page http://calciorosanero.com/news/index.php

It shows me just last 5 records and not all records...

The php code is

<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php


// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/home/calciorosanero/www/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

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

?>


Thank you for your suggestion :-)
Orazio

Re: [Jason] Category page shows just 5 records...

By mbareara - August 5, 2011 - edited: August 5, 2011

hum it doesn.t work...

i've added this code
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php


// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/home/calciorosanero/www/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

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

?>

in
http://calciorosanero.com/news/index.php

Re: [orazio] Category page shows just 5 records...

By Jason - August 5, 2011

Hi,

If you could fill out a [url http://www.interactivetools.com/support]2nd Level Support Request[/url] we can take a closer look into this for you.

Also, how many records are you expecting to be returned?

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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