I have:
- Tiddler A
- TIddler B
- Template
Tiddler A looks like this:
{{Tiddler B||Template}}
Tiddler B will a field that may or may not be present. When it’s not present, I need that field from Tiddler A.
How can the Template determine if Tiddler A is viewing Tiddler B and use Tiddler A field if it doesn’t exist?
I have work around to make this work:
<span class="tid-a">
{{Tiddler A||Template}}
</span>
With the CSS:
.alt-a {
display: none;
}
.tid-a .alt-a {
display: inline;
}
With Tiddler B looking like:
<span class="alt-a"><$view field="alt-a-fieldname"/></span>