tags with spaces and the $newtiddler widget

45 views
Skip to first unread message

Miguel Bartelsman

unread,
May 2, 2015, 10:59:50 AM5/2/15
to tiddl...@googlegroups.com
I'm using the skeeve newTiddler plugin for a button that lets me create a new tiddler tagged with the one the button is. For example, I have tiddler A with the button, when I create tiddler B with it it is tagged as A. But I have a problem, one of my tiddlers has spaces in the title (most of them actually), and neither of the following codes works as I just end up with multiple tags, one for each word. If I wrap the code with quotes, brackets or whatever I just end up with a literal {{!!title}} or <<currentTiddler>> as tags.

I thought about using fields as a substitute for the title, but since I have it set for the site's ToC I need the tag to be the same as the title.

<$set
name="tag1"
value={{!!title}}>
  <$newtiddler
  class="tc-btn-med-gray"
  title="New word"
  skeleton="$:/0/templates/word">
    Create word in this category
  </$newtiddler>
</$set>


-----------


<$set
name="tag1"
value=<<currentTiddler>>>
  <$newtiddler
  class="tc-btn-med-gray"
  title="New word"
  skeleton="$:/0/templates/word">
    Create word in this category
  </$newtiddler>
</$set>



Reply all
Reply to author
Forward
0 new messages