Hi Tobias

> how would I make redirect values clickable links without having to use
square brackets within the JSON?

Try this:

\define handleRedirects()
<$reveal state="$:/.tb/config/redirected-tb5##$(currentTiddler)$"
type="nomatch" text="">
<div class="redirected">
moved to <$link
to={{$:/.tb/config/redirected-tb5##$(currentTiddler)$}}><$view
tiddler="$:/.tb/config/redirected-tb5" index=<<currentTiddler>>/></$link>
</div>
</$reveal>
\end
<<handleRedirects>>

Best wishes

Jeremy


On Sun, Dec 7, 2014 at 10:31 PM, Tobias Beer <[email protected]> wrote:

> Hi Jeremy,
>
>
>> I think your code can be simplified a little. The problem is the way that
>> you're using the trick of not using a state tiddler with the reveal widget.
>> In this particular case, you are actually addressing a state tiddler, so
>> it's better to use the intended mechanism.
>>
>
> Didn't think about states as being text-references. Very elegant, thanks
> a lot!
>
> Also, although I think I won't be doing that... however, having tried
> different variants for about half an hour... how would I make redirect
> values clickable links without having to use square brackets within the
> JSON?
>
> testable permaview @ tb5
> <http://tb5.tiddlyspot.com/#:%5B%5BRedirecting%20Dead%20Links%5D%5D%20%24%3A%2F.tb%2Fui%2FViewTemplate%2Fredirected-tb5%20%24%3A%2F.tb%2Fconfig%2Fredirected-tb5>
>
> Best wishes, Tobias.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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