Another code pattern (or design approach) for your perusal

59 views
Skip to first unread message

Charlie Veniot

unread,
Mar 8, 2021, 10:07:18 PM3/8/21
to TiddlyWiki
I figure, once some retrieval of tiddler info via filters works, then wrap that well-working with whatever to customize the resulting content for whatever purposes.

Please find attached the related code as a PDF, highlighting the important bits.  If you want to dig into the code itself, find the related Tiddler in my Tifoist project.

My latest bit of code is about "configuring" "display options":
Screenshot 2021-03-08 at 10.38.45 PM.png

A little bit of the code pasted below to entice you to delve into the details???

Cheers !

<fieldset>
<legend>Display Options</legend>
<$checkbox tiddler=<<DataTid>> index="opt_show_verb_fact" checked="yes" unchecked="no" default="yes"> Verbalized Fact</$checkbox><br>
<$checkbox tiddler=<<DataTid>> index="opt_show_code_fact" checked="yes" unchecked="no" default="yes"> Coded Fact</$checkbox><br>
<$checkbox tiddler=<<DataTid>> index="opt_show_ve_butts" checked="yes" unchecked="no" default="yes"> View and Edit Buttons</$checkbox>
</fieldset>

<$list filter="[<DataTid>getindex[opt_show_verb_fact]!match[no]then<currentTiddler>]">
<td  class="cj_td" style="width:100%;">
//({{ || fLmg}})// <$text text={{{ [<currentTiddler>get[description]else[❓]]}}}/>
<$list filter="[<DataTid>getindex[opt_show_ve_butts]!match[no]then<currentTiddler>]">
<center>
<$button actions=<<ViewFact {{!!title}}>> tooltip="View Fact" class="cj_btn">{{iView}}</$button>
<$button actions=<<EditFact {{!!title}}>> tooltip="Edit Fact" class="cj_btn">{{iEdit}}</$button>
</center>
</$list>
</td>
</$list>

CodedFactsOnly.pdf
AllDetails.pdf
VerbalizedFactsOnly.pdf

Mohammad Rahmani

unread,
Mar 8, 2021, 11:15:04 PM3/8/21
to tiddl...@googlegroups.com
Very informative and useful!
One can learn alot for explained codes!



Best wishes
Mohammad


--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/99f3c458-fcef-475e-8acd-603f1d16e45dn%40googlegroups.com.

Charlie Veniot

unread,
Mar 8, 2021, 11:26:50 PM3/8/21
to TiddlyWiki
Arg.  

About those attachments:  not code but rather various appearances of the viewed tiddler as per related selection of options.

Posts close to bedtime: maybe not a great idea...

Reply all
Reply to author
Forward
0 new messages