Definitely make backups before trying any of this!

This code will make a copy of your tiddlers. Change the filter to match 
your criteria. The reason it makes a copy is because the title field is 
central to everything in TW, so when you try to change the field a copy is 
made. After you've made the copies, export your tiddlers based on the "." 
prefix.

<$button>Make . Tiddlers
<$list filter="[tag[HelloThere]]">
<$list filter="[all[current]addprefix[.]]" variable="pre">
<$action-setfield $field="title" $value=<<pre>>/>
</$list>
</$list>
</$button>


Then, to clean up, delete the "dot" tiddlers with this:

<$button>Delete . Tiddlers
<$action-deletetiddler $filter="[all[tiddlers]prefix[.]]"/>
</$button>


Note that the dot tiddlers will no longer be linkable with each other (if 
they had links) and if they had a role as tag tiddlers that will be broken 
also. 

Oh yes. I'll say it again -- make backups!

HTH
-- Mar

On Friday, May 4, 2018 at 3:00:36 PM UTC-7, JWHoneycutt wrote:
>
> I would like to import a large group of tiddlers into another wiki, but 
> can't guarantee there aren't a few with the same title, and I do not want 
> overwrites.
>
> So I simply want to change the title of every (nonsystem) tiddler in the 
> export file to add a prefix of "." (period)
>
> It sounds like it should be easy but I am not there yet.
>
> My best guess is:
> 1) Use fieldmangler widget to add message field "title2" 
> 2) Use addprefix to add "." to "title" and place it into title2
> 3) Replace "title" with "title2"
>
> As always, any thoughts are appreciated
> JWHoneycutt
>

-- 
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/2df4f934-f09a-426a-af79-a1d6e4211bac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to