Thanks! That worked. You’ve been such a great help, I appreciate it.
As is usually the way, now that that problem is out of the way, a new one has appeared. It seems that for this ditto call, I am unable to use a second similar ditto call on the page or call a string of comma seperated document IDs as I can when calling articles.
This is what the output looks like when one document (wb link with some custom TVs) is called (remember it’s in development, unoptimised code so it’s messy):
<div class="filecontianer"><table width="560px" cellpadding="0" cellspacing="0" border="0">
<tr><td width="35px"><p class="bluebold" style="margin:0;">Type</p></td><td width="435px"><p class="bluebold" style="margin:0;">Filename</p></td><td width="70px" align="center"><p class="bluebold" style="margin:0; text-align:center;">Filesize</p></td></tr>
<tr style="margin:0; padding:0;"><td width="35px" align="center" style="margin:0;"><img src="images/icon_word.gif" alt="Microsoft Word" title="Microsoft Word" /></td>
<td width="435px" style="margin:0;"><p style="margin:0; padding:0;"><a href="/documents/events/photorules.doc">photorules</a></p></td>
<td width="70px" style="margin:0;"><p style="margin:0 15px 0 0; padding:0; text-align:right;">51.7 kB</p></td></tr>
<tr><td colspan="3" style="margin:0 15px 0 0; padding:0;"><p style="margin:0; padding:0 0 0 38px;">The Contest Rules and Entry Agreement document for the 2007 AIP photography contest.</p></td></tr>
</table>
</div>
But when I use this ditto call:
[[Ditto? &documents=`104,107` &display=`all` &sortBy=`createdon` &sortDir=`DESC` &tpl=`DittoFileTemplate`]]
I get the following output:
<div class="filecontianer"><table width="560px" cellpadding="0" cellspacing="0" border="0">
<tr><td width="35px"><p class="bluebold" style="margin:0;">Type</p></td><td width="435px"><p class="bluebold" style="margin:0;">Filename</p></td><td width="70px" align="center"><p class="bluebold" style="margin:0; text-align:center;">Filesize</p></td></tr>
<tr style="margin:0; padding:0;"><td width="35px" align="center" style="margin:0;"><img src="images/icon_pdf.gif" alt="Adobe PDF" title="Adobe PDF" /></td>
<td width="435px" style="margin:0;"><p style="margin:0; padding:0;"><a href="/documents/events/stav2008/VCEConf2008_Regform_Generic.pdf">VCEConf2008_Regform_Generic</a></p></td>
<td width="70px" style="margin:0;"><p style="margin:0 15px 0 0; padding:0; text-align:right;">80.7 kB</p></td></tr>
<tr><td colspan="3" style="margin:0 15px 0 0; padding:0;"><p style="margin:0; padding:0 0 0 38px;"></p></td></tr>1
<tr><td colspan="3" style="margin:0 15px 0 0; padding:0;"><p style="margin:0; padding:0 0 0 38px;">The Contest Rules and Entry Agreement document for the 2007 AIP photography contest.</p></td></tr>
</table>
A cesond dittle call on the same page to a different ID displays this:
<div class="filecontianer"><table width="560px" cellpadding="0" cellspacing="0" border="0">
<tr><td width="35px"><p class="bluebold" style="margin:0;">Type</p></td><td width="435px"><p class="bluebold" style="margin:0;">Filename</p></td><td width="70px" align="center"><p class="bluebold" style="margin:0; text-align:center;">Filesize</p></td></tr>
</table>
</div>
The second document in the string is displayed, rather than the first. The line generated by the filedetails is shown without any output from the snipped, with an odd trailing "1" and ditto doesn’t display the file’s description (called from a custom template variable).
This is getting a bit complicated, but we’re ALMOST there. If I can get an arbitrary series of documents showing correctly as a list via ditto, then I’ll be done!
Thanks again in advance.