If the values in the variables might contain spaces, you probably want to
use triple-quotes:
"""$(nextStoryTiddler)$"""
Just a guess - didn't look any deeper.
On Saturday, January 20, 2018 at 3:00:41 PM UTC-6, BurningTreeC wrote:
>
> Hello awesome TiddlyWiki community people,
>
> I need help with a button, I just cannot get why it doesn't work. maybe
> you can help me
>
> The problem is, that everything works but the second <$action-setfield> in
> <<theButton>> - I have no clue why
> The variables there are all passed as I've checked them.. boh
>
> this is the button:
>
> \define columnicons()
> {{$:/plugins/BTC/tiddly-touch/icons!!columns-$(tiddlerWidth)$}}
> \end
> \define theButton()
> <$button class="tc-btn-invisible tc-toolbar-icon tc-toolbar-icon-topleft"
> tooltip="toggle tiddler width">
> <$list filter="[[$(tiddlerWidth)$]!regexp[^0]]">
> <$action-setfield $tiddler="$(storyTiddler)$" $field="muuri-tiddler-width"
> $value="$(nextValue)$" $timestamp="no"/>
> <$action-setfield $tiddler="$(nextStoryTiddler)$"
> $field="muuri-tiddler-width" $value="$(nextNextValue)$" $timestamp="no"/>
> </$list>
> <$list filter="[[$(tiddlerWidth)$]regexp[^0]]">
> <$action-setfield $tiddler="$(storyTiddler)$" $field="muuri-tiddler-width"
> $value="6" $timestamp="no"/>
> </$list>
> <<columnicons>></$button>
> \end
> \define toggle-tiddler-width()
> <$set name="tiddlerWidth"
> filter="[[$(storyTiddler)$]has[muuri-tiddler-width]get[muuri-tiddler-width]regexp[^(0|1|2|3|4|5|6)$]]
>
> [[$(storyTiddler)$]has[muuri-tiddler-width]get[muuri-tiddler-width]!regexp[^(0|1|2|3|4|5|6)$]addprefix[0]]
>
> [[$(storyTiddler)$]!has[muuri-tiddler-width]addprefix[0]removesuffix[$(storyTiddler)$]]">
> <$set name="nextValue"
> filter="[<tiddlerWidth>next[$:/plugins/BTC/tiddly-touch/Buttons/toggle-tiddler-width]]">
> <$set name="nextNextValue"
> filter="[<nextValue>next[$:/plugins/BTC/tiddly-touch/Buttons/toggle-tiddler-width]]">
> <$set name="nextStoryTiddler"
> filter="[[$(storyTiddler)$]next[$:/StoryList]]">
> <<theButton>>
> </$set></$set></$set></$set>
> \end
> <<toggle-tiddler-width>>
>
>
> *thanks for your help!*
>
> Simon
>
>
>
--
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/0a9153e1-46b4-413f-b073-43c468be00d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.