Ah, thanks—that helps!
On Monday, March 4, 2013 1:53:15 AM UTC-8, whatever wrote:
>
> Hey!
>
> Some pseudo code:
>
> pass yourTag and myList as macro parameters {
>
> array = [];
> store.getTaggedTiddlers("yourTag")
> for each tiddler {
> getElementById("myList")
> for each list {
> push each LI to array+","
> }
> }
> array.sort()
> array.split()
> for each item in array {
> wikify
> }
> }
>
> Of course, if you want this done on the tiddler that contains the
> actual list, you'll have to add this to a modified ViewTemplate (1).
>
> (1) http://www.TiddlyTools.com/#TaggedTemplateTweak
>
>
>
> w
>
> On 4 mar., 10:04, Adam Sneller <adam%[email protected]>
> wrote:
> > Can anyone tell me how to pass a div from a tiddler, through a macro to
> a
> > plugin? Basically, I have a tiddler that looks like this:
> >
> > *<HTML>
> > <UL id="#myList">
> > <LI></LI>
> > ...
> > <LI></LI>
> > </UL>
> > </HTML>*
> >
> > and I want to pass *#myList* through a macro... something like this??
> >
> > *<<sortList, tidder.getDiv('#myList')>>*
> >
> > to my SortListPlugin:
> >
> > *config.macros.sortList = {}
> > config.macros.sortList.handler = (place, macroName, params, wikifier,
> > paramString, tiddler) {
> >
> > //Sort #myList and send changes back to tiddler.
> >
> > }*
> >
> > I appreciate any input!
> >
> > Thanks :)
>
--
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 http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.