Jeremy 

The tiddler widget  (https://tiddlywiki.com/#TiddlerWidget) has several 
other features like tiddlerTagClasses 
is it possible to give an example to see how they can be used?

sed been here to facilitate the operation! Could you give some examples to
see how tiddler and its other classes 

On Thursday, August 9, 2018 at 9:57:43 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Stephen
>
> The confusing thing here is that we are manipulating wikitext that will be 
> stored in a tiddler and rendered later. Here’s one version that works, but 
> I’m not sure it’s exactly what you want:
>
> <$tiddler tiddler="$:/state/NewTiddlerForm">
>
> !Title
>
> <$edit-text class='tc-edit-texteditor' field='name_temp' placeholder='Life 
> the Universe and Everything' /><br>
>
> !!Value of Constant
>
> <$edit-text class='tc-edit-texteditor' field='value'/>
>
> <$button>
> Create Tiddler
> <$set name="valuetext" value={{{ [{!!value}addprefix[<$latex 
> text="""]addsuffix["""></$latex>]] }}}>
> <$action-setfield $tiddler={{!!name_temp}} text=<<valuetext>> 
> value={{!!value}}/>
> </$set>
> <$action-navigate $to={{!!name_temp}}/>
> </$button>
>
> </$tiddler>
>
>
> Notes:
>
> * If you’re referring to the same tiddler many times, it’s often helpful 
> to use the <$tiddler> widget to set the currentTiddler, and then be able to 
> take advantage of defaults and omit the tiddler title from widgets like the 
> edit widget
> * We use a filtered transclusion with the set widget to create the text 
> value for the new tiddler by taking the value entered by the user and 
> adding a prefix and suffix
>
> Best wishes
>
> Jeremy.
>
>
> On 9 Aug 2018, at 17:21, Ste Wilson <stew...@gmail.com <javascript:>> 
> wrote:
>
> Update,
> it seems to be the katex plugin causing the problem as, instead of the 
> variable being placed in the field between double brackets so it can be 
> displayed by the katex plugin the field contains *ParseError: KaTeX parse 
> error: $ within math mode*.
> even thought the data going into the field is valid for Katex.
>
> Get the same error with \define convalue() 
> $${{$:/state/NewTiddlerForm!!value}}$$ 
> as \define convalue() <$latex 
> text="{{$:/state/NewTiddlerForm!!value}}"></$latex>
>
> My code here:
> \define convalue() <$latex 
> text="{{$:/state/NewTiddlerForm!!value}}"></$latex>
>
> \define actions()
> <$wikify name="valuetext" text=<<convalue>>>
> <$action-setfield $tiddler="$:/state/NewTiddlerForm" $field="valuetext" 
> $value=<<valuetext>> />
> </$wikify>
> \end
>
>
> !Title
> <$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTiddlerForm' 
> field='name_temp' placeholder='Life the Universe and Everything' /><br>
>
> !!Value of Constant
>
> <$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTiddlerForm' 
> field='value'/><br>
>
> <$button>Create Tiddler
> <<actions>>
> <$action-setfield $tiddler={{$:/state/NewTiddlerForm!!name_temp}} 
> text={{$:/state/NewTiddlerForm!!text}} 
> value={{$:/state/NewTiddlerForm!!valuetext}}/>
> <$action-navigate $to={{$:/state/NewTiddlerForm!!name_temp}}/>
> <$action-setfield $tiddler='$:/state/NewTiddlerForm' name_temp='' text='' 
> description='' tags=''/>
> </$button>
>
>
>
> On Thursday, 9 August 2018 12:11:32 UTC+1, Ste Wilson wrote:
>>
>>
>> Hmm, possible bug!
>>
>> The above code from FrD works fine in new tiddliwiki and indeed works on 
>> tiddlywiki.com however id doesn't work in my other wikis.
>> It must be a plugin thought I.
>> Starting with a blank wiki i tested then installed the katex plugin, at 
>> which point it fails to send anything to the output field!
>>
>> Any thoughts?
>>
>> Stephen
>>
>> On Wednesday, 1 August 2018 12:49:16 UTC+1, Ste Wilson wrote:
>>>
>>> Thanks for the response. 
>>> It looks spot on! 
>>> Thank you! 
>>>
>>>
> -- 
> 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+...@googlegroups.com <javascript:>.
> To post to this group, send email to tiddl...@googlegroups.com 
> <javascript:>.
> 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/fae270d4-c9b7-4e4a-92f4-5ea09f750e17%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/fae270d4-c9b7-4e4a-92f4-5ea09f750e17%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/0d0a65b2-157d-4d50-be4d-d1d5deb5bed9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to