Hi TwWizards
I've made a TreeManger (for managing TreeViews ). It's based on Mikes
fetTaskManager (http://www.strm.us/tw/examples_twgg/
fettaskmanager.html)
I'd like to setup a custom ViewTemplate for it so I don't have text
from the code in the textbody..
Now I'm writing a new tiddler with all neccesary code each time I make
a new manager like this:
<<clickify newTiddler
label: "newTreeManager"
title:{{GLOBAL_fetProject = prompt("Enter TreeManager title (No
Spaces)")}}
tag:"Tree1"
text:{{
store.getTiddlerText("TreeManager", "").
replace(/Tree1/g, GLOBAL_fetProject)
}}
>>
and It writes a lot of code into a new tiddler.
As you can see from the button above - all it does is to replace the
word "Tree1" with a new "TreeManager" title.
I'd like to use a button which "only" creates a "newHere" tiddler and
tags it "TreeManager" to invoke a TreeMangerViewTemplate fetching
everything from the TreeManager tiddler and replaces all instances of
the word Tree1 with the tiddlers title.
I wonder if it could be made by replacing "Tree1" with $1 - and write
this to a template: <<tiddler TreeManager with: {{tiddler.title}} -
and put the template into the custom TreemangerViewTemplate ...?
I will test it...
Please tell if you have a better solution..
YS Måns Mårtensson
--
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.