[tw5] Video Background

2021-10-14 Thread Scott Masterson
Hello All, I've been using Tiddlywiki for quite a while now, but I'm still 
a bit ignorant when it comes to how it works under the hood.  I'm building 
a new site right now and I've managed to get everything the way I want it, 
but I would like to have a video background playing full-window in the 
story river, preferably with a button somewhere that allows the user to 
toggle playback.  I've searched by haven't found anything that gets me very 
far.  Is this even possible and if so, how would I go about doing it?  
 This is probably the best I've seen for the effect that I want to achieve 
(but the sidebar and the tiddlers would not be transparent):   How To 
Create a Fullscreen Video Background 


I'm using the excellent Notebook theme, if that helps.

Thanks in advance, 
Scott

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/233f949e-10d4-4205-bf11-8553a7513358n%40googlegroups.com.


[tw5] Re: Referencing a Field in another Tiddler during Transclusion

2020-07-05 Thread Scott Masterson
Tony,

Never mind, it was my bone-headed mistake.  I had the closing tag for the 
$set widget before the $list widget, so the variable I was using was going 
out of scope before the list filtered on it.  Thanks for your help.

Scott

On Thursday, July 2, 2020 at 4:18:02 AM UTC-4, TW Tones wrote:
>
> Scott
>
> Try adding variable=nul as a parameter in your list widget so the 
> currentTiddler variable does not change and field reference refer to the 
> original tiddler remain valid.
>
> I will look closer later
>
> Regards
> Tony
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ca84fa1f-942b-4556-9d6a-864836e6819ao%40googlegroups.com.


[tw5] Re: Referencing a Field in another Tiddler during Transclusion

2020-07-02 Thread Scott Masterson
Hey Tony,

Thanks for the tips, they're really appreciated.  I found an easier way to 
do what I wanted, but without having to change the currentTiddler.  
Unfortunately, I'm having a problem with the syntax in the list filter 
that's driving me a bit crazy.   In the list filter, if I put the actual 
field values into the tag filter, it works perfectly.  But if I use text 
references for the fields, nothing is returned.  I've tried every syntax 
combination I can think of, and nothing seems to work.  I'm using a $button 
for the list items now and the list is always empty.  But when I was using 
a $checkbox for the list items, then the filter seemed to work fine.  

Here's the list filter with the direct field value substitutions - and it 
works fine:

<$list filter="[!has[draft.of]tag[Brief]*tag[14-33296]!tag[14-0]*
sort[title]]">

<$button><$action-listops $tags="[{!!super-opfac}] 
-[{!!parent-opfac}]"/>Promote
<$link to={{!!title}}><$view field="title"/>



But when I try to use text references for the field values, it doesn't work:

<$list filter="[!has[draft.of]tag[Brief]
*tag{!!parent-opfac}!tag{!!super-opfac}*sort[title]]">

<$button><$action-listops $tags="[{!!super-opfac}] 
-[{!!parent-opfac}]"/>Promote
<$link to={{!!title}}><$view field="title"/>



Forgive my naivete with Tiddlywiki, but can you help me understand what I'm 
doing wrong?

Thanks in advance,
Scott


