Hi everybody and first of all thanks for all the great stuff done around tiddlywiki.
I’m trying to adapt kookma’s node-explorer to suit my need, i.e. displaying all tiddler that share the same field and value of the current tiddler. Example, the current Tiddler has the field ‘jd’ with the value ‘39.02’ and I want to display all tiddlers with this field and the same value in the node-explorer.
I modify $:/plugins/kookma/thinkup/macros/node-explorer
as is
\define text-pattern-transclude(){{$(currentTiddler)$.*}}
\define jd-pattern-transclude(){{$(currentTiddler)$!!jd}}
\define linksFilter()[<currentTiddler>!is[system]links[]]
\define backlinksFilter()[<currentTiddler>!is[system]backlinks[]]
\define tagsFilter()[<currentTiddler>!is[system]tagging[]]
\define transclusionFilter()[regexp:text<text-pattern-transclude>]
\define jdFilter()[<currentTiddler>field:jd<jd-pattern-transclude>]
<$set filter="[<tidNodeExplorerConfig>getindex[links]match[yes]then<linksFilter>][<tidNodeExplorerConfig>getindex[backlinks]match[yes]then<backlinksFilter>][<tidNodeExplorerConfig>getindex[tagging]match[yes]then<tagsFilter>][<tidNodeExplorerConfig>getindex[transclusion]match[yes]then<transclusionFilter>][<jdFilter>]"name=mainfilter>
!! Display for debug purpose
Links Filter: <<linksFilter>>
text-pattern-transclude: <<text-pattern-transclude>>
transclusionFilter: <<transclusionFilter>>
jd-pattern-transclude: <<jd-pattern-transclude>>
jdFilter: <<jdFilter>>
<$list filter="[subfilter<mainfilter>count[]compare:number:gteq[1]]"variable=null>
{{||$:/plugins/kookma/thinkup/ui/node-explorer}}
</$list>
And I obtain the follwing result (transclusionFilter (from original) and jdFilter(my modification) didn’t work : nothing is returned.
Links Filter: [!is[system]links[]]
text-pattern-transclude: Mytiddler.*
transclusionFilter: [regexp:text]
jd-pattern-transclude: 39.02
jdFilter: [field:jd]
If I force jdFilter with [field:jd[39.02]] and transclusionFilter with [regexp:text[Mytiddler.*]] it works as expected.
Any Idea ??
Thanks