Displaying records by category

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 9, 2013   (RSS)

By rui - February 8, 2013

Hi from Portugal,

I´m doing a newspapper website with categorys.
I have a normal Multi Category with:
- Title
- Text
- Photo
- Category - list type  (Sport - International - Regional - European)

In the home page i dont have a problem, i´m showing all the categories, the problem is when i have to show only 1 categories.

For ex: I create a new file (sport.php) and i want to show all records that have the item "sport" selected.

 // load records from 'news'
  list($newsRecords, $newsMetaData) = getRecords(array(
    'tableName'   => 'news',
    'loadUploads' => true,
    'allowSearch' => false,
  ));

What i need is some type of ('where' => category=sport, )... sorry my programing skills are terrible.

Can someone help me??

tks
Rui