On Monday, June 22, 2020 at 12:09:16 AM UTC-4, TW Tones wrote:
>
> Scott,
>
> Quick tip, in your lists above the `<>` changes according 
> to the list filter, that is why {{!!title}} refers to the tiddler in the 
> list (result of the filter). However you could always use another 
> variable=other-tiddler in the list statement to keep referring to the 
> original tiddler, but then you will have to use the <> 
> variable say in the viewWidget to access the other fields in 
> <>.
>
> At anyplace in your wikitext you can set the current tiddler to another, 
> using the tiddler widget, and this can be driven by a variable 
> <$tiddler tiddler=<> >
>
> In here <> = <> and {{!!title}} refers to 
> the title in <>
>
> 
>
> Also if you know how to access a tiddler and its field with a filter you 
> can wrap that filter in triple Curly Braces
> eg
> {{{[get]}}}
>
> Ask more questions once you explore these tips.
>
> Tony
>
>
> On Monday, June 22, 2020 at 1:16:34 PM UTC+10, Scott Masterson wrote:
>>
>> Hello All,
>>
>> This is my first post here, so please forgive my naiveite and beginner 
>> status.  BLUF: I'm trying to create a prototype for a notification system 
>> for a relatively complex military organization, and I'm trying to figure 
>> out how to reference the fields of one Tiddler, while transcluding another 
>> Tiddler field into a list in that Tiddler?
>>
>> Now here's the long-winded version.  Each *Unit Tiddler* in the 
>> organization has a field with that unit's ID, called the *unit-opfac*, 
>> as well as a field for its parent unit, called the *parent-opfac*.  A *Brief 
>> Tiddler* can be created (from a button generating a Tiddler based on the 
>> Brief Template) at any unit level and will be tagged with *[Brief]* as 
>> well as its *unit-opfac* and its *parent-opfac*.  I want to use the 
>> *checkbox 
>> *widget to allow each brief to be promoted up the organizational chain 
>> by being tagged with the unit's *parent-opfac*. This will allow someone 
>> at each unit level to promote a brief up the chain at will.  I wrote the 
>> below code and thought I was doing great - until I realized that the 
>> *parent-opfac* and *unit-opfac* fields that I was transcluding were from 
>> the *Brief Tiddler*, and not the *Unit Tiddler*.  So, how can I 
>> filter/modify tags that are based on fields in the Unit Tiddler, rather 
>> than those in the Brief Tiddler?  I think the logic I've written will do 
>> what I want (see below), IF I can figure out how to reference the correct 
>> fields.  Thanks in advance!
>>
>> Scott
>>   
>>
>> *Unit Tiddler*
>>
>> *Tags:* Title of Parent Unit
>>
>> *Tiddler Text:*
>>
>> ! Promoted Briefs
>> <$list filter=
>> "[!has[draft.of]tag[Brief]tag[{!!parent-opfac}]tag[{unit-opfac}]sort[created]]"
>> >
>> 
>> <$checkbox tag={{!!parent-opfac}}> __<$link to={{!!title}}><$view 
>> field="title"/>__
>> 
>> 
>>
>> ! Incoming Briefs 
>> <$list 
>> filt

[tw5] Referencing a Field in another Tiddler during Transclusion

2020-06-21 Thread Scott Masterson
Hello All,

This is my first post here, so please forgive my naiveite and beginner 
status.  BLUF: I'm trying to create a prototype for a notification system 
for a relatively complex military organization, and I'm trying to figure 
out how to reference the fields of one Tiddler, while transcluding another 
Tiddler field into a list in that Tiddler?

Now here's the long-winded version.  Each *Unit Tiddler* in the 
organization has a field with that unit's ID, called the *unit-opfac*, as 
well as a field for its parent unit, called the *parent-opfac*.  A *Brief 
Tiddler* can be created (from a button generating a Tiddler based on the 
Brief Template) at any unit level and will be tagged with *[Brief]* as well 
as its *unit-opfac* and its *parent-opfac*.  I want to use the *checkbox 
*widget 
to allow each brief to be promoted up the organizational chain by being 
tagged with the unit's *parent-opfac*. This will allow someone at each unit 
level to promote a brief up the chain at will.  I wrote the below code and 
thought I was doing great - until I realized that the *parent-opfac* and 
*unit-opfac* fields that I was transcluding were from the *Brief Tiddler*, 
and not the *Unit Tiddler*.  So, how can I filter/modify tags that are 
based on fields in the Unit Tiddler, rather than those in the Brief 
Tiddler?  I think the logic I've written will do what I want (see below), 
IF I can figure out how to reference the correct fields.  Thanks in advance!

Scott
  

*Unit Tiddler*

*Tags:* Title of Parent Unit

*Tiddler Text:*

! Promoted Briefs
<$list filter=
"[!has[draft.of]tag[Brief]tag[{!!parent-opfac}]tag[{unit-opfac}]sort[created]]"
>

<$checkbox tag={{!!parent-opfac}}> __<$link to={{!!title}}><$view 
field="title"/>__



! Incoming Briefs 
<$list 
filter="[tag:[Brief]tag:{!!unit-opfac}!tag[{!!parent-opfac}]sort[created]]">

<$checkbox tag={{!!parent-opfac}}> <$link to={{!!title}}><$view 
field="title"/>



*Fields:*
parent-opfac: 14-0
unit-opfac: 14-33296


*Brief Tiddler*

*Tags:* Every unit-opfac the Brief Tiddler is promoted to.

*Tiddler Text: *Some briefing text...

*Fields:* 
parent-opfac: 14-33296
unit-opfac: 14-33296-P

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7fd41705-aba9-4d17-8d76-bc530e58e87do%40googlegroups.com.


