one more question <script> var tag = tiddler.title ; var tags = store.getTiddler(tag).tags ; if (tags.contains('systemConfig')) wikify("[x(systemConfigDisable){}{}{var id=story.findContainingTiddler(place).getAttribute('tiddler');}] [[Disable|systemConfigDisable]]", place); </script>
works - except in the case where a shadow tiddler is shown "TypeError: store.getTiddler(tag) is null" Any thoughts? Mike On Mar 1, 2:38 pm, Mike <eris...@gmail.com> wrote: > arghhh - should have caught that :( > Luckily this is not my day job ! > > Thanks for the help, > > Mike > > On Feb 28, 6:03 pm, "Mark S." <throa...@yahoo.com> wrote: > > > You always have to put parenthesis around the conditional: > > > if (tags.contains('systemConfig')) wikify("yep",place) ; > > > HTH > > Mark > > > On Mar 1, 7:30 am, Mike <eris...@gmail.com> wrote: > > > > Can't get ** if tags.contains('systemConfig'); ** line to work, I am > > > sure I have it wrong, or I am going about it the wrong way (do I need > > > a loop for that?) > > > > <script> > > > var tag = tiddler.title ; > > > var tags = store.getTiddler(tag).tags ; > > > // if tags.contains('systemConfig'); > > > wikify("[x(systemConfigDisable){}{}{var > > > id=story.findContainingTiddler(place).getAttribute('tiddler');}] > > > [[Disable|systemConfigDisable]]", place); > > > </script> > > > > **gg wrapping final wikify is (1) line > > > > I appreciate any input, > > > > Mike -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.