I just did that yesterday for a product listing. It can be done many ways, but I chose to have a field in my site config record called Products Per Page and is a dropdown with 5 10 15 20 etc as choices. Then, in the product viewer, I changed the per page constant to the variable.
list($productsRecords, $productsMetaData) = getRecords(array(
'tableName' => 'products',
'where' => "category = $pageNum",
'perPage' => $common_infoRecord['products_per_page'],
'loadUploads' => true,
'allowSearch' => false,
));
Is that what you need?
Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987