[tw] Using HideWhenPlugin with SimpleRolesPlugin

2012-10-18 Thread Scott Masterson
Good morning all,

I'm almost finished building a TW-based quiz for the folks in my
division, and am having a problem with my HideWhenPlugin syntax.  I'm
using the SimpleRolesPlugin to determine what content gets seen
(hiding answers from quiz-takers), but when I try to use it with the
HideWhenPlugin, I get error in macro showWhen.  The goal is to
show the edit button for Admin roles, but not show it for everyone
else.

Here's what I have so far (in ViewTemplate):

div class='toolbar' macro=showWhen
window.simpleRoles.contains('Admin')
span macro='toolbar collapseOthers collapseTiddler closeTiddler
jump editTiddler'/span
/div
div class='toolbar'  macro=else
 span macro='toolbar collapseOthers collapseTiddler closeTiddler
jump'/span
/div

Any thoughts?

v/r,
Scott



-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Using HideWhenPlugin with SimpleRolesPlugin

2012-10-18 Thread Scott Masterson
Didn't work (I did add class='toolbar', but that didn't affect it):

div class='toolbar' macro=simpleroles Admin
span macro='toolbar collapseOthers collapseTiddler closeTiddler
jump editTiddler'/span
/div
div class='toolbar' macro=simpleroles !Admin
 span macro='toolbar collapseOthers collapseTiddler closeTiddler
jump'/span
/div

Now I don't get the macro error, but the edit button is gone and
doesn't come back for any username.  ???

v/r,
Scott

On Oct 18, 9:11 am, whatever kbrezov...@gmail.com wrote:
 Hi!

 Try this:

 div macro=simpleroles Admin
 all the stuff for admins
 /div
 div macro=simpleroles !Admin
 all the stuff for everyone else
 /div

 w

 On 18 okt., 13:53, Scott Masterson lcdr.j.s.master...@gmail.com
 wrote:



  Good morning all,

  I'm almost finished building a TW-based quiz for the folks in my
  division, and am having a problem with my HideWhenPlugin syntax.  I'm
  using the SimpleRolesPlugin to determine what content gets seen
  (hiding answers from quiz-takers), but when I try to use it with the
  HideWhenPlugin, I get error in macro showWhen.  The goal is to
  show the edit button for Admin roles, but not show it for everyone
  else.

  Here's what I have so far (in ViewTemplate):

  div class='toolbar' macro=showWhen
  window.simpleRoles.contains('Admin')
      span macro='toolbar collapseOthers collapseTiddler closeTiddler
  jump editTiddler'/span
  /div
  div class='toolbar'  macro=else
       span macro='toolbar collapseOthers collapseTiddler closeTiddler
  jump'/span
  /div

  Any thoughts?

  v/r,
  Scott- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Using HideWhenPlugin with SimpleRolesPlugin

2012-10-18 Thread Scott Masterson
I tried this, but it doesn't work - the editTiddler button never
shows, regardless of the username entered:

!--{{{--
div macro=simpleroles Admin
   div class='toolbar' macro='toolbar collapseOthers collapseTiddler
closeTiddler jump editTiddler'/div
   div class='title' macro='view title'/div
   div class='subtitle'span macro='view modified date'/span/
div
   div class='viewer' macro='view text wikified'/div
   span macro='setUserName'/span
   div class='tagClear'/div
/div
div macro=simpleroles !Admin
   div class='toolbar' macro='toolbar collapseOthers collapseTiddler
closeTiddler jump'/div
   div class='title' macro='view title'/div
   div class='subtitle'span macro='view modified date'/span/
div
   div class='viewer' macro='view text wikified'/div
   span macro='setUserName'/span
   div class='tagClear'/div
/div
!--}}}--

This works fine, but doesn't use the SimpleRolesPlugin (so I'd have to
explicitly define the list, which I don't want to do):
!--{{{--
div class='toolbar' macro=showWhen config.options.txtUserName ==
'XXX' 
span macro='toolbar collapseOthers collapseTiddler closeTiddler
jump editTiddler'/span
/div
div class='toolbar'  macro=else
 span macro='toolbar collapseOthers collapseTiddler closeTiddler
jump'/span
/div
div class='title' macro='view title'/div
div class='subtitle'span macro='view modified date'/span/div
div class='viewer' macro='view text wikified'/div
span macro='setUserName'/span
div class='tagClear'/div
!--}}}--

