List of all authors of all tiddlers (contained in the 'author' field)?

170 views
Skip to first unread message

Gordan Nia

unread,
Apr 11, 2017, 9:45:56 AM4/11/17
to TiddlyWiki
Hi!

How to make a list of all authors who are written in the field "author " of all non-sistem tiddlers? It would be great to get them as links that display lists fo tiddlers that they belong to them. I can not get the logic how to do it in the easy way? Is it possible?

Thank you in advance for your advice and efforts!
Greetings

Mark S.

unread,
Apr 11, 2017, 10:40:54 AM4/11/17
to TiddlyWiki
You can try this:

<$list filter="[all[tiddlers]!is[system]each[creator]get[creator]]" variable="author">

!! <
<author>>

<$list filter="[creator
<author>!is[system]]">
<$link><$view field="title"/></$link>
<br/>
</$list>

</$list>


HTH
Mark

Mark S.

unread,
Apr 11, 2017, 10:45:12 AM4/11/17
to TiddlyWiki
Oops. I thought you were looking for "creator".  This should work instead:


<$list filter="[all[tiddlers]!is[system]each[author]get[author]]" variable="author">

!! <<author>>

<$list filter="[author<author>!is[system]]">

Dolphik a

unread,
Apr 12, 2017, 1:18:35 PM4/12/17
to tiddl...@googlegroups.com
Hello Mark,

and what if I would like to list same way by given tags?

TAG
- tiddler 1
- tiddler 2

ANOTHER TAG
- xxxx
- yyyy

Many thanks!

PS> expandable TOC macro is not suitable for me because then I need to add manually tags to the list (and tags will be changing all the time)

Mark S.

unread,
Apr 12, 2017, 1:37:16 PM4/12/17
to TiddlyWiki
This seems like a very different question. It's unclear what your source of tag names would be. Here is one approach where you could make a filter with a list of tag names you wanted to report on:

\define listbytag(tagn)
<<tagname>> <br/>
 
<$list filter="[tag<tagname>]">
<$view field="title"/><br/>
</$list>
<br/
>
\end

<$list filter="[[Tag 1]] [[Tag 2]]" variable="tagname">
<<listbytag>>
</$list>

Good luck!
Mark

Dolphik a

unread,
Apr 12, 2017, 1:47:01 PM4/12/17
to TiddlyWiki
I would like to list tags automatically, not to put them manually. Just list with all tags and links to tiddlers which has that particular tag

Thanks!

Mark S.

unread,
Apr 12, 2017, 2:16:40 PM4/12/17
to TiddlyWiki
Something like this might work as a starter.


\define listbytag(tagn)
!! <<tagname>>
 
<$list filter="[tag<tagname>sort[]]">

* <$link><$view field="title"/></$link>
</$list>
\end

<$list filter="[all[tiddlers]tags[]!is[system]sort[]]" variable="tagname">

<<listbytag>>
</
$list>

Dolphik a

unread,
Apr 12, 2017, 3:01:42 PM4/12/17
to TiddlyWiki
Perfect! thank you!

Gordan Nia

unread,
May 5, 2017, 3:05:04 PM5/5/17
to TiddlyWiki
Thank you, very much... It is working very good... I have to analyse it...

G.
Reply all
Reply to author
Forward
0 new messages