using <$list filter= statement and have display items with hyperlink

125 views
Skip to first unread message

Bob Jansen

unread,
Apr 10, 2020, 11:51:45 PM4/10/20
to tiddl...@googlegroups.com
I am trying to set upan index page for items that all share a common tag.

The statement I am using is
 
<$list filter="[tag[Andrew C Frank]sort[title]]">* <$view field="title"/><br/></$list>

This displays a list of tiddlers each with the tag 'Andrew C Frank' and each item has an * in front so it appears as a bulleted list.

I would like each tiddler name to also have a hyperlink back to its owning tiddler but I can not fathom out how to do that.

Can someone provide some clues?

bobj

Peter Buyze

unread,
Apr 11, 2020, 1:02:24 AM4/11/20
to TiddlyWiki forum
Is this what you mean:

```
<div class="tc-table-of-contents">
    <<toc-selective-expandable "tag" sort[title]>>
    </div>
```

Note: tag is the name I gave to the tiddler that lists all the tags I have used. For each tag there is a tiddler with the title of the tag, and it is tagged itself with "tag", the latter being the tiddler at the beginning of the previous sentence.

I hope this makes sense.
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


11 Apr 2020, 06:51 by bob...@gmail.com:
I am trying to set upan index page for items that all share a common tag.

The statement I am using is
 
Enter code here.<$list filter="[tag[Andrew C Frank]sort[title]]">* <$view field="title"/><br/></$list>..

This displays a list of tiddlers each with the tag 'Andrew C Frank' and each item has an * in front so it appears as a bulleted list.

I would like each tiddler name to also have a hyperlink back to its owning tiddler but I can not fathom out how to do that.

Can someone provide some clues?

bobj


--
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.

Peter Buyze

unread,
Apr 11, 2020, 1:07:50 AM4/11/20
to TiddlyWiki forum

--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:


11 Apr 2020, 06:51 by bob...@gmail.com:
I am trying to set upan index page for items that all share a common tag.

The statement I am using is
 
Enter code here.<$list filter="[tag[Andrew C Frank]sort[title]]">* <$view field="title"/><br/></$list>..

This displays a list of tiddlers each with the tag 'Andrew C Frank' and each item has an * in front so it appears as a bulleted list.

I would like each tiddler name to also have a hyperlink back to its owning tiddler but I can not fathom out how to do that.

Can someone provide some clues?

bobj

A Gloom

unread,
Apr 11, 2020, 1:55:52 AM4/11/20
to TiddlyWiki
<$list filter="[tag[Andrew C Frank]sort[title]]">&bull; <$link/><br/></$list>



TonyM

unread,
Apr 11, 2020, 2:31:10 AM4/11/20
to TiddlyWiki
There is the list-links macro as well. Look it up on tiddlywiki.com

However I use the list more often as I then customise further.

<$list filter="yourfilter">

</$list>

Mohammad

unread,
Apr 11, 2020, 3:08:18 AM4/11/20
to tiddl...@googlegroups.com
Bob,
 When you have got great solutions one simpler is the below

<<list-links "[tag[Andrew C Frank]sort[title]]">>


OR

<<list-links "[tag[Andrew C Frank]sort[title]]"  type:""ol>>



if you like numbered list instead of bullet list!



PMario

unread,
Apr 11, 2020, 4:05:51 AM4/11/20
to TiddlyWiki

Lin Onetwo

unread,
Apr 11, 2020, 5:42:39 AM4/11/20
to TiddlyWiki
I personally use this in my Tag tiddler to show all tiddler with this tag:

<$macrocall $name="locator-view" baseTitle=<<currentTiddler>> />

It comes with hyperlink

在 2020年4月11日星期六 UTC+8上午11:51:45,Bob Jansen写道:

Bob Jansen

unread,
Apr 13, 2020, 11:24:46 PM4/13/20
to TiddlyWiki
Thanks everyone. I have used <$list filter="[tag[Andrew C Frank]sort[title]]">&bull; <$link/><br/></$list> And it does exactly what I need.

BobJ

A Gloom

unread,
Apr 15, 2020, 8:52:15 AM4/15/20
to TiddlyWiki
Thanks everyone. I have used <$list filter="[tag[Andrew C Frank]sort[title]]">&bull; <$link/><br/></$list> And it does exactly what I need.

The list-links macro does the same as the code you choose (and does bulleted (default) or numbered lists) but has one caveat-- it will display caption instead of title if the tiddler has one.

<<list-links "[tag[Andrew C Frank]sort[title]]">>


The ordered (numbered) list option had a typo, so it may not had worked

<<list-links "[tag[Andrew C Frank]sort[title]]"  type:""ol>>

should be:
type:"ol"

variations of the code you choose (i need to make it into a macro so you could reuse it any tiddler without having to type the widget everytime):

indented bulleted list

<ul><$list filter="[tag[Andrew C Frank]sort[title]]"><li><$link/></li></$list></ul>

numbered list

<ol><$list filter="[tag[Andrew C Frank]sort[title]]"><li><$link/></li></$list></ol>

with border framed list results:

<style>.ragsspan {border:solid 1px; border-radius:4px; padding:0px 4px 0px 4px;}
</style>
<$list filter="[tag[Andrew C Frank]]">

<span class="ragsspan"><$link/></span></$list>

<-- make sure the blank line between list widget and span is included -->

numbered table

<style>.ragstablenumb {counter-reset: serial-number; /* Set the serial number counter to 0 */}.ragstablenumb td:first-child:before {counter-increment: serial-number; /* Increment the serial number counter */ content: counter(serial-number); /* Display the counter */}
</style>
<table class="ragstablenumb"><$list filter="[tag[Andrew C Frank]]"><tr><td></td><td><$link><$view field="title"/></$link></td></tr></$list></table>

columns

<style>.threecolumns {
   display:block;
   column-count:3;
   column-gap:1em;
   -webkit-column-count:3;
   -webkit-column-gap:1em;}
</style>
@@.threecolumns
<$list filter="[tag[Andrew C Frank]]"><$link/><br/></$list>
@@

with frame bordered div that can be idented with css margin settings of the div:

<style>.threecolumns {
   display:block;
   column-count:3;
   column-gap:1em;
   -webkit-column-count:3;
   -webkit-column-gap:1em;
    border: dotted 2p;}
</style>
<div class="threecolumns">
<$list filter="[tag[Andrew C Frank]]"><$link/><br/></$list>
</div>
 
Reply all
Reply to author
Forward
0 new messages