Re: [tw5] Shiraz slider status open does not work properly

55 views
Skip to first unread message

Mohammad Rahmani

unread,
Jun 5, 2020, 8:23:44 AM6/5/20
to tiddl...@googlegroups.com
Hi Olegh,
 Would you please check your sample on https://kookma.github.io/TW-Shiraz/
and let me know if it works or not?


Best wishes
Mohammad


On Fri, Jun 5, 2020 at 3:45 PM oleghbond <o.o.bon...@gmail.com> wrote:
I have been extensively using Shiraz plugin as a platform for my wikis. Thanks to Mohammad.

I noticed that Shiraz slider status:open does not work properly. For instance:

<<slider label:"''Webinar''" status:open labelClass:"alert alert-secondary" src:"some text">>

this code has to render a tiddler with open text. However, it does not - see a real example https://bit.ly/3gZbGj6

I would be grateful for somebody's tip or patch.

Olegh 

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3e17282a-503e-4eea-bdc2-83d9bf8dac93o%40googlegroups.com.

Mohammad Rahmani

unread,
Jun 5, 2020, 8:27:58 AM6/5/20
to tiddl...@googlegroups.com
Olegh,
 If you use Node.JS version of TW, it seems none of state tiddler are saved! So, with Node.js make a small change in
\define slider(label, src, labelClass, srcClass, status:"closed")
<$set name="revealState" value=<<qualify "$:/state/shiraz/slider-macro/$(currentTiddler)$/$label$">>>

to something like
\define slider(label, src, labelClass, srcClass, status:"closed") 
<$set name="revealState" value=<<qualify "$:/keepstate/shiraz/slider-macro/$(currentTiddler)$/$label$">>>


Best wishes
Mohammad

Mohammad Rahmani

unread,
Jun 5, 2020, 8:31:18 AM6/5/20
to tiddl...@googlegroups.com
The current design is to store status with single html file! BUT I can change the code!
I will submit a ticket to address this in the next update!


Best wishes
Mohammad

oleghbond

unread,
Jun 5, 2020, 10:19:30 AM6/5/20
to TiddlyWiki
Dear Mohammad, thanks a lot. 

It started working. 

However, literally saying, by 50%. If you glance to this tiddler https://bit.ly/3gZbGj6 you find it working fine. But when you switch to the Ukrainian twin (just pressing the button with the Ukrainian flag on the top-right of the tiddler) you will find the very similar tiddler with slider status open not working properly. Very interesting, would you agree?

Olegh

пʼятниця, 5 червня 2020 р. 15:27:58 UTC+3 користувач Mohammad написав:
Olegh,
 If you use Node.JS version of TW, it seems none of state tiddler are saved! So, with Node.js make a small change in
\define slider(label, src, labelClass, srcClass, status:"closed")
<$set name="revealState" value=<<qualify "$:/state/shiraz/slider-macro/$(currentTiddler)$/$label$">>>

to something like
\define slider(label, src, labelClass, srcClass, status:"closed") 
<$set name="revealState" value=<<qualify "$:/keepstate/shiraz/slider-macro/$(currentTiddler)$/$label$">>>


Best wishes
Mohammad


On Fri, Jun 5, 2020 at 3:45 PM oleghbond <o.o.bo...@gmail.com> wrote:
I have been extensively using Shiraz plugin as a platform for my wikis. Thanks to Mohammad.

I noticed that Shiraz slider status:open does not work properly. For instance:

<<slider label:"''Webinar''" status:open labelClass:"alert alert-secondary" src:"some text">>

this code has to render a tiddler with open text. However, it does not - see a real example https://bit.ly/3gZbGj6

I would be grateful for somebody's tip or patch.

Olegh 

--
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 tiddl...@googlegroups.com.

Mohammad Rahmani

unread,
Jun 5, 2020, 10:57:00 AM6/5/20
to tiddl...@googlegroups.com
Olegh,
 The status works using reveal widget which in turn uses a state tiddler! When the state tiddler is missing the closed status is used!
 That is all! On single file TW, $:/state/tidname seems is saved while on Node.JS this is not the case!

 I will push an update to keep the same behaviour in both situations


Best wishes
Mohammad


To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9663b51d-788d-40d9-91da-9bd74b384b48o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages