[TW5] Adding a tiddler to favorite-list without adding tag or field?

162 views
Skip to first unread message

magev958

unread,
Jul 27, 2015, 3:19:30 AM7/27/15
to TiddlyWiki
Hi all
I want to have a shared TW where the user can add tiddler to his / her own favorite list of his / her own offline copy. The TW: n will (hopefully) be able to sync against a TiddlySpace instance so tiddler may not be modified with new tags or fields. Ideally, a button in the View Toolbar that adds the tiddler in a list in a intended tiddler.
Hope you understand what I want to convey, English is not my spoken language
 
/Magnus

PMario

unread,
Jul 27, 2015, 3:52:09 AM7/27/15
to TiddlyWiki, magnus...@gmail.com
Hi Magnus,

Your users can create a tiddler eg: myFavorites, that list all tiddlers they want as favorites. eg

myFavorites

tiddlerA
tiddlerB
[[tiddler name with spaces]]



To get a list of favorites you can use:

<<list-links filter:"[list[myFavorites!!text]]">>


If you go to the ControlPanel: Info: DefaultTiddlers and enter the following filter, the favorite tiddlers will be automatically opened every time the TW is loads.

[list[myFavorites!!text]]


also see: http://tiddlywiki.com/#list%20Operator:%5b%5blist%20Operator%5d%5d%20%5b%5blist%20Operator%20%28Examples%29%5d%5d

This is the simplest version I can think of.
If you want a "pin button" as you describe, imo we will need some tagging magic. ... but I need to think about it, a little bit more :)

hope that helps
mario



PMario

unread,
Jul 27, 2015, 4:17:17 AM7/27/15
to tiddl...@googlegroups.com, magnus...@gmail.com, pmar...@gmail.com
The second way could be:

We can use the checkbox widget to add some tags to the "myFavorites" tiddler, in the view template:

<$checkbox tiddler=myFavorites tag={{!!title}}> favorite</$checkbox>


Instead of the "favorite" text you may use an image. ... Some CSS to modify, how it looks ... and so on. But I think the principle should be clear.


To create a list use:

<<list-links filter:"[list[myFavorites!!tags]]">>


To set the DefaultTiddlers use:

[list[myFavorites!!tags]]


Since there are many, many functions to manipulate TW based on tags, imo this is the way to go.


The advantage of this mechanism is, that you don't need to modify any of your shared tiddlers. All the important stuff can be on the users local copy only. .. So if you download a new version form TS and import the users version, you should have no problems.

------------------

btw: It's not possible anymore, to download a TW, modify it locally and sync it back to TS. Due to browser security restrictions.


have fun!
mario

magev958

unread,
Jul 27, 2015, 4:40:30 AM7/27/15
to TiddlyWiki, pmar...@gmail.com
That is a superfast & supersweet answer!
Thank you, I'l try it right now :)

magev958

unread,
Jul 27, 2015, 9:58:41 AM7/27/15
to TiddlyWiki, pmar...@gmail.com, magnus...@gmail.com
Just wanted to say it worked as a charm! :)

PMario

unread,
Jul 27, 2015, 10:02:32 AM7/27/15
to TiddlyWiki, magnus...@gmail.com
On Monday, July 27, 2015 at 3:58:41 PM UTC+2, magev958 wrote:
Just wanted to say it worked as a charm! :)

Good. When finished, I'd be interested in the results :)
-m

magev958

unread,
Jul 28, 2015, 5:38:03 AM7/28/15
to TiddlyWiki, pmar...@gmail.com
Not finished, but I have a test-case at magnus-evald.tiddlyspace.com/tw5. In Swedish I'm afraid, but the code is in English ;)
Some trouble with lazy loading, the images and ToC won't show, but I'm pleased.
I'll use it to keep track of my orchids and hope to share it with my friends in the club. Right now only 1 genus and 26 species, but when I tried to load all 27000 species it got painfully slow.
To bad syncing won't work, maybe possible for user to send new tiddler to me by mail with a click of a button, and I manually add?

magev958

unread,
Jul 28, 2015, 5:40:44 AM7/28/15
to TiddlyWiki, pmar...@gmail.com
The "More", "Tools" and such is available from the 4:e button in sidebar. The lists I made with your help is in the tabs in the sidebar, real nice :)

magev958

unread,
Jul 28, 2015, 5:43:14 AM7/28/15
to TiddlyWiki, pmar...@gmail.com, magnus...@gmail.com
Search for "phrag" will show all content-tiddler

Birthe C

unread,
Jul 28, 2015, 7:33:18 AM7/28/15
to TiddlyWiki, pmar...@gmail.com, magnus...@gmail.com
Hi magev958

Following your link I get so many alerts, that it is really difficult to see anything else.

Alert text "Sync error while processing '$:/StoryList': XMLHttpRequest error code: 403"


Birthe

magev958

unread,
Jul 28, 2015, 8:07:22 AM7/28/15
to TiddlyWiki, pmar...@gmail.com, strikke...@googlemail.com
Hmm, when I try a different computer at work where I'm not logged in, I get the same. Seems the TW5 systemtiddler $:/StoryList does not hold its privacy-setting. I keep setting it to "public" but it keep geting "private".
Reply all
Reply to author
Forward
0 new messages