I should probably post this in a separate thread, "TW-Flowy"

This version works mostly. Create a global macro tiddler and insert:

\define tagascurrent() [[$(currentTiddler)$]]
\define draft() Draft of '$(currentTiddler)$'
\define draftcreated() Draft of '$(currentTiddler)$'!!created
\define drafttrans() {{Draft of '$(currentTiddler)$'||$:/core/ui/
EditTemplate}}
\define toc-tabbed-external-nav2(tag,sort:"",selectedTiddler:
"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"")
<$tiddler tiddler={{$selectedTiddler$}}>
<div class="tc-tabbed-table-of-contents">
<$linkcatcher to="$selectedTiddler$">
<div class="tc-table-of-contents">
<$macrocall $name="toc-selective-expandable" tag="""$tag$""" sort=
"""$sort$""" itemClassFilter=<<toc-tabbed-selected-item-filter 
selectedTiddler:"""$selectedTiddler$""">>/>
</div>
</$linkcatcher>
<div class="tc-tabbed-table-of-contents-content">
<$reveal state="""$selectedTiddler$""" type="nomatch" text="">
<$navigator story="story" history="history" openLinkFromInsideRiver="top">

<$list filter="[all[current]]" >
<$reveal state=<<draftcreated>> type="nomatch" text="">
<<drafttrans>>
</$reveal>
<$reveal state=<<draftcreated>> type="match" text="">
{{||$:/core/ui/ViewTemplate}}
<$button>
<$action-createtiddler $basetitle={{$:/newitem}} tags=<<tagascurrent>> 
$savetitle="""$selectedTiddler$""" />
New child</$button> <$edit-text tiddler="$:/newitem" tag="input" size="
30" default="Child name here" placeholder="Child name here"/>
</$reveal>
</$list>

</$navigator>
</$reveal>
<$reveal state="""$selectedTiddler$""" type="match" text="">
$unselectedText$
</$reveal>
</div>
</div>
</$tiddler>
\end

Then invoke, for instance if your top tag was "Root":

<$macrocall
    $name="toc-tabbed-external-nav2"
    tag="Root"
    selectedTiddler="$:/temp/toc/selectedTiddler"
    unselectedText="<p>Select a topic in the table of contents. Click the 
arrow to expand a topic.</p>"
    missingText="<p>Missing tiddler.</p>"
template="$:/core/ui/ViewTemplate"
/>

Note that it is called "toc-tabbed-external-nav*2*". Below is an example of 
it in action.

There are anomalies. I haven't worked out the CSS, so you'll probably need 
to have your TW in full-column mode. You need to use the button and field 
at the bottom of each item rather than the "New Here" button. Changing the 
tiddler name will cause you to lose your place in the tree structure.

This requires latest version of TW (actually, might be able to get away 
with 5.1.14, not sure) As always, be sure to have your TW backed up before 
trying this.

Have fun,
Mark



-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/d94afe6e-7188-4a7a-814b-991032d4b793%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to