Attached are my two tiddlers. The container transcludes the entry. --Lisa
On Monday, April 27, 2020 at 9:33:02 PM UTC-5, 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/0fbe4e26-727c-42eb-b53e-231b0623986c%40googlegroups.com.
container.json
Description: application/json
entry.json
Description: application/json