As I understand it, the span macro='setUserName'/span line will
force the user to enter their username at startup, but then once
that's done it won't ask for it again - and in practice that's how it
works (which is what I want).  Could that be causing a problem with
SimpleRolesPlugin.

Also, I eliminated the PowerUser role in the SimpleRolesPlugin and
SimpleRolesConfig, as I don't need it.

Thanks for the assistance, I'm trying to get this last problem fixed
before I go on vacation this afternoon!

v/r,
Scott

On Oct 18, 10:34 am, whatever kbrezov...@gmail.com wrote:
 You don't need to add the class. Anyway, this is what one of my
 ViewTemplates looks, so you can compare:

 !--{{{--
 div macro=simpleroles Admin
 div class='toolbar' macro='toolbar
 [[ToolbarCommands::ViewToolbar]]'/div
 div class='title' macro='view title'/div
 div class='subtitle'span macro='view modifier link'/span, span
 macro='view modified date'/span (span macro='message
 views.wikified.createdPrompt'/span span macro='view created
 date'/span)/div
 div macro='showWhenTagged PMaC'
 div macro='showWhen config.options.chkLearningMode==true'
 div macro='annotations'/div
 /div
 /div
 div class='tagged' macro='tagging'/div
 div class='tagged' macro='tags'/div
 div class='viewer' macro='view text wikified'/div
 div class='viewer'
 span macro='showWhenTagged Customer'
 span macro='formTiddler formCustomer'/span
 /span
 /div
 div class='tagClear'/div
 span macro='autoRefresh'/span
 /div
 div macro=simpleroles !Admin
 div class='title' macro='view title'/div
 div macro='showWhenTagged PMaC'
 div macro='showWhen config.options.chkLearningMode==true'
 div macro='annotations'/div
 /div
 /div
 div class='viewer' macro='view text wikified'/div
 div class='viewer'
 span macro='showWhenTagged translator_dashboard'
 span macro='formTiddler formTranslatorDashboardUserView'/span
 /span
 span macro='showWhenTagged Admin'
 span macro='tiddler ./non-Admin'/span
 /span
 /div
 span macro='autoRefresh'/span
 /div
 !--}}}--

 Hope it helps. Also, see the original thread on SimpleRolesPlugin (1).
 Otherwise, can you put a sample online, so we can take a look?

 (1)https://groups.google.com/group/tiddlywiki/browse_thread/thread/1041f...

 w

 On 18 okt., 15:54, Scott Masterson lcdr.j.s.master...@gmail.com
 wrote:



  Didn't work (I did add class='toolbar', but that didn't affect it):

  div class='toolbar' macro=simpleroles Admin
      span macro='toolbar collapseOthers collapseTiddler closeTiddler
  jump editTiddler'/span
  /div
  div class='toolbar' macro=simpleroles !Admin
       span macro='toolbar collapseOthers collapseTiddler closeTiddler
  jump'/span
  /div

  Now I don't get the macro error, but the edit button is gone and
  doesn't come back for any username.  ???

  v/r,
  Scott

  On Oct 18, 9:11 am, whatever kbrezov...@gmail.com wrote:

   Hi!

   Try this:

   div macro=simpleroles Admin
   all the stuff for admins
   /div
   div macro=simpleroles !Admin
   all the stuff for everyone else
   /div

   w

   On 18 okt., 13:53, Scott Masterson lcdr.j.s.master...@gmail.com
   wrote:

Good morning all,

I'm almost finished building a TW-based quiz for the folks in my
division, and am having a problem with my HideWhenPlugin syntax.  I'm
using the SimpleRolesPlugin to determine what content gets seen
(hiding answers from quiz-takers), but when I try to use it with the
HideWhenPlugin, I get error in macro showWhen.  The goal is to
show the edit button for Admin roles, but not show

[tw] Re: Using HideWhenPlugin with SimpleRolesPlugin

2012-10-18 Thread Scott Masterson
Nevermind, I found the error!

I was calling the 'setUserName' macro AFTER I was calling 'simpleroles
Admin' ... so on startup it was username=Your Last Name, which is not
an Admin role ... stupid mistake.  Thanks for all the help!

v/r,
Scott

