Here is another way

In your tiddler "My Tiddler" tagged $:/tags/ViewTemplate
try this

<$list filter="[all[current]!title[My Tiddler]]" variable=nul>
This is my tiddler on view template only
</$list>

<$list filter="[all[current]title[My Tiddler]]" variable=nul>
This is "My Tiddler" itself
</$list>

But a sorter method if your templates are only ever system tiddlers, and 
you want the view template to show only on regular tiddlers and not on 
itself
$:/myViewTemplate
<$list filter="[all[current]!is[system]]" variable=nul>
This is $:/myViewTemplate on view template only for non system tiddlers
</$list>
<$list filter="[all[current]is[system]!title[$:/myViewTemplate]]" 
variable=nul>
This is "$:/myViewTemplate"  is system but not myself
</$list><$list filter="[all[current]is[system]]" variable=nul>
All system tiddler including myself $:/myViewTemplate
</$list>
The trick is the hardcoded tiddler title and using variable=nul to not 
change the currentTiddler for the content you display
Use whichever set of list statements that suit your need

One caveat if you tag this same tiddler to appear in the sidebar and on 
other parts of the page the currentTiddler will not be returned and this 
test will will fail. 

Regards
Tony

On Tuesday, January 28, 2020 at 3:12:18 AM UTC+11, Graham wrote:
>
> Hello I have a bit of a problem that I hope someone will be able to help 
> me with.
>
> *What I want to do:*
>
> I have a template (titled "TemplateTiddler") tagged with 
> "$:/tags/ViewTemplate" that adds a template to selected tiddlers.
>
> I want to display some text *only* within TemplateTiddler that reminds me 
> what my particular template is for/how it works etc.
>
> *What I have tried:*
>
> I added the following list widget:
>
> <$list filter="[TemplateTiddler]">
> Here is some text that I want to display in TemplateTiddler.
> </$list>
>
> The problem is that the text gets displayed twice. Presumably it is 
> displaying the original text in the filter *and* transcluding it via the 
> "$:/tags/ViewTemplate" tag.
>
> Is there a method for getting it to display only once?
>
> Thanks in advance for your help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a10dbbd9-8d9a-41e5-968c-21571c6f253a%40googlegroups.com.

Reply via email to