help on tiddlywiki quiz

131 views
Skip to first unread message

Dominik P.

unread,
Aug 21, 2016, 11:54:50 AM8/21/16
to tiddl...@googlegroups.com
tried to import the quiz (Example: Quiz creation) from http://tw5magick.tiddlyspot.com/ to the latest version of TW
i got the css working by changing $:/tags/stylesheet to $:/tags/Stylesheet
i imported 
but i cant get 
to do their stuff correctly (linkage doesnt show anything in example-questions-view and overview only shows the "website" tag header but no list)

any ideas?

Mark S.

unread,
Aug 21, 2016, 1:34:32 PM8/21/16
to TiddlyWiki
About the overall listing, probably there have been changes in TW5 in the last 2 years. This version works closer to the original:

<$list filter="[tag[Quiz]tags[]] -Quiz +[sort[title]]">

! <$view field="title"/>
<$list filter="[all[current]tagging[]] +[tag[Quiz]] +[sort[title]]">
<$link><$view field="title"/></$link>
<p/>
</$list>
</$list>


I changed "is[current]" to "all[current]", added a space before the header, and paragraph break after the items.

HTH
Mark

Dominik P.

unread,
Aug 21, 2016, 2:18:47 PM8/21/16
to TiddlyWiki
thanks that did the fix for http://tw5magick.tiddlyspot.com/#Overview%20of%20all%20Questions

<$list filter="[is[current]tag[Quiz]]"><hr>
<$list filter="[tag[Quiz]previous[]]">Back to <$link><$view field="title"/></$link><br></$list>
<$list filter="[tag[Quiz]next[]]">Next <$link><$view field="title"/></$link></$list>
</$list>

tried changing [is[current]tag[Quiz]] to [all[current]tag[Quiz]] but that didnt fix it

Mark S.

unread,
Aug 21, 2016, 4:22:06 PM8/21/16
to TiddlyWiki
You need to take out the prior.js and next.js, since TW5 now already has filters with those names in the core. However, they don't do the filters you want do. Instead use before and after filters. This worked for me:

<$list filter="[is[current]tag[Quiz]]"><hr>

<$list filter="[tag[Quiz]sort[]before
<currentTiddler>]">Back to <$link><$view field="title"/></$link></$list>
<$list filter="[tag[Quiz]sort[]after
<currentTiddler>]">Next <$link><$view field="title"/></$link></$list>
</$list>

Good luck!
Mark

Dominik P.

unread,
Aug 21, 2016, 4:34:37 PM8/21/16
to TiddlyWiki
thanks a ton! you made my day :D

Dominik P.

unread,
Aug 21, 2016, 6:38:40 PM8/21/16
to TiddlyWiki
is there a way to close the current tiddler when link is clicked with this?


Am Sonntag, 21. August 2016 22:22:06 UTC+2 schrieb Mark S.:

Mark S.

unread,
Aug 21, 2016, 7:12:41 PM8/21/16
to TiddlyWiki
If you don't mind buttons, this might work (in your linkage templated):

\define vroom(closeme:"tender" title:"Untitled") <$button><$action-navigate $to="$title$"/><$action-sendmessage $message="tm-close-tiddler" $param="$closeme$"/>$title$</$button>
<$list filter="[is[current]tag[Quiz]]" variable="callingTiddler"><hr>
<$list filter="[tag[Quiz]sort[]before<callingTiddler>]">Previous: <$macrocall $name="vroom" closeme=<<callingTiddler>> title=<<currentTiddler>>/
> </$list>
<$list filter="[tag[Quiz]sort[]after<currentTiddler>]">Next: <$macrocall $name="vroom" closeme=<<callingTiddler>> title=<<currentTiddler>>/
> </$list>
</
$list>


If you do mind buttons, I'm sure there's some way to apply CSS to make the buttons look like links.

Good luck!
Mark

Dominik P.

unread,
Aug 23, 2016, 6:13:56 AM8/23/16
to TiddlyWiki
thats perfect! thank you!
Reply all
Reply to author
Forward
0 new messages