On Oct 18, 11:59 am, Scott Masterson lcdr.j.s.master...@gmail.com
wrote:
 I tried this, but it doesn't work - the editTiddler button never
 shows, regardless of the username entered:

 !--{{{--
 div macro=simpleroles Admin
    div class='toolbar' macro='toolbar collapseOthers collapseTiddler
 closeTiddler jump editTiddler'/div
    div class='title' macro='view title'/div
    div class='subtitle'span macro='view modified date'/span/
 div
    div class='viewer' macro='view text wikified'/div
    span macro='setUserName'/span
    div class='tagClear'/div
 /div
 div macro=simpleroles !Admin
    div class='toolbar' macro='toolbar collapseOthers collapseTiddler
 closeTiddler jump'/div
    div class='title' macro='view title'/div
    div class='subtitle'span macro='view modified date'/span/
 div
    div class='viewer' macro='view text wikified'/div
    span macro='setUserName'/span
    div class='tagClear'/div
 /div
 !--}}}--

 This works fine, but doesn't use the SimpleRolesPlugin (so I'd have to
 explicitly define the list, which I don't want to do):
 !--{{{--
 div class='toolbar' macro=showWhen config.options.txtUserName ==
 'XXX' 
     span macro='toolbar collapseOthers collapseTiddler closeTiddler
 jump editTiddler'/span
 /div
 div class='toolbar'  macro=else
      span macro='toolbar collapseOthers collapseTiddler closeTiddler
 jump'/span
 /div
 div class='title' macro='view title'/div
 div class='subtitle'span macro='view modified date'/span/div
 div class='viewer' macro='view text wikified'/div
 span macro='setUserName'/span
 div class='tagClear'/div
 !--}}}--

 As I understand it, the span macro='setUserName'/span line will
 force the user to enter their username at startup, but then once
 that's done it won't ask for it again - and in practice that's how it
 works (which is what I want).  Could that be causing a problem with
 SimpleRolesPlugin.

 Also, I eliminated the PowerUser role in the SimpleRolesPlugin and
 SimpleRolesConfig, as I don't need it.

 Thanks for the assistance, I'm trying to get this last problem fixed
 before I go on vacation this afternoon!

 v/r,
 Scott

 On Oct 18, 10:34 am, whatever kbrezov...@gmail.com wrote:



  You don't need to add the class. Anyway, this is what one of my
  ViewTemplates looks, so you can compare:

  !--{{{--
  div macro=simpleroles Admin
  div class='toolbar' macro='toolbar
  [[ToolbarCommands::ViewToolbar]]'/div
  div class='title' macro='view title'/div
  div class='subtitle'span macro='view modifier link'/span, span
  macro='view modified date'/span (span macro='message
  views.wikified.createdPrompt'/span span macro='view created
  date'/span)/div
  div macro='showWhenTagged PMaC'
  div macro='showWhen config.options.chkLearningMode==true'
  div macro='annotations'/div
  /div
  /div
  div class='tagged' macro='tagging'/div
  div class='tagged' macro='tags'/div
  div class='viewer' macro='view text wikified'/div
  div class='viewer'
  span macro='showWhenTagged Customer'
  span macro='formTiddler formCustomer'/span
  /span
  /div
  div class='tagClear'/div
  span macro='autoRefresh'/span
  /div
  div macro=simpleroles !Admin
  div class='title' macro='view title'/div
  div macro='showWhenTagged PMaC'
  div macro='showWhen config.options.chkLearningMode==true'
  div macro='annotations'/div
  /div
  /div
  div class='viewer' macro='view text wikified'/div
  div class='viewer'
  span macro='showWhenTagged translator_dashboard'
  span macro='formTiddler formTranslatorDashboardUserView'/span
  /span
  span macro='showWhenTagged Admin'
  span macro='tiddler ./non-Admin'/span
  /span
  /div
  span macro='autoRefresh'/span
  /div
  !--}}}--

  Hope it helps. Also, see the original thread on SimpleRolesPlugin (1).
  Otherwise, can you put a sample online, so we can take a look?

  (1)https://groups.google.com/group/tiddlywiki/browse_thread/thread/1041f...

  w

  On 18 okt., 15:54, Scott Masterson lcdr.j.s.master...@gmail.com
  wrote:

   Didn't work (I did add class='toolbar', but that didn't affect it):

   div class='toolbar' macro=simpleroles Admin
       span macro='toolbar collapseOthers collapseTiddler closeTiddler
   jump editTiddler'/span
   /div
   div class='toolbar' macro=simpleroles !Admin
        span macro='toolbar collapseOthers collapseTiddler closeTiddler
   jump'/span
   /div

   Now I don't get the macro error, but the edit button is gone and
   doesn't come back for any username.  ???

   v/r,
   Scott

   On Oct 18, 9:11 am, whatever kbrezov...@gmail.com wrote:

