Hi Eric
Thanks for weighing in!
Your reply solves that problem and allows me to present another one in the
same vein :D
Please look at the code below. In this, the get-extract() should called if
the description field is absent. How could this be made to work?
---
\define get_description()
<$text text={{{
[<currentTiddler>get[description]else<get-extract<currentTiddler>>] }}} />
\end
\define get-extract(title)
<$wikify name="output" text={{$title$}} mode="block" output="text">
<$text text={{{ [<output>split[]first[500]join[]] }}}/>
</$wikify>
\end
----
Cheers,
Adithya
On Saturday, August 15, 2020 at 7:18:33 PM UTC+5:30 Eric Shulman wrote:
> On Saturday, August 15, 2020 at 6:38:47 AM UTC-7, Adithya B M wrote:
>>
>> This solves the problem halfway. This seems to print the title as a link
>> to the <currentTiddler>.
>
>
> Use the <$text> widget, like this:
> <$text text={{{ [all[current]get[name]else{!!title}] }}} />
>
> note also that you can use the currentTiddler variable in place of
> all[current] and {!!title}, like this:
> <$text text={{{ [<currentTiddler>get[name]else<currentTiddler>] }}} />
>
> -e
>
>
>
--
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/97891260-2bd5-49c0-bfe4-20eaabac922cn%40googlegroups.com.