Edipo, here is what I use for my site. (
http://www.muddydogpaws.com/notebook/file-download-snippet)
Here is the snippet call:
[!FileDownload?getFolder=`[*filespath*]` &chkDesc=`fileinfo` &tplList=`FileDownload` &downloadCount=`1` &userSort=`type` &sortOrder=`desc` &imgLocat=`/assets/images/filetype`!]
Here is the chunk I use to format each download:
<div class='downloads'>
<h2>Downloads</h2>
<hr>
<div class='file'>
[+image+] <a href="[+link+]">[+filename+]</a>[+description+]<br/><span>Size: [+sizetext+] | Date: [+date+]<br/>Downloads: [+counter+]</span>
</div>
<hr>
</div>
And here is the css I use to format it:
.downloads{
position: relative;
width: 232px;
overflow: hidden;
margin: 8px auto;
border: 1px solid #ccc;
background-color:#fff;
}
.file{
margin-left: 5px;
margin-bottom:8px;
}
.file span {
font-size: 80%;
}
.file a {
font-weight: bold;
}
And thats it.
Here is another example using a table layout:
Here is the snippet call:
[!FileDownload?getFolder=`assets/coda/sitefile` &tplList=`FileManagement` &useHlt=`1` &evenClass=`evenrow` &oddClass=`oddrow` &imgLocat=`assets/templates/coda/images/filetype` &deleteGroups=`admin` &downloadCount=`1`!]
Here is the css to style it:
div.downloads { border: solid 1px #ccc; padding: 10px 5px}
table.tbldwn { width:100%; border: solid 1px #ccc; }
table.tbldwn td,tr {padding: 5px 0px 5px 10px;}
tr.oddrow { background-color: #eee; }
tr.evenrow { background-color: #fff;}
tr.dwnhead { background-color: #557cfd; color: #fff; text-align: center; font-size: 120%}
tr.descrip { border-bottom: 1px dotted #ccc;}
Let me know if that helps or you need more info.
Quote from: rthrash at Apr 27, 2006, 02:24 PM
FYI, i fixed the link in your first post to your site Kyle. Great work my man!
Ryan, thanks for fixing that, I didnt even notice it was wrong:)