Yes this is possible using javascript ^^
first, set a viariable inside the head
<script type="text/javascript" language="javascript">
var count="0";
</script
the next thing to do is to put some script tags around the %list% thing.
<script type="text/javascript">
%list%
count++;
var fillEmpty = "<td width =\"25%\"> </td>";
document.write (count=='2'?fillEmpty+fillEmpty+fillEmpty:'');
document.write (count=='3'?fillEmpty+fillEmpty:'');
document.write (count=='4'?fillEmpty:'');
</script>
and the final step, is to put some <Script> inside the [file] and [folder] sections..
This is an example for the [file] section of your template..
count++; count=='5'?count='1':'';
document.write (count=='1'?'<tr height="128">':'');
</script>
<td width="25%">
<table width="60">
<tr>
<td align="center">
<a href="%item-url%"><img border="0" src="/~img_file" width="32" height="32"></a></td>
</tr>
<tr>
<td align="center"> <a href="%item-url%">%item-name%</a></td>
</tr>
</table>
</td>
<script type="text/javascript">
document.write(count=='4'?'</tr>':'');
What this script actually does:It creates an image gallery that looks something like this:
____ ____ ____ ____ | | | | | | | | |____| |____| |____| |____|
____ ____ ____ ____ | | | | | | | | |____| |____| |____| |____|
____ ____ ____ ____ | | | | | | | | |____| |____| |____| |____|
____ ____ ____ ____ | | | | | | | | |____| |____| |____| |____|
| |
every file adds 1 point to the counter. when the counter reaches 4, it basically resets itself and creates a new row.
there is, however >_<, 1 negative thing about this script; If the user has javascript disabled, it just shows one big row just like your screenshot. (so the users would have to scroll to the right)