Hi All
Back in Oct 13 I got some help in working with SaveAs plugin. Eric
suggested this code -
<<saveAs label:file {{
var fn='archive.html';
for (var i=0;i<tiddler.tags.length;i++)
if (tiddler.tags[i].indexOf('.html')!=-1)
{ fn=tiddler.tags[i]; break; }
'filename:'+fn;
}} quiet here>>
if a tag with ".html" is not found, it defaults to 'archive.html'
..which sets the name of the file to be saved by first seeking a tag
with a "__.html" value. The only problem is that it requires I only
have one tag in the tiddler. Which can be a problem.
Can this code be changed so thats its using a custom field value (say
field:datafile) instead of a tag value?
Thanks
Skye
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---