Thank you for your response Eric Shulman. But unfortunately it doesn't work. Nothing happens. The bar appears but there is nothing in it. There must be a flaw in it, but I can't find it. I wonder where in the code I can put my text. I have tried in different ways to also be able to put my text somewhere but it does not work.
Also the page title appears, but not as a link. Something like this should happen: <$ link to = <<currentTiddler> >> <$ view field = "title" /> </ $ link> Can you find out why it doesn't work? Op vrijdag 4 september 2020 om 22:26:59 UTC+2 schreef Eric Shulman: > On Friday, September 4, 2020 at 12:58:55 PM UTC-7, [email protected] > wrote: >> >> I have a piece of code that uses details macro from the Shiraz plugin. >> This is the piece of code: >> << details sum: "NameOfCurrentTiddlerHere" "BodyTextHere" class: >> "alert-primary" >> >> It all works fine, but how do I make the current tiddler title appear >> *automatically >> *with: "NameOfCurrentTiddlerHere" as a *link*? >> >> In the place "Body text here" I want a list of links. For this I have the >> following code: >> << list-links filter: "[tag <currentTiddler>] + [tag [NameOfTheTag]]" >> >> >> The code is correct but if I paste it between the other code it is not >> working. How do I do this? >> > > As you have discovered, you can't use macro syntax as parameter values > *inside another macro*. > > To get around this, you should use the <$macrocall> widget with *named* > parameters, like this: > <$macrocall $name="details" sum=<<currentTiddler>> src="""<<list-links > filter:"[tag<currentTiddler>] + [tag[NameOfTheTag]]">>""" > class="alert-primary"/> > Note that the src parameter value is surrounded by tripled quotes. This > is needed to allow you to use the regular quote character within the > parameter value. > > Alternatively, if you define a macro to specify the parameter value, you > could write it like this: > \define detailsSrc() <<list-links filter: "[tag<currentTiddler>] + > [tag[NameOfTheTag]]">> > > <$macrocall $name="details" sum=<<currentTiddler>> src=<<detailsSrc>> > class="alert-primary" /> > > enjoy, > -e > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/27fbe342-99ed-4b76-aa4c-3dc665b812d6n%40googlegroups.com.

