It turned out my macro was including newline characters in the output changing it to
\define getNth(tiddler-title:"" field-name:"list" index:"1" ) <$list filter="[list[$tiddler-title$!!$field-name$]nth[$index$]]"><$view field="title"/></$list> \end solved the issue On Saturday, May 22, 2021 at 1:55:19 PM UTC+2 damscal wrote: > @Mat > > Using your alias view template > <http://aliases.tiddlyspot.com/#Alias%20ViewTemplate> I had problems > trying to make it work when using a macro in the alias field > > I use the following macros to dynamically set the value of the alias field > as the first element of the 'aliases' field: > > \define getNth(tiddler-title:"" field-name:"list" index:"1" ) > <$list filter="[list[$tiddler-title$!!$field-name$]nth[$index$]]"> > <$view field="title"/> > </$list> > \end > > \define getAlias() > <<getNth tiddler-title:"" field-name:"aliases" index:"1">> > \end > > as a value of the alias field I use *<<getAlias>>* > as a value of the aliases field I set a list of titles such as *[[alias > 1]] [[alias 2]] AnotherAlias* > > the macros work when called in wikitext, but when used with your solutions > the title is not displayed > > Dam > On Thursday, October 10, 2019 at 10:21:01 AM UTC+2 Sebastian Ovide wrote: > >> thanks Tony and Mark >> >> I was thinking about something without the need to overwrite the default >> template: otherwise I would loos the updates as Mark suggested... (more >> manual overhead). >> >> I'll see if I can find the thread that Tony is talking about.. >> >> >> On Wednesday, 9 October 2019 00:39:23 UTC+1, Mark S. wrote: >>> >>> Are you talking everywhere, or just in the displayed tiddlers? The >>> modifications to use a caption >>> instead of a title, when available, turn out to be pretty modest. Make a >>> backup in case of complications. >>> Then drag and drop the attached into your TW. >>> >>> Remember: >>> >>> You will need to *delete or disable this tiddler whenever you upgrade*. >>> It might be good to put a note about that in a tiddler and have that >>> tiddler open whenever the TW is refreshed. >>> >>> This does not change the edit template. The title is key to everything, >>> so actually swapping the function of the two would be very hard. >>> You could make a change to the edit template, that would make it easier >>> to edit the caption field. One step at a time ... >>> >>> Good luck! >>> >>> >>> >>> On Monday, October 7, 2019 at 2:48:59 PM UTC-7, Sebastian Ovide wrote: >>>> >>>> sorry for reopening this old thread. Is still the same ? (not simple >>>> way to overwrite the title with the caption?) thanks >>>> >>>> On Tuesday, 30 August 2016 06:41:30 UTC+1, Tobias Beer wrote: >>>>> >>>>> Hi Danielo, >>>>> >>>>> I'm afraid, you would have to define a custom override >>>>> of the ViewTemplate for the title >>>>> <http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Ftitle>, which >>>>> atm >>>>> appears far too overloaded with non-title stuff (toolbar), >>>>> which is why I understand you are reluctant to do that. >>>>> >>>>> Best wishes, >>>>> >>>>> Tobias. >>>>> >>>> -- 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/e28e8ab1-cfcd-4c44-8698-174ca14c96a9n%40googlegroups.com.

