[tw5] Re: pack and unpack few tiddlers internally: A Theme switcher

2019-06-18 Thread Mohammad
Hi BJ

Many thanks for your help. I go through them and will notify you if  I 
could not use them.

Best
Mohammad

On Monday, June 17, 2019 at 11:53:10 PM UTC+4:30, BJ wrote:
>
> you can see how the switcher is used in
>
> $:/snippets/minithemeswitcher
>
> On Monday, June 17, 2019 at 8:16:51 PM UTC+2, Mohammad wrote:
>>
>> Hi BJ,
>>
>>  Thanks, I failed to produce an example!
>>
>> Best
>> Mohammad
>>
>>
>>
>> On Monday, June 17, 2019 at 1:19:18 AM UTC+4:30, BJ wrote:
>>>
>>> maybe you can use the plugin switcher in the core:
>>>
>>>
>>> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/pluginswitcher.js
>>>
>>> On Sunday, June 16, 2019 at 7:38:51 PM UTC+2, Mohammad wrote:

 I am working on Tiddlyshow to finalize it as a plugin!
 I have several themes for slideshow. I want to apply themes by a theme 
 switcher!
 What I do now is to apply the $:/tags/Stylesheet to bundle of tiddlers 
 in selected theme and remove $:/tags/Stylesheet  tag
 from previous theme tiddlers (each theme has 5 to 10 tiddlers)

 I thought I can use the mechanism by TW itself! so I need a macro/tool 
 to let me unload a theme (by packing internally into a JSON tiddler)
 and unpack (load) the new selected one!

 How can I do this? I am insisted to not add extra third party plugins 
 to restrict any dependencies!


 Mohammad

>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f9a60801-52ef-45ab-86cb-5d9e02147958%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: pack and unpack few tiddlers internally: A Theme switcher

2019-06-17 Thread BJ
you can see how the switcher is used in

$:/snippets/minithemeswitcher

On Monday, June 17, 2019 at 8:16:51 PM UTC+2, Mohammad wrote:
>
> Hi BJ,
>
>  Thanks, I failed to produce an example!
>
> Best
> Mohammad
>
>
>
> On Monday, June 17, 2019 at 1:19:18 AM UTC+4:30, BJ wrote:
>>
>> maybe you can use the plugin switcher in the core:
>>
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/pluginswitcher.js
>>
>> On Sunday, June 16, 2019 at 7:38:51 PM UTC+2, Mohammad wrote:
>>>
>>> I am working on Tiddlyshow to finalize it as a plugin!
>>> I have several themes for slideshow. I want to apply themes by a theme 
>>> switcher!
>>> What I do now is to apply the $:/tags/Stylesheet to bundle of tiddlers 
>>> in selected theme and remove $:/tags/Stylesheet  tag
>>> from previous theme tiddlers (each theme has 5 to 10 tiddlers)
>>>
>>> I thought I can use the mechanism by TW itself! so I need a macro/tool 
>>> to let me unload a theme (by packing internally into a JSON tiddler)
>>> and unpack (load) the new selected one!
>>>
>>> How can I do this? I am insisted to not add extra third party plugins to 
>>> restrict any dependencies!
>>>
>>>
>>> Mohammad
>>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f0bd787f-9c39-4729-9001-6b4d6bc44ac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: pack and unpack few tiddlers internally: A Theme switcher

2019-06-17 Thread BJ
not sure what you mean...
you can copy how it is used:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/startup/startup.js#L81

put your tids that you want to swtich into individual plugins and give then 
a plugintype - 'mythemes' or something else. then create a startup module 
and copy the code from startup.js and change the type to 'mythemes' (or 
whatever you want to call it).



On Monday, June 17, 2019 at 8:16:51 PM UTC+2, Mohammad wrote:
>
> Hi BJ,
>
>  Thanks, I failed to produce an example!
>
> Best
> Mohammad
>
>
>
> On Monday, June 17, 2019 at 1:19:18 AM UTC+4:30, BJ wrote:
>>
>> maybe you can use the plugin switcher in the core:
>>
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/pluginswitcher.js
>>
>> On Sunday, June 16, 2019 at 7:38:51 PM UTC+2, Mohammad wrote:
>>>
>>> I am working on Tiddlyshow to finalize it as a plugin!
>>> I have several themes for slideshow. I want to apply themes by a theme 
>>> switcher!
>>> What I do now is to apply the $:/tags/Stylesheet to bundle of tiddlers 
>>> in selected theme and remove $:/tags/Stylesheet  tag
>>> from previous theme tiddlers (each theme has 5 to 10 tiddlers)
>>>
>>> I thought I can use the mechanism by TW itself! so I need a macro/tool 
>>> to let me unload a theme (by packing internally into a JSON tiddler)
>>> and unpack (load) the new selected one!
>>>
>>> How can I do this? I am insisted to not add extra third party plugins to 
>>> restrict any dependencies!
>>>
>>>
>>> Mohammad
>>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1721f4ff-4ade-4fac-bbdc-8bbad19d789d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: pack and unpack few tiddlers internally: A Theme switcher

2019-06-17 Thread Mohammad
Hi BJ,

 Thanks, I failed to produce an example!

Best
Mohammad



On Monday, June 17, 2019 at 1:19:18 AM UTC+4:30, BJ wrote:
>
> maybe you can use the plugin switcher in the core:
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/pluginswitcher.js
>
> On Sunday, June 16, 2019 at 7:38:51 PM UTC+2, Mohammad wrote:
>>
>> I am working on Tiddlyshow to finalize it as a plugin!
>> I have several themes for slideshow. I want to apply themes by a theme 
>> switcher!
>> What I do now is to apply the $:/tags/Stylesheet to bundle of tiddlers in 
>> selected theme and remove $:/tags/Stylesheet  tag
>> from previous theme tiddlers (each theme has 5 to 10 tiddlers)
>>
>> I thought I can use the mechanism by TW itself! so I need a macro/tool to 
>> let me unload a theme (by packing internally into a JSON tiddler)
>> and unpack (load) the new selected one!
>>
>> How can I do this? I am insisted to not add extra third party plugins to 
>> restrict any dependencies!
>>
>>
>> Mohammad
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ee85a10d-3a2f-417d-b3ee-edc219ce158f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: pack and unpack few tiddlers internally: A Theme switcher

2019-06-16 Thread BJ
maybe you can use the plugin switcher in the core:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/pluginswitcher.js

On Sunday, June 16, 2019 at 7:38:51 PM UTC+2, Mohammad wrote:
>
> I am working on Tiddlyshow to finalize it as a plugin!
> I have several themes for slideshow. I want to apply themes by a theme 
> switcher!
> What I do now is to apply the $:/tags/Stylesheet to bundle of tiddlers in 
> selected theme and remove $:/tags/Stylesheet  tag
> from previous theme tiddlers (each theme has 5 to 10 tiddlers)
>
> I thought I can use the mechanism by TW itself! so I need a macro/tool to 
> let me unload a theme (by packing internally into a JSON tiddler)
> and unpack (load) the new selected one!
>
> How can I do this? I am insisted to not add extra third party plugins to 
> restrict any dependencies!
>
>
> Mohammad
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6753f94c-bce7-41c1-ac0e-e61c0eeba666%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.