[TW5] repackPlugin not forming real Shadow tiddlers

78 views
Skip to first unread message

Mark S.

unread,
Apr 21, 2015, 5:17:02 PM4/21/15
to tiddly...@googlegroups.com
Hello,

I'm following the instructions found here:

  http://tiddlywiki.com/dev/#How%20to%20create%20plugins%20in%20the%20browser

What I want to do is to a create a clone of the theme represented by plugin
  
   $:/
themes/tiddlywiki/vanilla (let's call it Vanilla)

into a new clone which I am calling:

  $:/themes/tiddlywiki/vanilla/dev1  (let's call it Device)



(for device #1)

This will allow me to quickly switch between two or more tweaked themes depending what platform I'm using the same TW on.

I started by cloning all the tiddlers inside of Vanilla and giving them all names with /dev1/ in it. I edited the cloned Tweak tiddler and cloned base Tiddler to reference the new tiddler set.

Then I used the repackPlugin tool to create the new theme plugin.

But the Device theme plugin doesn't contain shadow tiddlers like the original. Or rather, it doesn't manifest them. When I look inside the Device tiddler, I can see that all the contents are packed into a json data structure. But when I click on one of the tiddlers (from the theme view mode) the displayed tiddler does not show the content value (say font-size). Instead it invites me to create the new tiddler by clicking on the pen. If I do so, it does not give me the expected warning about  this tiddler being a shadow tiddler.

So, in essence, repackPlugin doesn't seem to create shadow tiddlers, though it does pack up the various associated values.

Am I doing something wrong, or is there an additional trick or step that needs to be implemented?

One more question.

Once I run repackPlugin, all the tiddlers I created (except tweak and base) are deleted from the TW. Is there an equivalent UNPACK command that will restore the tiddlers from the packed (and useless) theme plugin?

Thanks!
Mark

FF 33.0, TW 5.1.8


Jeremy Ruston

unread,
Apr 21, 2015, 5:27:28 PM4/21/15
to TiddlyWikiDev
Hi Mark

> So, in essence, repackPlugin doesn't seem to create shadow tiddlers, though it does pack up the various associated values.

The tiddlers within a theme plugin are not available unless the theme is the selected theme (or a dependent of it). Same for language plugins.

> Once I run repackPlugin, all the tiddlers I created (except tweak and base) are deleted from the TW. Is there an equivalent UNPACK command that will restore the tiddlers from the packed (and useless) theme plugin?

No. The idea is that you can override any shadow tiddlers from the plugin that you wish to change, and then invoke repackPlugin(). In the case of themes, again you'll need to have the theme selected in order for it to work.

Best wishes

Jeremy.






--
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 tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/81e63b9c-7e9e-4ee0-aecc-4faf5c4601f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Mark S.

unread,
Apr 21, 2015, 9:24:19 PM4/21/15
to tiddly...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

Thanks for the explanation!

Mark

Mark S.

unread,
Apr 28, 2015, 2:16:38 PM4/28/15
to tiddly...@googlegroups.com
I have the theme made and it works in the control panel. What additional step do I need to get it to show up from the "Choose the Display Theme"  icon. I mean, it sort of shows up. It shows up as blank text. There's the bullet point, but no visible text next to it.

Thanks again!
Mark

Jeremy Ruston

unread,
Apr 30, 2015, 12:12:19 PM4/30/15
to TiddlyWikiDev
Hi Mark

On Tue, Apr 28, 2015 at 7:16 PM, 'Mark S.' via TiddlyWikiDev <tiddly...@googlegroups.com> wrote:
I have the theme made and it works in the control panel. What additional step do I need to get it to show up from the "Choose the Display Theme"  icon. I mean, it sort of shows up. It shows up as blank text. There's the bullet point, but no visible text next to it.

You'll need to make sure that the plugin has a "description" field. You can edit the plugin tiddler itself to add it.

Best wishes

Jeremy.
 

Thanks again!
Mark

On Tuesday, April 21, 2015 at 2:17:02 PM UTC-7, Mark S. wrote:
Hello,

I'm following the instructions found here:

  http://tiddlywiki.com/dev/#How%20to%20create%20plugins%20in%20the%20browser


--
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 tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.

For more options, visit https://groups.google.com/d/optout.

Mark S.

unread,
May 1, 2015, 6:31:36 PM5/1/15
to tiddly...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

Thanks for the clue where to look. It had a description field. Turned out it needed a *name* field as well. The steps in:

  http://tiddlywiki.com/dev/#How%20to%20create%20plugins%20in%20the%20browser

didn't mention a name field. Maybe that was added after the documentation was made.

Thanks!
Mark

Jeremy Ruston

unread,
May 4, 2015, 3:43:13 PM5/4/15
to TiddlyWikiDev
Hi Mark

Thanks for the clue where to look. It had a description field. Turned out it needed a *name* field as well. The steps in:

  http://tiddlywiki.com/dev/#How%20to%20create%20plugins%20in%20the%20browser

didn't mention a name field. Maybe that was added after the documentation was made.


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages