Discussion:
[tw] [TW5] ListWidget: Comma Separated Output
Tobias Beer
2014-11-17 12:05:49 UTC
Permalink
How can I achieve a comma separated output using the ListWidget
<http://tiddlywiki.com/#ListWidget>?

For example, I want...

<$list filter="[all[current]tags[]]"/>

to list all tags as inline links, e.g.:

*TagA*, *TagB*, *TagC*

I guess what I want is to be able to specify a delimiter for the list
widget, preferably as wikitext.

Best wishes, Tobias.
--
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 post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
PMario
2014-11-17 12:49:40 UTC
Permalink
<$list filter="[all[current]tags[]]"><<currentTiddler>>, </$list>

If you want a link have a look at: http://tiddlywiki.com/#LinkWidget

<$list filter="[all[current]tags[]]"><$link><<currentTiddler>>,
</$link></$list>

-m
--
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 post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Stephan Hradek
2014-11-17 13:03:39 UTC
Permalink
Post by PMario
<$list filter="[all[current]tags[]]"><<currentTiddler>>, </$list>
If you want a link have a look at: http://tiddlywiki.com/#LinkWidget
<$list filter="[all[current]tags[]]"><$link><<currentTiddler>>,
</$link></$list>
-m
That would put a superfluouse comma at the end.

I fear at the moment this has to be done like this (not tested so errors
might be included)


<$list filter="[all[current]tags[]first[]]"><<currentTiddler>></$list>
<$list filter="[all[current]tags[]butfirst[]]">, <<currentTiddler>></$list>
--
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 post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Tobias Beer
2014-11-17 13:04:38 UTC
Permalink
<$list filter="[all[current]tags[]]"><$link><<currentTiddler>></$link>,
</$list>
Thanks Mario, especially for an example use of <<currentTiddler>>.

However, I don't want there to be a trailing or leading comma, hence this
thread.

Best wishes, Tobias.
--
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 post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Stephan Hradek
2014-11-17 13:06:18 UTC
Permalink
Post by PMario
<$list filter="[all[current]tags[]]"><<currentTiddler>>, </$list>
If you want a link have a look at: http://tiddlywiki.com/#LinkWidget
<$list filter="[all[current]tags[]]"><$link><<currentTiddler>>,
</$link></$list>
-m
That would put a superfluouse comma at the end.

I fear at the moment this has to be done like this (not tested so errors
might be included)

<$list filter="[all[current]tags[]first[]]"><<currentTiddler>></$list><$list
filter="[all[current]tags[]butfirst[]]">, <<currentTiddler>></$list>
--
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 post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Tobias Beer
2014-11-17 13:43:01 UTC
Permalink
Thanks Stephan, that works.

Here's the final result:
http://taggly5.tiddlyspot.com/#taginfo

Best wishes, Tobias.
--
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 post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Loading...