Hi Eric,
I'm trying to use this solution in my *{{DesignWrite}}* semester project,
TiddlyCRM, here
<https://dl.dropboxusercontent.com/s/odu3my97ujyxz4h/SampleData-testing.html#%24%3A%2F_Menu%2FTopBar>
(at line 11). It works fine in that tiddler, but when I try to transclude
that tiddler using a ViewTemplate like this one
<https://dl.dropboxusercontent.com/s/odu3my97ujyxz4h/SampleData-testing.html#%24%3A%2F_Templates%2FTopBar>,
it only closes the original $:/_Menu/TopBar tiddler (if it was open at the
time), but nothing else.
Hegart.
On Thursday, 14 April 2016 05:05:13 UTC+12, Eric Shulman wrote:
>
> On Wednesday, April 13, 2016 at 9:35:47 AM UTC-7, Dave wrote:
>>
>> I can transclude the "save" button and it works just fine in any tiddler
>> {{$:/core/ui/Buttons/save-wiki}}
>> But when I try to transclude the close tiddler button...
>> {{$:/core/ui/Buttons/close}}
>> although it works when viewing the original tiddler, clicking the X when
>> transcluded does not work.
>> Is there a way to make this work? I just want to put a close button at
>> the bottom of tiddlers tagged with a certain tag
>>
>
> yes... just add "||" in front of the tiddler title, like this:
> {{||$:/core/ui/Buttons/close}}
>
> This will cause the tiddler to be transcluded, but will use the current
> tiddler as the 'context' (i.e., the content comes from the named tiddler,
> but the data comes from the current tiddler). This allows the close action
> to be performed on the current tiddler, rather than the tiddler being
> transcluded.
>
> enjoy,
> -e
>
>
>
>
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a152427c-e2b2-40c2-b646-ae1a2d8542e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.