RSS feed only showing one entry

5 posts by 3 authors in: Forums > CMS Builder
Last Post: May 2, 2013   (RSS)

By meg - May 1, 2013

I'm working with another client on an RSS feed. I set it up through the CMS, but it's only showing one entry out, when there should be many. Any reason why this happens?

By gregThomas - May 2, 2013

Hi,

Would it be possible to include or attach the code from your RSS feed into a post for me? The most likely issue is that there is a limit in your getRecords function:

  // load records from 'blog'
  list($blogRecords, $blogMetaData) = getRecords(array(
    'tableName'   => 'blog',
    'orderBy'     => '',   // use default database order
    'loadUploads' => false,
    'limit'       => '1',
    'allowSearch' => false,
  ));

If you have a limit like the one above in your getRecords function, if you remove it all of the posts should be displayed.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By gregThomas - May 2, 2013

Hi, 

I can't see anything in your code that would cause what is returned to be limited to one record. Please could you fill out a second level support request for me? You can find the form here:

https://www.interactivetools.com/support/email_support_form.php

Then I can take a closer look at what could be causing the issue.

Cheers

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By Dave - May 2, 2013

Hi meg, 

Or if you want to try one more thing, add this line in red to your getRecords() call: 

// load records from 'calendar'
list($calendarRecords, $calendarMetaData) = getRecords(array(
  'tableName' => 'calendar',
  'orderBy' => '', // use default database order
  'loadUploads' => true,
  'allowSearch' => false,
  'debugSql' => true,
));

Then copy and paste the output into the forum.  That will show us the exact query that is being sent to MySQL.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com