Hello guys, I'm trying to recall a macro with a reference field using the
following code
<$macrocall $name="rememberq" id=<<currentTiddler>>
>
> question="Q"
> answer="A"
>
> reference=<<stream-root-title>>/>
>
The problem is that the reference field only supports plain text and
<<stream-root-title>> seems to be returning something else
Here's the declaration:
<$vars stream-root-title=<<currentTiddler>>
> contextmenu-state=<<qualify "$:/state/sq-context-popup/">>
> row-edit-state=<<qualify "$:/state/sq/streams/current-edit-tiddler">>
> drag-title-state=<<qualify "$:/state/sq/streams/current-drag-title">>
> drag-title-nextsibling-state=<<qualify
> "$:/state/sq/streams/current-drag-nextsibling">>
> >
> <div class={{{ stream-root
> [{$:/state/sq/nodes/global-drag-state}match[yes]then[stream-dragactive]]
> [<currentTiddler>!has[stream-list]then[stream-newlist]] +[join[ ]] }}}>
> <$macrocall $name="stream"/>
> </div>
> </$vars>
>
> \define stream()
> \whitespace trim
> <div class="stream-list">
> <$vars dropTargetTiddler=<<currentTiddler>> >
> <$list filter="[list[!!stream-list]!is[missing]]">
> <$set name="enable-dnd" filter="[<enable-dnd>match[no]]
> ~[<drag-title-state>get[text]match<currentTiddler>then[no]]" select="0">
> <<stream-row-template>>
> </$set>
> </$list>
> <$tiddler tiddler="">
> <!-- to drop after the last child of any list level-->
> <$droppable actions=<<stream-drop-actions>> tag="div"
> enable=<<enable-dnd>> class="stream-droppable">
> <div class="tc-droppable-placeholder">
>
> </div><!-- idea only want below div with height when its a
> child with no more children-->
> <$list filter="[<currentTiddler>!has[stream-list]]"
> variable="_NULL"><div class="stream-droppable-spacer"/></$list>
> </$droppable>
> </$tiddler>
> <$list filter="[all[current]match<stream-root-title>]"
> variable="_NULL">
> <!-- if we are the root, add a button to add more nodes-->
> <div class="stream-row">
> <div class="stream-node-control
> stream-node-control-addnew">
> <div class="stream-node-collapser">
> </div>
> <div class="stream-node-handle-wrapper">
> <$button tag="div" class="tc-btn-invisible"
> tooltip="add node" actions=<<add-node-actions>> >
> {{$:/plugins/sq/streams/icons/new-node-btn}}
> </$button>
> </div>
> </div>
> <div class="stream-node-block">
> <!--consider moving last child dropzone in here,
> though thats for children too-->
> </div>
> </div>
> <$set name="currentTiddler"
> filter={{{[<contextmenu-state>get[current]]}}}>
>
> {{||$:/plugins/sq/streams/contextmenu/contextmenu-template}}
> </$set>
> </$list>
> </$vars>
> </div>
> \end
>
Is there a way I can convert the output of <<stream-root-title>> to plain
text?
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/99a4aa9f-5d86-4e59-948a-05f3579eebe4o%40googlegroups.com.