Set tags field problems

53 views
Skip to first unread message

MagoArcade

unread,
Aug 18, 2019, 7:29:34 AM8/18/19
to TiddlyWiki
HI all,

I've tried various permutaions from macros to vars. I cant's set tags when these tags have spaces in them. Consider:


<$wikify name="boardWikid" text={{!!SelBoard}} >

<$action-setfield $tiddler=<
<fullColumnNameWikid>>
shorttext={{$:/_opTaskStore!!columnName}}
tags=<
<boardWikid>>
/>

if !!SelBoard has a string with spaces in it (e.g. "Test Column") then you get two tags - "Test" and "Column.

So the logical thing would be to surround in quotes, no?

Then, it does record a single tag, but this is:

"<<boardWiki>>"

Tried other things (three quotes, varibale form macro etc) but yet again, lost in the baffling world of ToddlyWiki Syntax.

Any help appreciated

PMario

unread,
Aug 18, 2019, 7:37:30 AM8/18/19
to TiddlyWiki
Hi,

use: [[Test Columns]]

-m

BurningTreeC

unread,
Aug 18, 2019, 7:38:24 AM8/18/19
to TiddlyWiki
Hi, you may have more luck with this:

\define get-tag()
[[$(boardWikid)$]]
\end


<$wikify name="boardWikid" text={{!!SelBoard}} >

<$action-setfield $tiddler=<
<fullColumnNameWikid>>
shorttext
={{$:/_opTaskStore!!columnName}}
tags=<<get-tag>>

/
>

PMario

unread,
Aug 18, 2019, 7:41:19 AM8/18/19
to TiddlyWiki
like so:

\define test()

<$action-setfield $tiddler=<<fullColumnNameWikid>>
shorttext={{$:/_opTaskStore!!columnName}}
tags="[[test column]]">
/>
\end

<$button actions=<<test>>>test</$button>

PMario

unread,
Aug 18, 2019, 7:42:26 AM8/18/19
to TiddlyWiki
Hi,
I think wikify is overkill here, IMO you should use $set instead.
-m

MagoArcade

unread,
Aug 18, 2019, 10:05:34 AM8/18/19
to TiddlyWiki
Thanks all. Went with BurningTree's answer in the end which worked well. 
Reply all
Reply to author
Forward
0 new messages