Great Mark!!

Works very well indeed.
You are right - there's no reason why there should be a new cookie-id
based on the tiddler.title everytime you use the template- so I settle
for one unique ID - and the problem is solved :-)
Thank you very much for helping me out.

YS Måns Mårtensson

On 25 Aug., 05:19, "Markk S." <[email protected]> wrote:
> Hi Måns,
>
> Well, this will work, though funnily and I'm not sure that what you
> say you want to do is what you really want to do:
>
> <<treeview2 {{story.findContainingTiddler(place).getAttribute
> ('tiddler')+"filetree";}}
> {{'collapsed: false, antisesame: "closed", animated: "fast", persist:
> "cookie", cookieId: "' +
>  story.findContainingTiddler(place).getAttribute('tiddler')+'-id"';}}
>
>
>
> So, for instance, if you launch this in tiddler "MyTest" and if
> tiddler "MyTestfiletree" exists and if "MyTestfiletree" is used as a
> root tag, it will begin to build that treeview, though maybe with one
> extra repetition of "MyTestfiletree" at the start.
>
> But I can't think why anyone would want to do this, so I'm probably
> misunderstanding what you really want.
>
> HTH
> Mark
>
> On Aug 22, 10:24 am, Måns <[email protected]> wrote:
>
>
>
> > Hi Mark
>
> > Exactly -
> > I would like to insert tiddler.title as the tag - therefore the
> > template idea..
>
> > YS Måns Mårtensson
>
> > On 22 Aug., 19:14, "Markk S." <[email protected]> wrote:
>
> > > Oh, the plugin needs an actual tag to use as the root. If that tag
> > > doesn't exist anywhere, that would explain your error.
>
> > > Mark
>
> > > On Aug 22, 8:51 am, Måns <[email protected]> wrote:
>
> > > > Hi Mark
>
> > > > Thanks for giving it a shot ....
> > > > Unfortunately it doesn't work for me.
> > > > I get: <<treeview2>>:
> > > > TypeError: Cannot read property 'tags' of null
>
> > > > Maybe you and FrD are both right - maybe it's just the plugin, which
> > > > doesn't support fetching fieldname tiddler.title...
>
> > > > I don't know - thanks for trying though..
>
> > > > YS Måns Mårtensson
>
> > > > On 22 Aug., 18:42, "Markk S." <[email protected]> wrote:
>
> > > > > Maybe try:
>
> > > > > <<treeview2 {{story.findContainingTiddler(place).getAttribute
> > > > > ('tiddler')+"filetree";}} 'collapsed: false,
> > > > >  antisesame: "closed", animated: "fast", persist: "cookie", cookieId:
> > > > >  {{story.findContainingTiddler(place).getAttribute('tiddler')+"-
> > > > > id";}}'   >>
>
> > > > > I did this too fast. There might be some syntax error ... but this
> > > > > should be close.
>
> > > > > -- Mark
>
> > > > > On Aug 22, 2:42 am, Måns <[email protected]> wrote:
>
> > > > > > Hi TwWizards
>
> > > > > > I've tried to make a template that generates a treeview based on the
> > > > > > tiddler title.
> > > > > > However I cannot figure what to write for the plugin to fetch the
> > > > > > title - I've tried:
> > > > > > <<treeview2 "+tiddler.title+" "filetree" 'collapsed: false,
> > > > > > antisesame: "closed", animated: "fast", persist: "cookie", cookieId:
> > > > > > "+tiddler.title+-ID"'  >>
>
> > > > > > Which doesn't work...
>
> > > > > > Does someone know the correct syntax - or can't you use it in a
> > > > > > template??
>
> > > > > > 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