On Jun 5, 6:54 pm, cflow <
m...@tewierik.com.au> 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"...