This is what I see when I run it:
22-April-2020 WR-38972
27-April-2020
These are my contents
Which is what I expect (on line 2 you're asking for a formatted date).
Without being able to see your actual tiddlers it's hard to know for sure
what's happening. If I were to speculate, perhaps you have a slight
misspelling with "22-April-2020 WR-38972" or a an extra space on the end.
On Monday, April 27, 2020 at 7:33:02 PM UTC-7, Lisa Wasserman wrote:
>
> I'm rather stuck.
>
> I want to transclude the contents of a tiddler that I dynamically choose.
> Specifically, I want to display the journal entry tiddler titled with
> today's date, a space, and the same project as the parent tiddler. I tried
> using the following code:
>
> \define journalTiddlerName( )
> 22-April-2020 $(project)$
> \end
> <$set name="project" value={{!!project}}>
> <<journalTiddlerName>>
> <p><h2><$view tiddler=<<journalTiddlerName>> field="created" format="date"
> template="DD-MMM-YYYY"/></h2></p>
> <p><$transclude tiddler=<<journalTiddlerName>> mode="block" /></p>
> </$set>
>
> I have a project field on the parent tiddler that reads WR-38972, so I
> expect to see:
>
> 22-April-2020 WR-38972
> 22-April-2020 WR-38972
> Contents of my transcluded tiddler.
>
> It exists, and has a plain text string in the body. Unfortunately, all I
> get is the first line, "22-April-2020 WR-38972". The macros aren't
> accepting the string as a tiddler name, but I don't know why. Any
> thoughts, please?
>
--
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/69f2957f-1e6d-423e-b920-27765422f771%40googlegroups.com.