This has been a study in the workings of a chinese box...
I had a lot of trouble getting the tabs macro to work with $1 - untill
I discovered the option to link to a section in the same tiddler like
this:
!!!Tabs2
<<tiddler TreeManager##Tabs with: {{tiddler.title}}>>
!end
and to refere to it like this:
<<tabs txt$1
'$1 Tabs ' '$1 subTreeTabs Tab' TreeManager##Tabs2
>>

Now it works:
http://notestormproject.tiddlyspot.com/#TreeManager

Regards Måns Mårtensson

On 30 Nov., 16:10, Måns <[email protected]> wrote:
> 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.


Reply via email to