Please ignore point "2", I had a typo :) now works as expected. On Thursday, June 6, 2013 3:17:40 PM UTC+10, cflow wrote: > > Two errors I am seeing that may/may-not be resolvable. > > 1. The EmbedTiddlers tiddler shows no content except "$1" formatted as a > h1. > 2. The result of using the EmbedTiddlers in sub pages does not show in the > top level EmbedTiddlers use. > To clarify, I have an Appendix tiddler (tagged with "doc") and for each > tiddler I want in the Appendix I use the tag "appendix". In the Appendix > tiddler I use the EmbedTiddlers transclusion to display all items tagged > "appendix". This is successful. > In my PrintVersion tiddler I use the EmbedTiddlers transclusion to display > all items tagged "doc" and when I look at the Appendix displayed it has no > data displayed except the heading. > > I could just stack the document build with EmbedTiddlers for "doc" then > EmbedTiddlers for "appendix" if that's the simplest way, however I may want > to do sub-documents in the overall document and tracking down the missing > sub-docs wouldn't be easy. > > 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.

