How to use list macro to show tiddlers tagged by current tiddler?

761 views
Skip to first unread message

Hao

unread,
Mar 13, 2012, 2:21:29 AM3/13/12
to tiddl...@googlegroups.com
Hi,

I want to use <<list filter "[tag[{{tiddler.title}}]]">> to show tiddlers tagged by current tiddler.
But it doesn't work.
Am I wrong in writing the macro?

Thanks a lot.

--
Hao

Tobias Beer

unread,
Mar 13, 2012, 3:52:42 AM3/13/12
to TiddlyWiki
Try...

<<list filter {{"[tag["+tiddler.title+"]]"}}>>

In other words, the whole evaluated parameter expression needs to be
wrapped in curly brackets.

Mind you that evaluated parameters need to be enabled on TiddlySpace
first.

If you ever intend to use this in the ViewTemplate which also applies
to not quite existing ShadowTiddlers, use...

<<list filter {{"[tag["+tiddler?tiddler.title:"NOTID"+"]]"}}>>

... assuming that "NOTID" indeed refers to a not existing tiddler.


If all you wanted was a tagging list you could do...
<<tagging>>

...or...

<<tagging RemoteTiddlerTitle>>

If you don't want that title line, you could wrap the whole thing in a
css class:
{{notitle{<<tagging>>}}}

...adding some CSS to you StyleSheet...

.notitle .listTitle {
display:none
}

Cheers, tobias.

Hao

unread,
Mar 13, 2012, 7:39:56 PM3/13/12
to tiddl...@googlegroups.com
Thanks Tobias.
It's really help.
Basically, I want to customize the ViewTemplate in my TS. I think the last one (using CSS) is the best choice for me caz I can easily modify the style of the tagging list.

--
Hao

Tobias Beer

unread,
Mar 14, 2012, 12:40:33 AM3/14/12
to TiddlyWiki
I assume you already know. Just to make sure, in the ViewTemplate the
minimum HTML to envoke the macro would read like this...

<span class="noTitle" macro="tagging"></span>

tb.

Hao

unread,
Mar 14, 2012, 12:56:07 AM3/14/12
to tiddl...@googlegroups.com
Ah..
Actually I really don't know this...
I don't know there were such classes.
Is there any way to find these information? 
Although I have been using TW for more than one year, I just start customize it recently. So I am a newbie on TW development..

Thanks a lot.

---
Hao

Tobias Beer

unread,
Mar 14, 2012, 1:22:42 AM3/14/12
to TiddlyWiki
Well there's tiddlywiki.org and linking form that http://shadowtiddlers.tiddlyspace.com/
but neither seem to intuitively point to detailed information or
examples on how to define or modify templates.

Maybe some day the documentation more intuitively gives answer to
questions like "How do I do this and that".

I would say a basic understanding of HTML/CSS/JS and the basic ways TW
makes use of it will definetely make things a lot easier when it comes
to customizing TW.

tb.

Hao

unread,
Mar 14, 2012, 2:05:44 PM3/14/12
to tiddl...@googlegroups.com
Thanks a lot.
I think may be the problem about documentation is there is no place that list all available resources/websites that explain the TW development.
But it takes me some time to find it out. And I always cannot get enough information..
Hope there would have a better documentation for the TW dev in the future. Currently, the google group is really a good place for new developers.

--
Hao

Dominik P.

unread,
Nov 8, 2016, 10:47:10 AM11/8/16
to TiddlyWiki, beert...@googlemail.com
could someone help me please?

i would like to put
<div class="tc-table-of-contents">
<<toc-selective-expandable "currentiddlertitle" sort[title]>>
</div>
in a viewtemplate

tried a couple of things but i failed so far

Jed Carty

unread,
Nov 10, 2016, 4:58:08 AM11/10/16
to TiddlyWiki, allen...@gmail.com
Make a tiddler, give it the tag $:/tags/ViewTemplate and put this in the text field:


<div class="tc-table-of-contents">
<$macrocall $name=toc-selective-expandable tag={{!!title}} sort='sort[title]'/>
</div>


Dominik Pflügl

unread,
Nov 10, 2016, 6:20:03 AM11/10/16
to tiddl...@googlegroups.com
thanks that works
is there also a toc solution that creates a mediawikilike toc out of the tiddlerheaders that i could work into there?

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/iN4UxNbuioE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a72c27d5-096e-42cb-a962-5050b4d9f69d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Dominik P.

unread,
Nov 10, 2016, 6:36:41 AM11/10/16
to TiddlyWiki
nvm its silly against tw approach

 is it possible to have a toc for a tag and have the toc filtered by another tag?

Jed Carty

unread,
Nov 10, 2016, 6:58:00 AM11/10/16
to TiddlyWiki, allen...@gmail.com
I am not certain what you mean by that. Do you mean have a toc but only show tiddlers from some subset of the full wiki? If so there isn't any way that I am aware of to make the core toc macros do that. if I ever get around to finishnig up the toc widget I was making there is a way to do it but that may be a while.
Reply all
Reply to author
Forward
0 new messages