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.

Reply via email to