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


On Friday, 1 May 2020 05:42:40 UTC+10, Ed Heil wrote:
>
> These are all very helpful, thanks!
>
> Inline editing of transcluded content is overkill as far as my needs are 
> concerned -- I just want to visually identify what's transcluded and get to 
> it easily.  I should be able to whip up a good simple solution from the 
> ideas in this thread.
>
> On Thursday, April 30, 2020 at 10:17:45 AM UTC-4, Ed Heil wrote:
>>
>> This is something that often happens to me: I want to update text in a 
>> tiddler, and when I get in there, I see that text is actually a 
>> {{transclusion}} -- possibly one I made using excision.  Now I have to 
>> remember what the name of the transclusion is, close the tiddler, go to the 
>> search bar, put in the name of the transclusion, find it and go edit it.
>>
>> It feels like this is high-friction.  Am I missing something that would 
>> make it easier?
>>
>> I seem to remember there's a built-in template which shows that something 
>> is a transclusion, that I maybe could use instead of plain transclusion.  I 
>> can't find it right now.  But I remember it was pretty loud/visually 
>> obtrusive and was not something I would want to use in most cases.
>>
>> I could write my own transclusion template which includes the transcluded 
>> content, plus an unobtrusive link to the tiddler being transcluded, so I 
>> could quickly go there and edit it.  It just feels like this is a common 
>> enough problem that there might be a built-in solution I'm not aware of, 
>> and I thought I'd ask before rolling my own.
>>
>

-- 
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/6d0b6fcb-eae5-48cc-8186-1a04a6c7edaa%40googlegroups.com.

Reply via email to