This should be a quickie for someone here.
I have a macro that will appear in most tiddlers, which we will call children:
\define notesource() <$view tiddler=<<currentTiddler>> field="chapter.article"/> (<$view tiddler=<<currentTiddler>> field="pagenumber"/>) <$link>*</$link>
But I will want to transclude those tiddlers in other tiddlers, let’s call them parents, with <$transclude field="text" mode="inline-block"/>
The problem is that when viewing the parent tiddler, the chapter.article and pagenumber parts of the macro no longer show the data from the child tiddler but from the parent tiddler.
What do I need to change so that I am seeing the chapter.article and pagenumber of the child even when viewing from the parent?
That is, what do I put instead of <<currentTiddler>>
in the macro? I have tried numerous things: {{!!title}}, <<storyTiddler>>
I also tried deleting the macro from the child and then transcluding the child with a template of <$transclude field="text" mode="inline-block"/> <span class="thingray"><$view field="chapter.article"/>, <$view field="pagenumber"/></span>
The problem is that inline-block doesn’t appear correctly in the parent, and if I change it to block, the chapter and page number bits go onto the next line after the text. In most cases I will want them on the same line as the text.
As you can see I gave it a good try before bothering you all. Any help I can get is appreciated!