Hi!

Try this:

div macro=simpleroles Admin
all the stuff for admins
/div
div macro=simpleroles !Admin
all the stuff for everyone else
/div

w

On 18 okt., 13:53, Scott Masterson lcdr.j.s.master

[tw] Re: Using randomTiddlers macro with openStory/saveStory marcros

2012-07-16 Thread Scott Masterson
Tobias,

Thanks, that worked beautifully! My only remaining problem is that I want to 
invoke the macro with a button or link, but I don't know the syntax?

V/r
Scott

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/8gBQsxqBwDoJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Using randomTiddlers macro with openStory/saveStory marcros

2012-07-16 Thread Scott Masterson
Disregard my last, I figured it out! Thanks for all the help.

V/r,
Scott 

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/lOX8tkxttlkJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Programatically Change Title Color

2012-07-16 Thread Scott Masterson
My first question to the group was answered so successfully, I thought I'd 
try again. 

In my TW, I'm using stories and randomtiddlers to generate random tests for 
our investigators (distributed as stand-alone tests).  Since I have it 
opening stories of varying lengths, I'd like to add a Save and Mark 
Complete link at the bottom of each question (tiddlers).  Save is 
obvious, but the Mark Complete macro would change the the tiddler.title 
color from red to green (or other colors passed as parameters) - a visual 
indicator as the work through the test/story.  I've been trying my hand at 
writing the macro, but coming up short.  Can anyone help?  Thanks!

Here's the TW:  https://dl.dropbox.com/u/3946724/Test-Bank.html 

v/r,
Scott Masterson

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/oH9Of0w-Ac0J.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Using randomTiddlers macro with openStory/saveStory marcros

2012-07-13 Thread Scott Masterson
Thanks for answer so quick Tobias!  Those changes are useful, but not 
exactly what I was looking for.  Since I'm using the saveStoryPlugin to 
save my layout as a Test (there are 3 types), I need a macro that will 
close everything and theen open 25 random tiddlers.  Right now, the titles 
of the 25 tiddlers are written to a tiddler, but I need the actual tiddlers 
to be open, so that I can save them as a story.  Any ideas?  Here's my 
config file for randomTiddlers:

|''max''|10|
|''sample''||
|''tagged''|[[Marine Casualty]]|
|''exclude''|systemConfig|
|''content''|Source|
|''type''|none|
|''required''|no|
|''sort''|modified|
|''dateformat''|DD. MMM, |
!Template
!!![[%0]]

As far as showing nestedSlider to certain users, I'm going to try to use 
your SimpleRolesPlugin.  Thanks again!

Scott

On Friday, July 13, 2012 4:02:39 AM UTC-4, Tobias Beer wrote:

 Hi Scott,

 I have released a new version 1.0.2 at...
 http://randomtiddlers.tiddlyspace.com/

 It allows for two new parameters:
 save: yes / no
 saveWithTags: Tag Tag Tag

 If you set *save* to *yes,* you are prompted for a tiddler title to which 
 the output will be saved.
 With *saveWithTags* you can give such a tiddler certain tags when being 
 created.

 For more info, see...
 http://tobibeer.tiddlyspace.com/#RandomTiddlers


 Am Freitag, 13. Juli 2012 07:09:59 UTC+2 schrieb Scott Masterson:

 Hello all, 

 I'm up against a timeline and have hit 2 roadblocks and could really use 
 some help.  I have a TW that's going to be used as a distributed test. 
  What I want is for the test administrator to be able to click a button and 
 get a test consisting of 25 random questions from a pool of 100.  So, I 
 used the randomTiddlers macro, which works perfectly - it fills the tiddler 
 with the titles of 25 random tiddlers.  

 But what I'd really like it to do is close all open tidders and then open 
 25 random tiddlers.  Then I'll be able to click on Save Test in the right 
 menu (it's already there).  Save Test calls the saveStory macro and 
 currently works fine.  The part I can't figure out is how to open 25 random 
 tiddlers?

 The other problem is, I'd like to find some way to have nestedSliders 
 accessible only for people with a specific UserName?  I'm using the 
 formTiddlersPlugin and want to put the answers below the questions in a 
 slider, but only the test grade should be able to open the slider. How can 
 I do that?

 Here's the TW in my Dropbox folder:  
 https://dl.dropbox.com/u/3946724/Test-Bank.html   (the right menu toggle 
 is in the top menu).

 I'd appreciate any help ... thanks!
 Scott



