>>> There are many possibilities to add elements to the different 
templates. .. So if you can specify, what you want to achieve, we can 
probably tell you if there is an easy way.

@Mario  - Thanks. There are no doubt specific tweaks that I have made that 
could have been done without actually overriding any shadow tiddlers, but 
I'm mostly interested in how to handle this problem more generally in the 
cases where it is necessary to override shadow tiddlers.

>>> Yeah, right. The new shadow is imported but it becomes passive because 
your overwrite still "covers" it.

@Mat - OK that's good to know - at least the new shadow tiddler still 
updates in the background.

>>> But the OP asks, or at least implies, about *keeping *ones overwrites 
in spite of updating. The problem has several aspects:

   - How do you know if the upgrade has changed the shadow; often 
   individual shadow tiddlers in an updated plugin remain unchanged.
   - ...so if the upgrade didn't change the shadow then you just want to 
   keep your overwrite. (Maybe you don't even need to be informed about it.)
   - ...but if the upgrade did change the shadow, then you know you need to 
   be alerted so you can investigate what to do with your overwrite.

Yep that is what I was asking.

What is needed is a filter that returns all overridden shadow tiddlers 
where the last modified date of the shadow tiddler is more recent than the 
last modified date of the overriding tiddler. Immediately I can see two 
problems with this:

1. Not every shadow tiddler even has a modified field. Just looking at a 
few random ones on tiddlywiki.com it seems that some do and some don't.
2. Since both the original shadow tiddler and the overriding tiddler have 
the same name, I can't think of how a filter could return the modified 
field for both of them. Presumably it will always return the field from the 
overriding tiddler.

Anyone have any solutions, or is this a lost cause?

On Tuesday, 23 February 2021 at 09:54:58 UTC TiddlyTweeter wrote:

> Ciao Mat. I appreciate your experience!
>
> As I wrote: it is about UNDERSTANDING the behaviors. That is NOT going to 
> change the behaviors. 
> Merely adjust to them. 
>
> The CENTRAL issue would only arise IF the behaviors were INconsistent.
>
> TT
>
>  Mat wrote:
>
>> But the OP asks, or at least implies, about *keeping *ones overwrites in 
>> spite of updating. The problem has several aspects:
>>
>>    - How do you know if the upgrade has changed the shadow; often 
>>    individual shadow tiddlers in an updated plugin remain unchanged.
>>    - ...so if the upgrade didn't change the shadow then you just want to 
>>    keep your overwrite. (Maybe you don't even need to be informed about it.)
>>    - ...but if the upgrade did change the shadow, then you know you need 
>>    to be alerted so you can investigate what to do with your overwrite
>>
>>

-- 
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/cf2e60e6-dbc9-4eaa-923d-152cfff5e0a6n%40googlegroups.com.

Reply via email to