Thank you, Mark!
You are the guru here…
This seems to work:
\define mac2(ttl)
<$list filter=" [[$ttl$]] +[removesuffix[ (Info)]]" />
\end
\define mac1()
---
The following contains details relating to <$macrocall $name=mac2
ttl={{!!title}}/>
---
\end
<>
--
You received this
Hi Matabele,
indeed, your approach does work for pure listing, but if you want to link to
this very tiddler, it does not work …
\define myTitle(title) [[$title$ info]]
<>
leaves you with a link to „{{!!title}} info“.
--
You received this message because you are subscribed to
Yes, but it's listing the tiddlers that match. In view mode, there should
(can) only be one match, but in edit mode there are no matches.
On Wednesday, July 27, 2016 at 2:15:51 PM UTC+10, Mark S. wrote:
>
> You have to try the code to see what I mean. When I say that it doesn't
> produce a
Hi
No need for a double macro -- this seems to work:
\define myTitle(title) $title$ info""
<>
-- not too sure what your desired string should be
-- the macrocall can be used as a variable for setting a parameter elsewhere
regards
On Tuesday, 26 July 2016 13:57:44 UTC+2, jonath...@wolke7.net
You have to try the code to see what I mean. When I say that it doesn't
produce a link, I mean that it doesn't produce *any* text (linked or
otherwise). That's why it's a bit mysterious. I would have expected it to
produce a nowhere-link like "*Draft of *"
Mark
On Tuesday, July 26, 2016 at
Yes, it removes the suffix, leaving you with the title, minus " (info)" -
only in edit mode, the title of the tiddler you're editing has "draft of"
appended to the front, so it doesn't point to your original tiddler. I
think, possibly, drafts are anyway excluded from filter results by default
But, why should that make a difference to removing the *suffix* ? When I
say that it doesn't work, I mean that it shows *nothing*. I could
understand if I was removing a prefix, since the prefix would be displaced
by "Draft of".
Thanks!
Mark
On Tuesday, July 26, 2016 at 2:40:55 PM UTC-7, c
It doesn't work in preview because during editing the title is "Draft of" +
title
Draft of + title isn't contained in any foreign fields
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails
This seems to work:
\define mac2(ttl)
<$list filter=" [[$ttl$]] +[removesuffix[ (Info)]]" />
\end
\define mac1()
---
The following contains details relating to <$macrocall $name=mac2 ttl={{!!
title}}/>
---
\end
<>
However, it doesn't work in preview, which threw me off for awhile. Perhaps
Thanks, your solution is working – great!
One more question:
How would I do it the other way round:
Linking from „myTiddler (info)“ to „myTiddler“ ?
I would have to shorten the title oft the current tiddler, i.e. cut off the
last 6 or 7 characters.
How would I do this?
--
You
Try:
\define myMacro()
---
<$set name=ttl value={{!!title}}>
<>
---
\end
\define myMacro2()
look here for more informations: [[ $(ttl)$ (Info) ]]
\end
<>
On Tuesday, July 26, 2016 at 4:57:44 AM UTC-7, jonath...@wolke7.net wrote:
>
>
>
> Hi there,
>
>
>
> i want to transclude the title
11 matches
Mail list logo