Hi!
When I used my script directly in a tiddler tagged with article, it
worked, but when I put it in Related tiddler, it didn't work, until I
tagged it as article. It seems my script actually works, but only
directly in a tiddler. If the script wasn't visible in the Related
tiddler, it wasn't visible in any others, but if it was visible, it
was visible in all tiddlers.
I also tried the HideWhenPlugin, but I only got the contents of the
tiddler. For example, when I used my script, I got nothing, unless the
Related tiddler was tagged as article. When I used just +++![Related
tiddlers »]<<relatedTiddlers here>>...===, the tiddler content was
displayed verbatim, instead of the Related function on a functioning
slider.

w

On Mar 25, 3:18 pm, Måns <[email protected]> wrote:
> 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 
> respecthttp://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