Springer
Learning to use tiddlers tagged $:/tags/ViewTemplate is the next step in
your self education. They are displayed when viewing a tiddler and can
overlay the current tiddler with code that applies to the currentTiddler,
can access currentTiddler text and fields.
You can then have your customisable parameter stored in a tiddler field or
elsewhere and refer to that instead. Be aware you need other tricks to edit
something in the currentTiddler in the view template, tricks the edit
tiddler process achieves for us.
Regards
Tony
On Tuesday, December 31, 2019 at 7:16:04 AM UTC+11, springer wrote:
>
> OK, this gets me most of the way there, thanks!... The following string
> works as I need:
>
> <<tabs "[tag[WritingThisTiddlerTitleManuallyHere]]"
> template:"tabtemplate">>
>
> Whew... I wonder: Is there a string I can use where I wrote
> WritingThisTiddlerTitleManuallyHere so that I have a simple copy-paste
> string that works wherever I put it?
>
> Typing or pasting {{childtabs}} at the bottom of a tiddler was so simple,
> but it seems the approach your describing here needs me to type more, and
> customize each time. (I suppose someone with more chops could do a smart
> Tiddler Commander search-and-replace to save the time of fixing all the
> tiddlers that used my broken template, but this new approach is still a bit
> of a handful to type out on each new tiddler that serves as a tag...)
>
> -Springer
>
> On Monday, December 30, 2019 at 2:23:17 PM UTC-5, Mark S. wrote:
>>
>> This problem is referenced in the tabs macro documentation
>> <https://tiddlywiki.com/#tabs%20Macro>.
>>
>> Basically, make a template like "tabtemplate" with contents:
>>
>> <$tiddler tiddler=<<currentTab>>>
>> <$transclude mode="block" />
>> </$tiddler>
>>
>> and then reference it in the macro call, similar to:
>>
>> <<tabs "[tag[HelloThere]]" template:"tabtemplate">>
>>
>> On Monday, December 30, 2019 at 10:31:07 AM UTC-8, springer wrote:
>>>
>>> Deal all,
>>>
>>> I realize I'm not yet fluent enough to solve my nested childtabs problem.
>>>
>>> So, I'll ask a much simpler question, and crawl up from there...
>>>
>>> I'm using fields to hold scores in a multi-aspect grading rubric.
>>>
>>> I can pull info from a tiddler's accuracy field into that tiddler's
>>> regular view by using {{!!accuracy}} (and I'm using HarveyBalls to make it
>>> look great!)
>>>
>>> But then if that whole tiddler gets rendered as a tab within another
>>> tiddler, the field reference (as I have it now) breaks, because it's trying
>>> to supply the field value for the enclosing tiddler.
>>>
>>> What's the TextReference format to use, in the original tiddler, so that
>>> the proper bottom-level field values will appear, even in the nested
>>> contexts? (I have tried variations on adding || but with no luck so far.)
>>>
>>
--
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/d43381b7-0cc1-488f-ba4e-40d9feb63fa6%40googlegroups.com.