@TonGerner: Great plugins for top menu & other things! A few questions...

119 views
Skip to first unread message

stevesuny

unread,
Jun 14, 2017, 3:47:34 PM6/14/17
to tiddl...@googlegroups.com
@TonGerner: Great plugins in http://tongerner.tiddlyspot.com/

I'm using many of them (including your color scheme!) in a wiki I'm using for a presentation tomorrow at a conference

I have a few questions about how to change things in my wiki --  TiddlyWiki for Web Archivists.

(1) How would I put the title of the wiki in the top right bar (I have no buttons there anymore).

(2) How do I control the sort order of tiddlers tagged to elements in topmenu? (tiddler: 

$:/plugins/tongerner/topmenu/topmenu)



Thanks!


//steve. 

Ton Gerner

unread,
Jun 14, 2017, 4:40:43 PM6/14/17
to TiddlyWiki
Hi Steve,


On Wednesday, June 14, 2017 at 9:47:34 PM UTC+2, stevesuny wrote:
@TonGerner: Great plugins in http://tongerner.tiddlyspot.com/

I'm using many of them (including your color scheme!) in a wiki I'm using for a presentation tomorrow at a conference

That's great, I feel honoured.
 
I have a few questions about how to change things in my wiki --  TiddlyWiki for Web Archivists.

(1) How would I put the title of the wiki in the top right bar (I have no buttons there anymore).
 
You can tag $:/SiteTitle with $:/tags/TopRightBar
If you want a bigger font use something like:

@@font-size: 2em;TiddlyWiki for Web Archivists@@


(2) How do I manage the sort order of tiddlers tagged to elements in topmenu? (tiddler: 

$:/plugins/tongerner/topmenu/topmenu)

 

I think you mean the order of the menu items.
At the moment the menu items are sorted alphabetically.
You can change this as follows:
Open $:/plugins/tongerner/topmenu/menu-template
Change the line

<$list filter="[all[current]tagging[]]" template="$:/core/ui/ListItemTemplate"/>

to

<$list filter="[all[current]tagging[]sort[order]]" template="$:/core/ui/ListItemTemplate"/>

and add to all menu item tiddlers a field 'order' containing the item position. The the menu items are then sorted according to the number in the order field.

Hope that helps.

Cheers,

Ton

stevesuny

unread,
Jun 14, 2017, 5:01:11 PM6/14/17
to TiddlyWiki
Thanks!!! I can't tell you how much I appreciate that, and how much your plugins have helped me reconceptualize the way a tiddlywiki can look and feel. I'm optimistic this approach will help my audience consider using it for their projects (which is, of course, the purpose of the talk...). //steve.

Ton Gerner

unread,
Jun 14, 2017, 5:01:13 PM6/14/17
to TiddlyWiki
Hi Steve,

One correction:


<$list filter="[all[current]tagging[]sort[order]]" template="$:/core/ui/ListItemTemplate"/>

must be (note nsort):

<$list filter="[all[current]tagging[]nsort[order]]" template="$:/core/ui/ListItemTemplate"/>

Cheers,

Ton

Ton Gerner

unread,
Jun 15, 2017, 1:15:39 AM6/15/17
to TiddlyWiki
Hi Steve,

Lateron I thought the new drag & drop must be possible for the menu items
As a quick fix you can replace the contents of $:/plugins/tongerner/topmenu/menu-template by the contents of $:/core/ui/TagTemplate which adds the drag & drop possibility.

Cheers,

Ton
Reply all
Reply to author
Forward
0 new messages