Re: [tw] Re: Use template in $:/core/ui/ViewTemplate as view template in tabs macro

2016-08-30 Thread Jeremy Ruston
Hi Danielo > An alternative, and probably easier solution would be to just use a template > like this: > > <$tiddler tiddler=<>> > <$transclude tiddler="$:/core/ui/ViewTemplate"/> > > That’s correct. We can’t change the tabs macro to store the current tab in the currentTiddler variable

[tw] Re: Use template in $:/core/ui/ViewTemplate as view template in tabs macro

2016-08-30 Thread Danielo Rodríguez
An alternative, and probably easier solution would be to just use a template like this: <$tiddler tiddler=<>> <$transclude tiddler="$:/core/ui/ViewTemplate"/> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and

[tw] Re: Use template in $:/core/ui/ViewTemplate as view template in tabs macro

2016-08-30 Thread Danielo Rodríguez
Hello Tobias, I have modified the tabs macro this way for easier comparison here is a diff https://www.diffchecker.com/tXBz8Q8L): \define tabs-cool(tabsList,default,state:"$:/state/tab",class,template) <$list filter="$tabsList$" variable="currentTab"><$set name="save-currentTiddler"

[tw] Re: Use template in $:/core/ui/ViewTemplate as view template in tabs macro

2016-08-30 Thread Danielo Rodríguez
I have been thinking about this... Maybe it's because I'm using the tabs macro as a component of the view template (tagged with the appropriate tag). But I'm not sure if this happens in a regular tiddler. Because of what you exposed, I think the result would be the same -- You received this

[tw] Re: Use template in $:/core/ui/ViewTemplate as view template in tabs macro

2016-08-30 Thread Danielo Rodríguez
Thanks Tobias, So in order to fix this, the tabs macro should modify the current tiddler variable to the selected tab, right? -- 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,

[tw] Re: Use template in $:/core/ui/ViewTemplate as view template in tabs macro

2016-08-29 Thread Tobias Beer
Hi Danielo, > {{HelloThere||$:/core/ui/ViewTemplate}} > I imagine this doesn't work, because the tabs macro runs with a variable currentTab, leaving currentTiddler untouched. And that is probably why the following will give you a