Hi w > I would only like to display this tiddler in tiddlers tagged with a certain > and at the same time not with another tag HideWhenPlugin does a good job in that respect http://mptw.tiddlyspot.com/#HideWhenPlugin Eric's TaggedTemplateTweak is also very good, however you will need to create dedicated ViewTemplates.
Regards Måns Mårtensson On 25 Mar., 08:08, whatever <[email protected]> wrote: > Hi! > In my wiki, I have in the ViewTemplate <span macro='tiddler > Related'></span> > and in the Related tiddler, I have +++![Related tiddlers > »]<<relatedTiddlers here>>...=== > which displays the Related tiddler in all tiddlers. However, I would > only like to display this tiddler in tiddlers tagged with a certain > and at the same time not with another tag. My JavaScript is fuzzy at > best. I've tried putting the following in the Related tiddler: > <script> > if (tiddler.tags.contains("article") && ! > tiddler.tags.contains("contenttemplate")) > {return "+++![Related tiddlers »]<<relatedTiddlers > here>>...===";} > </script> > > Basically, if the tiddler contains the "article" tag but not the > "contenttemplate" tag, the Related function should be displayed. > > w -- 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.

