Downloads in Pilot Center

Hey guys,

Im trying to have some kind of a document center in my pilot center, So I created a category in the downloads called Documents,

Now I want to display only that Category in the Profile_main.tpl I used <?php MainController::Run(‘Downloads’, ‘index’); ?> and it displays all the downloads.

How would I accomplish this could I use an IF statement?

Thanks,

Chad C.

If you know the category ID, you can do this in the template:

Template::Set('allcategories', array(DownloadData::getAsset($id)));
Template::Show('downloads_list.tpl');

OR the category name:

Template::Set('allcategories', array(DownloadData::findCategory($categoryname)));
Template::Show('downloads_list.tpl');

And it’ll show that list. Just change the ID or the category name

If you know the category ID, you can do this in the template:

Template::Set(‘allcategories’, array(DownloadData::getAsset($id)));
Template::Show(‘downloads_list.tpl’);

OR the category name:

Template::Set(‘allcategories’, array(DownloadData::findCategory($categoryname)));
Template::Show(‘downloads_list.tpl’);

And it’ll show that list. Just change the ID or the category name

Thanks