data-tiddler transclusion and backlinks

55 views
Skip to first unread message

Pascal Piallat

unread,
Jan 6, 2020, 6:16:58 AM1/6/20
to TiddlyWiki
Hello ,

I have a data-tiddler called posologies in the form of : 

formulaOne : thisProduct : 3, thatProduct : 12, anotherProduct : 6
formulaTwo
: thisProduct : 8, aProduct : 4, strangeProduct : 3, smallProduct : 3
formulaThree
: anotherProduct : 9, thisProduct : 6
...


it references posologies for chinese medicine formulas. When I write a formula tiddler, I transclude the posology via this template :

<ul>
<$list filter="[[posologies]getindex<currentTiddler>split[,]]" variable=item ><li>
<<item>><br></li>
</$list>
</ul>

 
In individual products tiddlers, I use a template to reference the backlinks by category (user field) using the tab widget :

tiddler refTabsTemplate :

<$set name="nombreRef" filter="[all[current]backlinks[]count[]]">
<$reveal type="nomatch" text="0" default=<<nombreRef>> >

<div class="tc-tiddler-info">
<$reveal type="nomatch" state="$:/state/RevealRefs" text="show">

<$button set="$:/state/RevealRefs" setTo="show">Références</$button>

</$reveal>

<$reveal type="match" state="$:/state/RevealRefs" text="show">

<$button set="$:/state/RevealRefs" setTo="hide">Références</$button>

<<tabs "[all[current]backlinks[]each[category]get[category]]" "" "" "" "refTabsContent">>

</$reveal>

</div>

</$reveal>
</$set>

tiddler refTabsContent :

<div class="tc-menu-list-item">

<$list filter="[all[current]backlinks[]category<currentTab>]">
<div class="tc-menu-list-subitem">
<$link to={{!!title}}><$view field="title"/></$link>

</div>
</$list>
</div>


The problem I have now is that when transcluding from the data-tiddler, the backlinks to individual products are not detected.

Is there a workaround, or another (maybe simpler) way to extract data and have the backlinks detected ? 

I keep a backup of the wiki there : https://lepascalou.github.io/   

Thanks !
 
Reply all
Reply to author
Forward
0 new messages