Hi Stephen

> I understand that the tiddlers inside a plugin are considered shadow
tiddlers regardless of the name but I don't understand the why.  Is it
simply the fact they are in a plugin that makes them shadow tiddlers?

Yes, although the logic makes more sense the other way around: "shadow
tiddlers" is what we call the payload tiddlers packed into a plugin.

> If I include a tiddler called GettingStarted in a plugin and bring that
plugin into a new, empty tiddler, won't I have two shadow tiddlers with the
same name? Does the system crater in confusion? If not, how would the
system decide which one to call up? The one with the most recent date?

The last one loaded of the plugins will win, and mask the GettingStarted
tiddler provided by the other one.

The plugins are sorted by their "plugin-priority" field (if present), then
by their title.

All of this happens in wiki.unpackPluginTiddlers, the method that unpacks
plugin tiddlers and turns their consituent tiddlers as shadow tiddlers::

https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L1022

> I get the feeling that it's not the best idea to overwrite a core
component using a plugin.

It's generally best to avoid overwriting a core component like a button or
a template, but it's OK to overwrite a core shadow configuration tiddler,
such as $:/DefaultTiddlers.

Best wishes

Jeremy.




On Fri, Feb 6, 2015 at 2:51 PM, Tobias Beer <[email protected]> wrote:

> The order may differ between Node.js and the browser.
>> See *$tw.loadTiddlersBrowser()* and *$tw.loadTiddlersNode()* in
>> *$:/boot/boot.js*.
>>
>
> I get the feeling that it's not the best idea to overwrite a core
> component using a plugin.
> After all, two plugins may want to do the same and then what?
>
> Best wishes, Tobias.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to