Displaying categories via a list field

4 posts by 1 authors in: Forums > CMS Builder
Last Post: May 12, 2009   (RSS)

Re: [sidcam] Displaying categories via a list field

By sidcam - May 10, 2009

Ok, just figured out I need to put "?category=headline" etc in the URL. Wasn't expecting it to be that easy...

Sid

Re: [sidcam] Displaying categories via a list field

By sidcam - May 11, 2009

In the example of the last emails, my main page needs to display 3 titles of each news category. i.e.

list($news_storiesRecords, $news_storiesMetaData) = getRecords(array(
'tableName' => 'news_stories',
'where' => 'Category = "Headline"',
'limit' => '3',
));

list($news_storiesRecords, $news_storiesMetaData) = getRecords(array(
'tableName' => 'news_stories',
'where' => 'Category = "Business"',
'limit' => '3',
));

etc, etc.

Will I really need to have table calls for each category at the top of the page and if so, what do I need to put in my code within the page so it knows what category it should be using?

Re: [sidcam] Displaying categories via a list field

By sidcam - May 12, 2009

And I finally found this answer on the Forum too. Didn't realize that the instance name below didn't have to be exactly the same as the table name.

list($instance_nameRecords, $instance_nameMetaData) = getRecords(array(