NokAndrea | 16 May, 2011 18:22
A few months ago we introduced the ability to distribute files from your project space as releases, allowing owners to upload file releases and mark them as "Featured" to appear in the summary page.
As part of the module there are also a couple of macros that can be used in wiki pages to show a table with a lot of inforamtion about each file. This was very successful, but the tables came by default with a lot of information, sometimes even too much and as a result it did not fit the summary page. Given the wide use across the site we decided to add a couple new macros that allow project members to customise what is displayed.
The first macro is called CustomListDownloads and accepts a list of column names as parameter. The macro will only display the columns that match the list provided and in the order provided. For example typing [[CustomListDownloads(id,file,time,count,author)]] in any wiki page will list all the packages, but only show the ID, filename, date of upload, number of downloads and user. This is how it looks:

The same macro also allows to specify the names of each column, this is for example ideal to for localisation. [[CustomListDownloads(id,file=filename,time=added,count=dls count,author=user who applied)]] will generate this:

We created another macro that works exactly like CustomListDownloads but only shows Featured downloads, it's called CustomFeaturedDownloads and supports the exact same parameters.
As a final touch we changed the style of the table so that the width would adapt to the page width. This means that you can use these tables in your summary pages and the table will not overlap the information on the right. Of course you should make sure that the number of columns and total width fits the available space.

You can read a brief documentation of the macros in the Projects' wiki.
PS: we also changed the default order, showing the latest uploaded packages at the top.
Comments