Thanks for the lightning response Eric :)
Macro failed, but I found the error. The example you supplied was missing a
single quote before the "<<tiddler":
Supplied:
out+='!!'+tids[i]+'\n'+<<tiddler [['+tids[i]+']]>\>';
Solution (in red):
out+='!!'+tids[i]+'\n'+*'*<<tiddler [['+tids[i]+']]>\>';
and I added some minor tweaks of my own to help with spacing :)
out+='!!'+tids[i]+'\n'+'<<tiddler [['+tids[i]+']]>\>\n\n';
Works a treat.
I am currently writing a report and this gives me the ability to work in
the TW, tag items for the printed version "doc", then create a
"PrintVersion" tiddler with "<<tiddler EmbedTiddlers with: =doc>>".
Any idea how I can mod the javascript so that I can wrap the title in a
class for independent formatting?
I tried (without success):
out+='{{docName{'+tids[i]+'}}}\n'+'<<tiddler [['+tids[i]+']]>\>\n\n';
On Thursday, June 6, 2013 1:41:20 PM UTC+10, Eric Shulman wrote:
>
> On Jun 5, 6:54 pm, cflow <[email protected]> wrote:
> > Hi Eric, for me, your solution is pulling the content of the tiddlers
> > tagged "doc" but not the headings. Is there a simple solution as I think
> > the EmbedTiddlers method is great.
>
> EmbedTiddlers is a "transclusion" that contains javascript code. Find
> this line of code within EmbedTiddlers:
>
> for (var i=0; i<tids.length; i++)
> out+='<<tiddler [['+tids[i]+']]>\>';
>
> This is the main "workhorse" of the script. The "out+=..." portion
> appends output for ONE matched tiddler at a time. Currently, the
> default output looks like:
> <<tiddler [[NameOfTiddler]]>>
> You can change the output in any way you like. For your purposes, you
> want output that looks something like:
> !!NameOfTiddler
> <<tiddler [[NameOfTiddler]]>>
>
> To do this, you can change the script output code to read:
> out+='!!'+tids[i]+'\n'+<<tiddler [['+tids[i]+']]>\>';
> (i.e., adding "!!NameOfTiddler\n" to the front of the output)
>
> That should do it.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
>
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
> http://www.TiddlyTools.com/#Donations
>
> Professional TiddlyWiki Consulting Services...
> Analysis, Design, and Custom Solutions:
> http://www.TiddlyTools.com/#Contact
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.