A voting/rating button on tiddler

109 views
Skip to first unread message

Mohammad Rahmani

unread,
Feb 14, 2021, 3:57:09 PM2/14/21
to tiddl...@googlegroups.com
This is a rough idea for having a rating / voting button for tiddlers. It can be customized to be used even for tracking reading and so on!

Drag and drop the attached tiddler into https://tiddlywiki.com/
Note to the new buttons appeared before tiddler title

People with good CSS knowledge can help to have a better look and feel.
The code stores rating/voting in the same tiddler you rate, but it can be customized to store ratings in another tiddler(s)!

- Please contribute
- Customize and reshare!
- do you think this is useful at all?


Credits go to GitHub!



Best wishes
Mohammad
voting-rating-tiddler.tid

Mohammad

unread,
Feb 15, 2021, 12:39:48 AM2/15/21
to TiddlyWiki
This is a slightly better version of voting/rating tiddler

Change log
1. elements in separate tiddlers (e.g styles, macro, template, ...)  (to be a small plugin in future release)
2. only works on non-system tiddlers
3. uses colors for rating (red, yellow, grey, blue, green)


To give a try
1. Download the attached json file
3. drag and drop the json file into https://tiddlywiki.com/
4. look at the new small buttons appear at the left of title bar of NON system tiddlers
5. click on upvote / downvote buttons


How to contribute
- customize and re-share
- improve performance
- improve code simplicity
- use better css

Best wishes
Mohammad
voting-rating-tiddler-r2.json

Mohammad

unread,
Feb 15, 2021, 12:43:07 AM2/15/21
to TiddlyWiki
The votings/ratings are stored in a hidden tiddler $:/vote/dataTiddler
So, original tiddlers are rated will remain intact.

Using this separate tiddler for ratings there are some opportunities:
Ratings can be exported
Ratings can be listed e.g list all tiddlers with 5 stars or no star, ...

Mohammad Rahmani

unread,
Feb 15, 2021, 10:17:52 PM2/15/21
to tiddl...@googlegroups.com
TW-Vote plugin

Vote plugin lets you rate tiddlers. Both voting and ranking of tiddlers can be done.

Code and demo

For learning plugin features, syntax, tutorial and examples see the plugin demo and code pages

Demo: https://kookma.github.io/TW-Vote/
Code: https://github.com/kookma/TW-Vote

Best wishes
Mohammad

Mark S.

unread,
Feb 16, 2021, 11:18:00 AM2/16/21
to TiddlyWiki
Added to tiddlyWiki toolmap under Task management and productivity - miscellaneous.

Mohammad Rahmani

unread,
Feb 16, 2021, 11:44:56 AM2/16/21
to tiddl...@googlegroups.com
Thank you Mark.



Best wishes
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fe7c9c8e-8e30-4532-99c6-b78d6e5dec95n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages