I like the function of this, but I am noticing that I may need an exclusion tag (reverting to default display) when using with QuickEditPackage http://www.strm.us/tw/testwiki.htm
Regretfully I am also playing with my themes - so you may need to go to SystemTheme, and select any theme other than default, then edit(view) a tiddler to see what I am talking about. Thoughts? Mike On Jun 11, 4:22 am, Claudio Li <[email protected]> wrote: > Thanks!! > > On 11 June 2010 13:03, Mike <[email protected]> wrote: > > > Example: > >http://www.strm.us/tw/testwiki.htm#TransclusionDoesNotExist > > > Site w/ Theme > >http://www.strm.us/tw/testwiki.htm#chkRandomTheme:true > > > HTH, > > > Mike > > > On Jun 10, 9:49 pm, Mike <[email protected]> wrote: > > > watch the google wrapping in the middle - the config, does not exist > > > lines should be on one line before the else.. .. > > > > HTH, > > > Mike > > > > On Jun 10, 8:58 pm, Claudio Li <[email protected]> wrote: > > > > > Hi Vincenzo, > > > > > I did the same but was unable to load the plugin... > > > > > Title=zzTransclude Tag=systemConfig > > > > ----- > > > > (function(){ > > > > > var macro = config.macros.tiddler; > > > > ...... > > > > > })(); > > > > > ----- > > > > > How did you do it? > > > > > On 8 June 2010 17:48, vince <[email protected]> wrote: > > > > > > It is exactly what I needed, and it is working wonderfully!! > > > > > (I have put it in a new tiddler with a name I liked, tagged as > > > > > systemConfig, > > > > > saved and reloaded) > > > > > > Thank you very much!! > > > > > > Vincenzo > > > > > > On 7 Giu, 19:13, colmjude <[email protected]> wrote: > > > > > > > if I use the tiddler macro for transclusion of a non existing > > tiddler, > > > > > > > like: > > > > > > > <<tiddler nonExistingTiddler>> > > > > > > > nothing is visualized. > > > > > > > > I would like to have some kind of highlight or error message or > > > > > > > placeholder: > > > > > > > this could be useful to detect mispelling errors, and also as a > > memo > > > > > > > for > > > > > > > contents not included yet. > > > > > > > One way to achieve this is the override the transclusion method so > > > > > > that instead of displaying nothing it displays a msg of your > > choice. > > > > > > I have written a short plugin that achieves this. > > > > > > > (function(){ > > > > > > > var macro = config.macros.tiddler; > > > > > > > var _transclude = macro.transclude; > > > > > > macro.transclude = function(wrapper, tiddlerName, args){ > > > > > > // check to see if empty > > > > > > var text = store.getTiddlerText(tiddlerName); > > > > > > if(!text){ > > > > > > config.macros.tiddler.renderText(wrapper,tiddlerName+" does not > > > > > > exist",tiddlerName,params); > > > > > > } else { > > > > > > // call original > > > > > > _transclude(wrapper, tiddlerName, args); > > > > > > } > > > > > > > }; > > > > > > > })(); > > > > > > > You can change 'tiddlerName+" does not exist"' to any msg you want > > to > > > > > > display. > > > > > > > Hope that is what you were looking for... > > > > > > > Colm > > > > > > -- > > > > > 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]<tiddlywiki%[email protected]> > > <tiddlywiki%2bunsubscr...@googlegrou ps.com> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/tiddlywiki?hl=en. > > > -- > > 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]<tiddlywiki%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/tiddlywiki?hl=en. -- 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.