-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/6TNhuAcujIMJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Using randomTiddlers macro with openStory/saveStory marcros

2012-07-13 Thread Scott Masterson
So, an update...

This is the macro I'm using to open a quiz/test:  openStory MC-Quiz Open 
Marine Casualty Quiz
This is the macro I'm using to generate a random list of questions: 
 randomTiddlers MC-RandomTiddlersConfig

What I want to do is this:   

openStory randomTiddlers MC-RandomTiddlersConfig Open Marine 
Casualty Quiz

Notionally, that would open 25 random tiddlers, which I could then save 
with:  saveStory MC-Quiz Save MC Quiz.

That's clearly the wrong code, but my coding skills are rusty and I'm not 
sure how to format the call - if it's even possible. Any thoughts?

Thanks,
Scott

On Friday, July 13, 2012 8:38:55 AM UTC-4, Scott Masterson wrote:

 Thanks for answer so quick Tobias!  Those changes are useful, but not 
 exactly what I was looking for.  Since I'm using the saveStoryPlugin to 
 save my layout as a Test (there are 3 types), I need a macro that will 
 close everything and theen open 25 random tiddlers.  Right now, the titles 
 of the 25 tiddlers are written to a tiddler, but I need the actual tiddlers 
 to be open, so that I can save them as a story.  Any ideas?  Here's my 
 config file for randomTiddlers:

 |''max''|10|
 |''sample''||
 |''tagged''|[[Marine Casualty]]|
 |''exclude''|systemConfig|
 |''content''|Source|
 |''type''|none|
 |''required''|no|
 |''sort''|modified|
 |''dateformat''|DD. MMM, |
 !Template
 !!![[%0]]

 As far as showing nestedSlider to certain users, I'm going to try to use 
 your SimpleRolesPlugin.  Thanks again!

 Scott

 On Friday, July 13, 2012 4:02:39 AM UTC-4, Tobias Beer wrote:

 Hi Scott,

 I have released a new version 1.0.2 at...
 http://randomtiddlers.tiddlyspace.com/

 It allows for two new parameters:
 save: yes / no
 saveWithTags: Tag Tag Tag

 If you set *save* to *yes,* you are prompted for a tiddler title to 
 which the output will be saved.
 With *saveWithTags* you can give such a tiddler certain tags when being 
 created.

 For more info, see...
 http://tobibeer.tiddlyspace.com/#RandomTiddlers


 Am Freitag, 13. Juli 2012 07:09:59 UTC+2 schrieb Scott Masterson:

 Hello all, 

 I'm up against a timeline and have hit 2 roadblocks and could really use 
 some help.  I have a TW that's going to be used as a distributed test. 
  What I want is for the test administrator to be able to click a button and 
 get a test consisting of 25 random questions from a pool of 100.  So, I 
 used the randomTiddlers macro, which works perfectly - it fills the tiddler 
 with the titles of 25 random tiddlers.  

 But what I'd really like it to do is close all open tidders and then 
 open 25 random tiddlers.  Then I'll be able to click on Save Test in the 
 right menu (it's already there).  Save Test calls the saveStory macro and 
 currently works fine.  The part I can't figure out is how to open 25 random 
 tiddlers?

 The other problem is, I'd like to find some way to have nestedSliders 
 accessible only for people with a specific UserName?  I'm using the 
 formTiddlersPlugin and want to put the answers below the questions in a 
 slider, but only the test grade should be able to open the slider. How can 
 I do that?

 Here's the TW in my Dropbox folder:  
 https://dl.dropbox.com/u/3946724/Test-Bank.html   (the right menu 
 toggle is in the top menu).

 I'd appreciate any help ... thanks!
 Scott


