On May 13, 8:44 pm, Tobias Beer <[email protected]> wrote:
> Would someone a little bit more core-literate be able to tell me if the
> critical part for doing this simply is to pass a tiddler reference to the
> wikify function as is done in the list macro like so...
>
> wikify(template, li, null, tiddler);
In the case of <<list>> plugin ... yes
The default list macro template is: "<<view title link>>"
The <<view>> macro needs the tiddler context (object) to work with.

In the case of your plugin, imo it would be a bit trickier.
If I'm right, you create a shadow tiddler and wikify it afterwards. So
your template is the shadow tiddler, which is hardcoded atm.
Imo you'd need to resolve the "user template" within your shadow
tiddler creation.

> I guess it would likewise make sense to also make use of the core's filter
> mechanism.
If you do so, it would be wise to be MatchTagsPlugin compatible.
It extends the <<list filter [tag[]]>> mechanism to be able to use
AND, OR, NOT ... You may want to use it ... and ... You shouldn't
break it.

> Does anyone know in detail what the list filter mechanism is capable of
> doing and whether there are enhanced filtering abilities in TiddlySpace?
Default TiddlySpace expands it with the "is" public/private filter.
Open the source and search for "config.filters".
See the core Filters.js [2] and Macros.js files for more info.

If you have a look at my NoCaseListPlugin [1] you can see, how to
extend the list macro with your own "filter"  eg: <<list noCase>>
which just addes a "noCase" extension.

hope that helps
-mario

[1] http://apm-plugins.tiddlyspot.com/#NoCaseListPlugin
[2] https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Filters.js

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to