# Downloads in Pilot Center

**URL:** <https://forum.phpvms.net/t/downloads-in-pilot-center/2277>\
**Category:** Code Snippets\
**Created:** [March 24, 2010, 7:53am UTC](https://forum.phpvms.net/t/downloads-in-pilot-center/2277 "2010-03-24T07:53:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![piper338](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/p/e56c9b/32.png) [@piper338](https://forum.phpvms.net/u/piper338)\
**Post date:** [March 24, 2010, 7:53am UTC](https://forum.phpvms.net/t/downloads-in-pilot-center/2277/1 "2010-03-24T07:53:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [March 24, 2010, 3:07pm UTC](https://forum.phpvms.net/t/downloads-in-pilot-center/2277/2 "2010-03-24T15:07:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![piper338](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/p/e56c9b/32.png) [@piper338](https://forum.phpvms.net/u/piper338)\
**Post date:** [March 24, 2010, 4:23pm UTC](https://forum.phpvms.net/t/downloads-in-pilot-center/2277/3 "2010-03-24T16:23:48Z")

</div>

> 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
