[tw5] Re: In TiddlyWiki (5) my macro works in tiddlers, except when appearing as sidebar

2019-03-31 Thread icqol . secretary

Thanks!!! That's what I needed to know!!

On Sunday, March 31, 2019 at 8:44:15 AM UTC+9, TonyM wrote:
>
>  tiddlers in the sidebar do not have the current tiddler set.
>

-- 
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, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/785ff8fd-73a1-4d50-afa5-7e5c4f7a53a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: In TiddlyWiki (5) my macro works in tiddlers, except when appearing as sidebar

2019-03-30 Thread TonyM
Hi

Without reviewing what you have done in detail tiddlers in the sidebar do 
not have the current tiddler set. Use the tiddler widget or include full 
text references when referring to anything in the tiddler you tagged with 
$:/tags/SideBar

for example {{mytiddler!!fieldname}}

Of course once you use a $list without setting its variable the variable 
will be <> but only inside that list.

Regards
tony

On Sunday, March 31, 2019 at 9:02:24 AM UTC+11, icqol.s...@gmail.com wrote:
>
> [image: Screen Shot 2019-03-27 at 15.11.20.png]
>
>
>
> My global macro shows a list of all tiddlers with a certain tag[category]. 
> The tag is taken from the list field of the tiddler that calls the macro. 
> The macro works fine when used in a regular tiddler, but if I set the 
> tiddler to be a sidebar via $:/tags/SideBar, the sidebar shows the tab, 
> but nothing inside.
>
>
> My prior version worked when the macro call explicitly identified the tag  
> as follows: <>, but what I really want is to put the 
> category (book) in a field and pull that via: <$macrocall 
> $name=activityList category={{!!list}} />. Again, this works as tiddler, 
> but sidebar.
>
>
> This is the macro (the 3rd and 4th lines are not relevant, they are just 
> the output): (the category is the variable tag. "tag" parameter is just the 
> word tag.)
>
> \define activityList(category:""  tag:"tag[") 
> <$list filter="[$tag$$category$]]">
>  <$link to=<>><$view field=title/>
> {{||$:/core/ui/ViewTemplate/tags}}
> 
>
>
> That's basically it, but, just to note: I made another version that 
> modifies the macro to use a call to include the brackets: [book]. That 
> had no effect.
>

-- 
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, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/670597cd-cdbf-43ee-8785-3c582b721394%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.