David,

before saving the tiddler hosts Mark code, look at the lines
<$action-setfield $tiddler=<<indextitle>> $index=<<currentTiddler>> $value=<
<indexvalue>>/
>


and correct it as
<$action-setfield $tiddler=<<indextitle>> $index=<<currentTiddler>> $value=<
<indexvalue>>/>


Mohammad


On Saturday, February 1, 2020 at 3:13:57 AM UTC+3:30, David Gifford wrote:
>
>
>
> On Friday, January 31, 2020 at 5:32:46 PM UTC-6, Mark S. wrote:
>>
>>  Here's an improved version which does a better job constructing the 
>> output tiddler so it doesn't insert square brackets.
>> It also attempts to guess at the working file name of the current tiddler 
>> and use that for a field "tiddlywiki", based on the only two fields that
>> are available for that function. These guesses could be wrong. The user 
>> can make sure they're "right" by manually setting
>> the tiddler value "$:/config/SaveWikiButton/Filename" to the file name of 
>> that tiddler.
>>
>>
>> \define indexvalue() """$(title)$|$(caption)$|$(tags)$"""
>> <$wikify name=indextitle text={{{ [{$:/SiteTitle}addprefix[index-for-]] 
>> }}} select="0">
>> <$button>Make Index
>> <$list filter="[all[tiddlers]!is[system]]">
>> <$vars title={{!!title}} caption={{!!caption}} tags={{!!tags}} >
>> <$action-setfield $tiddler=<<indextitle>> $index=<<currentTiddler>> 
>> $value=<<indexvalue>>/>
>> </$vars>
>> </$list>
>> <$wikify name=tiddlywiki text={{{ 
>> [{$:/SiteTitle}addsuffix[.html]][{$:/config/SaveWikiButton/Filename}]+[!is[blank]last[]]
>>  
>> }}} >
>> <$action-setfield $tiddler=<<indextitle>> $field="tiddlywiki" 
>> $value=<<tiddlywiki>>/>
>> </$wikify>
>> </$button>
>> </$wikify>
>>
>>
>>

-- 
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/0eea6f0c-762b-4575-b345-597616eb669a%40googlegroups.com.

Reply via email to