I am using this redirect template tagged *$:/tags/ViewTemplate*...

$:/.tb/ui/ViewTemplate/redirected-tb5 @ tb5 
<http://tb5.tiddlyspot.com/#%24%3A%2F.tb%2Fui%2FViewTemplate%2Fredirected-tb5>

...to show a conditional message based on whether or not there is an entry 
for the current tiddler in this JSON DataTiddler:

$:/.tb/config/redirected-tb5 @ tb5 
<http://tb5.tiddlyspot.com/#%24%3A%2F.tb%2Fconfig%2Fredirected-tb5>

However, I don't want the entire message to be contained in the 
DataTiddler, but rather move the common bits ("moved to ") into the 
template, yet still be able to transclude the contents of that DataTiddler 
index.

At that point, I need a *$reveal* or *$list filter="[all[current]...]"* to 
check if that index is defined for the current tiddler.
This is where I'm stuck, as I always get the "moved to " message...

\define getIndex() {{$:/.tb/config/Redirected-tb5##$(currentTiddler)$}}
<$reveal type="nomatch" default="" text=<<redirect>>>
<div class="redirected">
moved to <$transclude tiddler="$:/.tb/config/Redirected-tb5" index=<<
currentTiddler>>/>
</div>
</$reveal>

How do I conditionally check if an index is defined?

Best wishes, Tobias.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to