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 &lt;span macro='tiddler
> Related'&gt;&lt;/span&gt;
> and in the Related tiddler, I have +++![Related tiddlers
> »]&lt;&lt;relatedTiddlers here&gt;&gt;...===
> 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:
> &lt;script&gt;
> if (tiddler.tags.contains("article") && !
> tiddler.tags.contains("contenttemplate"))
> {return "+++![Related tiddlers »]&lt;&lt;relatedTiddlers
> here&gt;&gt;...===";}
> &lt;/script&gt;
>
> 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