Ed,
I see that the list has a "variable=nul" this means each tiddler title is
presented in the variable
<<null>>
Yet the invocation of the edit button is to the current tiddler
{{||$:/core/ui/Buttons/edit}}
So assuming all else is working remove the variable=nul
\define optional-edit()
<$list filter="[{$:/config/edit-mode}match[yes]]">
{{||$:/core/ui/Buttons/edit}}
</$list>
\end
Regards
Tony
On Saturday, 2 May 2020 01:21:34 UTC+10, Ed Heil wrote:
>
> Hi Tony,
>
> This is very neat. That list widget doesn't seem to work for me though, I
> don't ever see the edit button if I put it inside that widget.
>
> On Thursday, April 30, 2020 at 7:12:46 PM UTC-4, TonyM wrote:
>>
>> Ed,
>>
>> If you are going to Role your own, this simple tip may help.
>>
>> View Template buttons are designed to operate on the current tiddler. So
>> if you transclude them allowing it to operate on the current tiddler they
>> work.
>>
>> {{||$:/core/ui/Buttons/edit}}
>>
>> So if you generate a list and include this you will gain a little edit
>> button that will open the current tiddler (in the list) if clicked
>>
>> With transcluded content if you transclude as follows
>> {{External content}}
>>
>> the transcluded tiddler is the current tiddler inside the transclusion.
>> So inside [[External content]] `{{||$:/core/ui/Buttons/edit}}` will make
>> a button, if clicked, will edit "External Content" tiddler.
>>
>> So if you make a global macro as follows
>> \define optional-edit()
>> <$list filter="[{$:/config/edit-mode}match[yes]]" variable=nul>
>> {{||$:/core/ui/Buttons/edit}}
>> </$list>
>> \end
>> and place <<optional-edit>>
>> at the bottom of your external content tiddlers, those transcluded in the
>> original tiddler, the edit button will appear only if
>> {$:/config/edit-mode}match[yes]
>>
>> I know this would be better with out the need to place something in the
>> excised tiddlers, and I have a mechanism I discovered but needs more work.
>> Its based on Parsing the output of
>> https://tiddlywiki.com/#transclusion%20Variable
>>
>> 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/ccc5891c-cc67-4fba-90c3-cbb58fd71926%40googlegroups.com.