Well, this worked on a quick test.
Say you embed ZZZ as your marker term in your template TW everywhere
that you wanted to make a unique tiddler.
Then you could put this in a Tiddler "Change All Titles"
<<tiddler {{
var biglist = store.getTiddlers() ;
for(var i=0;i<biglist.length;i++) {
biglist[i].title = biglist[i].title.replace("ZZZ","007") ;
}
;"";}}>>
When you close this tiddler, save the TW, and reload, all tiddler
titles with ZZZ in them should have been replaced with "007". Like
HowToTellClientZZZOff becomes HowToTellClient007Off
I think you can see where to specify the code markers and replacement
values. You do have to save and reload for the change to be apparent.
Be sure to make a backup before trying this. Use at your own risk,
etc.
Mark
On Jan 14, 10:51 am, "Linck Atlanta, Ga" <[email protected]> wrote:
> I have a really neat system I am using for work where in I use a file
> for each client. Each of these files uses a template and therefore,
> there are identical titles in each file.
>
> Now, to track trends and various things, I have a seperate file which
> uses the include plugin to pull in information from all the other
> files. As I soon discovered, it only pulled in the information from
> ONE (the first) of these files because of the identically named
> Tiddlers. To fix this problem, I used a naming convention thusly
> TiddlerTitle (x) where the x was a separate number relating to each
> client. This work, not a problem. The issue is that now, when I use
> my template to create a file for a new client, I have to go in and
> rename each of the tiddler titles replacing "x" with the client's
> number. A pain.
>
> Now, I thought I could put in a macro to pull in the number
> automatically (which I have captured elsewhere in each file), but I
> could not seem to make the title text behave the same way as the text
> of the tiddler does, so I could not use the data plugin for that.
>
> So,
>
> 1) Is there a sysnax or somehthing that WOULD let me change a part of
> the title based on a field?
> 2) is there an easy way to change them all at the same time (the
> replace with feature of tweak does not touch the title)?
> 3) Any other suggestions?
>
> Thank you...
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.