I'm resurrecting this thread because I'm stuck trying to feed the output of
a recursive macro into a filter using wikify. The problem seems to be that
the macro is outputting a formatted list but the filter expects a title
list. I haven't been able to figure out how to solve the problem. The goal
is to display a list of all individuals of a superclass for individuals
that are only linked to subclasses but not the superclass. Here is my code:
\define class_sub()
<$list filter="[is_subclass_of{!!title}]">
<$link><<currentTiddler>></$link>
<$macrocall $name="class_sub">>
</$list>
\end
<$wikify name="all_subclasses" text=<<class_sub>> output=html>
<<list-links filter:"[enlist<all_subclasses>listed[is_individual_of]]">>
</$wikify>
Any help on this would be greatly appreciated.
On Thursday, May 5, 2016 at 5:59:29 PM UTC-7, Majid al-Dosari wrote:
>
> these kinds of things are now pretty much solved with the wikify widget
> https://github.com/Jermolene/TiddlyWiki5/issues/2337
>
> I fired up my tw from source and i now can construct recursive macros to
> generate filters and then have their output (through a wikify) go in a
> filter attribute of whatever widget that uses it.
>
>
> On Wednesday, September 9, 2015 at 3:57:31 PM UTC-4, Linus Johnsson wrote:
>>
>> Dear all,
>>
>> I am working on a project in which I need to be able to get a list of a
>> tiddler's descendants. I use tags to define the relationship in question.
>> To be precise, B is a descendant of A if A=B or B is tagged with a
>> descendant of A.
>>
>> The list should be equal to what you get if you evaluate a filter that
>> goes something like this:
>>
>> [all[current]tag[concept]] [all[current]tag[concept]tagging[]tag[concept
>> ]] [all[current]tag[concept]tagging[]tag[concept]tagging[]tag[concept]]
>> ...
>>
>> The problem is of course that my current solution does not allow for
>> arbitrary depth of search, which is what I want.
>>
>> I have been trying to wrap my head around this problem and still can't
>> judge whether or not it's possible to do this without resorting to
>> JavaScript. If it is, I would be overjoyed if anyone would point me in the
>> right direction. If it isn't, I would appreciate help even more since I am
>> not (yet) proficient in JavaScript.
>>
>>
>> Many thanks in advance,
>> Linus
>>
>
--
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/490ba6a5-ee76-4737-b212-2967dfbe5c10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.