This breaks the table - but shows images for the Urls:
<script>
var out="";
var txt=store.getTiddlerText("CoverList","Get urls from the
Coverlist");
var items=txt.split("\n----\n");
if (!items[1]) items=txt.split("\n");
for (var i=0; i<items.length; i++) {
if (i>0 && i/2==Math.floor(i/2)) out += "]]|[img[\n"; // start a new
row
out += "]]|[img["+items[i];// add item to row
}out += "]]|[img[\n"; // end last row return out; </script> I'd like the images to link to the images as well: [img[Url][Url]] Is this possible? regards Måns Mårtensson On 8 Mar., 00:08, Måns <[email protected]> wrote: > Hi TwWizards > > I have this wonderfull script from Eric: > <script> > var out=""; > var txt=store.getTiddlerText("CoverList","Get Urls from the > Coverlist"); > var items=txt.split("\n----\n"); > if (!items[1]) items=txt.split("\n"); > for (var i=0; i<items.length; i++) { > if (i>0 && i/5==Math.floor(i/5)) out += "|\n"; // start a new row > out += "|"+items[i];// add item to row > > } > > out += "|\n"; // end last row > return out; > </script> > > I have tried all sorts of combinations to get the image markup to > surround items(Urls) fetched from the CoverList. > I did: out += "|[img["+items[i];// add item to row > and: out += "]]|\n"; > But it only worked with one item, as soon as I added items to the > CoverList the table was broken.. > > regards Måns Mårtensson -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

