Well, I got it working... I don't know how but here is the solution...

I created tiddler called Transclude chapters that was tagged with 
$:/tags/Macro. Code is this:

\define transclude_chapters(tag,sort:"",itemClassFilter,exclude,path)

  <$list filter="""[all[shadows+tiddlers]tag[$tag$]!has[draft.of]$sort$] 
-[[$tag$]] $exclude$""">
    <$vars item=<<currentTiddler>> path="""$path$/$tag$""" 
excluded="""$exclude$ 
-[[$tag$]]""">
      <$set name="toc-item-class" filter="""$itemClassFilter$""" emptyValue=
"toc-item" value="toc-item-selected">

        <$transclude mode='block'/>

         <$macrocall $name="transclude_chapters" tag=<<item>> sort=
"""$sort$""" itemClassFilter="""$itemClassFilter$""" exclude=<<excluded>> 
path=<<path>>/>

      </$set>
    </$vars>
  </$list>
\end

So I just call it with the root tag:

<<transclude_chapters "Table of Contents">>

and that's it :)

-- 
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/77c87823-c2ef-4cf5-8deb-7c6c469c371f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to