On Friday, July 13, 2012 8:38:55 AM UTC-4, Scott Masterson wrote:

 Thanks for answer so quick Tobias!  Those changes are useful, but not 
 exactly what I was looking for.  Since I'm using the saveStoryPlugin to 
 save my layout as a Test (there are 3 types), I need a macro that will 
 close everything and theen open 25 random tiddlers.  Right now, the titles 
 of the 25 tiddlers are written to a tiddler, but I need the actual tiddlers 
 to be open, so that I can save them as a story.  Any ideas?  Here's my 
 config file for randomTiddlers:

 |''max''|10|
 |''sample''||
 |''tagged''|[[Marine Casualty]]|
 |''exclude''|systemConfig|
 |''content''|Source|
 |''type''|none|
 |''required''|no|
 |''sort''|modified|
 |''dateformat''|DD. MMM, |
 !Template
 !!![[%0]]

 As far as showing nestedSlider to certain users, I'm going to try to use 
 your SimpleRolesPlugin.  Thanks again!

 Scott

 On Friday, July 13, 2012 4:02:39 AM UTC-4, Tobias Beer wrote:

 Hi Scott,

 I have released a new version 1.0.2 at...
 http://randomtiddlers.tiddlyspace.com/

 It allows for two new parameters:
 save: yes / no
 saveWithTags: Tag Tag Tag

 If you set *save* to *yes,* you are prompted for a tiddler title to 
 which the output will be saved.
 With *saveWithTags* you can give such a tiddler certain tags when being 
 created.

 For more info, see...
 http://tobibeer.tiddlyspace.com/#RandomTiddlers


 Am Freitag, 13. Juli 2012 07:09:59 UTC+2 schrieb Scott Masterson:

 Hello all, 

 I'm up against a timeline and have hit 2 roadblocks and could really use 
 some help.  I have a TW that's going to be used as a distributed test. 
  What I want is for the test administrator to be able to click

[tw] Re: Using randomTiddlers macro with openStory/saveStory marcros

2012-07-13 Thread Scott Masterson
Tobias,

I'm apparently doing something wrong.  I updated the plugin, added 
|''save''|yes| and |''saveWithTags''|MC-Quiz| to the config file and put 
thee randomTiddlersMacro MC-RandomTiddlersConfig macro in a tiddler. 
 When I save and reload, it asks me for a tiddler name (I'd really like to 
define the tiddler name in the config file), and then when I enter it, it 
asks me if I want to overwrite the existing tiddler.  So far, ok ...but the 
name changes from MC-Quiz (my entered tiddler  name) to undefined.  When 
I click Ok, it creates a tiddler named undefined and tagged with MC-Quiz, 
which makes sense.  But if I try to change undefined to MC-Quiz in the 
dialog, it won't let me click Ok and move on.  If I do allow the tiddler to 
be created with undefined, then when I try to open the story, it destroys 
the whole tiddlywiki.

I'm probably just missing  something, but how can I define the name of the 
output tiddler in the config file and NOT have it ask me to overwrite it? 
 I plan on putting the 3 macros in a systemConfig tiddler and having  them 
generate a new quiz each time it's loaded.

Scott

On Friday, July 13, 2012 10:31:27 AM UTC-4, Tobias Beer wrote:

 Hi Scott,

 I am positive that the current implementation actually allows you to do 
 what you want.

 *save:yes*
 *SafeWithTags: story
 *
 *!Template*
 *[[%0]]*

 So this will save the list to a tiddler in the form of a story with 
 the name you specify.

 To open that story, you need something like this somewhere:
 *openStory popup label tooltip*

 ...and then chose the story you just saved.

 However, I have added an option to override any existing tiddler with 
 version 1.0.3:
 http://randomtiddlers.tiddlyspace.com/

 Tobias.


-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/VLBqg-I38I8J.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Using randomTiddlers macro with openStory/saveStory marcros

2012-07-12 Thread Scott Masterson
Hello all, 

I'm up against a timeline and have hit 2 roadblocks and could really use 
some help.  I have a TW that's going to be used as a distributed test. 
 What I want is for the test administrator to be able to click a button and 
get a test consisting of 25 random questions from a pool of 100.  So, I 
used the randomTiddlers macro, which works perfectly - it fills the tiddler 
with the titles of 25 random tiddlers.  

But what I'd really like it to do is close all open tidders and then open 
25 random tiddlers.  Then I'll be able to click on Save Test in the right 
menu (it's already there).  Save Test calls the saveStory macro and 
currently works fine.  The part I can't figure out is how to open 25 random 
tiddlers?

The other problem is, I'd like to find some way to have nestedSliders 
accessible only for people with a specific UserName?  I'm using the 
formTiddlersPlugin and want to put the answers below the questions in a 
slider, but only the test grade should be able to open the slider. How can 
I do that?

Here's the TW in my Dropbox folder: 
 https://dl.dropbox.com/u/3946724/Test-Bank.html   (the right menu toggle 
is in the top menu).

I'd appreciate any help ... thanks!
Scott

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/ePW915ICISwJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.