You can't change it there -- it has to create sortable list items that can
be worked on by filters.
The obvious solution would be to split the count/origins with the regular
expression string splitter. Alas, there is no such thing, so we would have
to add one. That might be the best path going forward.
But for the moment, if you have a known, limited list of origins, then this
seems to work (replacing the part starting at ! ORIGIN COUNTS):
! ORIGIN COUNTS
<$wikify text="<<get-wikified-counts>> +[nsort[]]" name="filter-counts">
<$list filter=<<filter-counts>> variable="count-origin">
<$list filter="cbm cbm.midline cn8 [[opp motor cortex]] [[pmrf]]" variable=
"origintype">
<$wikify name=filter-for-origin text=
"[title[<<count-origin>>]regexp[-<<origintype>>$]]" >
<$list filter=<<filter-for-origin>> variable=originname>
<$link to=<<origintype>>><<count-origin>> </$link><br/>
</$list>
</$wikify>
</$list>
</$list>
</$wikify>
You can see, the list with the filter="cbm cbm.midline ...." contains the
list of origins. This list could be automatically generated with one more
wrap of the <$wikify> widget -- but for the moment I'm pleading exhaustion
--you know, this code is getting ridiculously complicated. ;-)
-- Mark
On Monday, September 24, 2018 at 5:25:20 PM UTC-7, Dave wrote:
>
> Mark, if you're still around and remember this...
>
> regarding this line:
> \define cat-count-origin() <$text text="[[$(count)$-$(origin)$]]"/>
>
> that outputs plain text. How would I get the origin to be listed as a
> link? I tried
>
> \define cat-count-origin() <$text text="[[$(count)$-[[$(origin)$]]]]"/>
>
> but that didn't work. I also tried \]\] to escape the extra right hand
> brackets, but that didn't work. I also tried {{ and }}, but that didn't
> work either.
>
> Thanks,
> Dave
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/4aeb4c40-12e4-4b78-8041-f3ed5d82ac1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.