Tony, thanks! I did just post about it earlier this evening, with a link to
my site <http://ethicsatwes.tiddlyspot.com/#units>.
I'll look into currentTab... It sounds like I should rewrite my templates,
but I'm still just barely treading water with my upgrade process. I'm still
very far from getting up to speed with TW5 widgets and macros, and have
been cobbling together solutions found on others' pages, with minor
patches...
On Saturday, December 28, 2019 at 8:19:37 PM UTC-5, TonyM wrote:
>
> Springer,
>
> Do detail your issue re tabs, because I think we may already have a
> solution for tabs, it uses a template to transclude tabs and there is a
> variable called currentTab available inside each tab.
>
> Regards
> Tony
>
> On Sunday, December 29, 2019 at 11:12:32 AM UTC+11, springer wrote:
>>
>> Tony, I have a feeling your challenge may be related to my question about
>> finding a way for transclusions to "behave" as I would hope them to when
>> the tiddlers they're in get rendered as tabs, etc. Yes? I'll watch this
>> post... Cheers.
>>
>> On Monday, December 23, 2019 at 7:01:11 PM UTC-5, TonyM wrote:
>>>
>>> Folks,
>>>
>>> To cut a long story short I wanted to challenge the group to see if
>>> there is a way to extract a tiddler title from an intermediate transclude.
>>> attached and Illustrated below;
>>>
>>> *Why?*
>>> Because in a number of new methods I am developing this is a gap in what
>>> I can do to simplify the sophisticated (but simple) use of transclusions.
>>> Such a solution could make even smarter transclude methods available and
>>> reduce the code needed to achieve them, or the need for changes in the core
>>> to expand designer options when building wikis.
>>>
>>> Here are three tiddlers you can create on Tiddlywiki.com (use JSON file
>>> if you want)
>>>
>>> Display tiddler
>>> <h2>Display Tiddler</h2>
>>> Current Tiddler=<<currentTiddler>><br>
>>> Display Tiddler=<<storyTiddler>>
>>>
>>> ;Simple Transclude (1)
>>> {{||intermediate}}
>>>
>>> ;Transclude with tiddlername (2)
>>> {{tiddlername||intermediate}}
>>>
>>> intermediate tiddler
>>> \define intermediate() intermediate
>>> <h2>Intermediate Tiddler</h2>
>>> Intermediate Tiddler=<<intermediate>><br>
>>> Current Tiddler=<<currentTiddler>><br>
>>> Display Tiddler=<<storyTiddler>>
>>>
>>> {{||final}}
>>>
>>> final tiddler
>>> <h2>final tiddler</h2>
>>>
>>> <h3>How can I find the tiddler name of the intermediate tiddler
>>> here?</h3>
>>> Intermediate Tiddler=<<intermediate>><br>
>>> Current Tiddler=<<currentTiddler>><br>
>>> Display Tiddler=<<storyTiddler>>
>>>
>>> One solution is to edit the intermediate tiddler as in the example and
>>> define a variable based on a literal
>>> \define intermediate() intermediate
>>> as included in the above.
>>>
>>> *However*
>>>
>>> - I am looking for a way to avoid editing the intermediate tiddler
>>> to provide its name as a literal
>>> - I would accept a programmatic way to store the intermediate
>>> name in intermediate but ideally I would like to avoid editing
>>> "intermediate" at all
>>> - Is there a way to derive this intermediate tiddler title by other
>>> means in final?
>>> - What if there was a second intermediate tiddler?
>>>
>>> *Hacking*
>>>
>>> - Perhaps there is a way to get/set the last tiddler "doing the
>>> transclude" in "final" by altering the transclude mechanism?
>>> - What if we could somehow determine the full branch used to get to
>>> any level deep
>>> - eg (in final) display intermediate final
>>> or (in final) display $:/core/ui/Buttons/edit final
>>>
>>> Thanks in advance
>>> Regards
>>> Tony
>>>
>>
--
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/6a0600b0-1a47-4a49-9bc1-d415cebb60a5%40googlegroups.com.