[TW5] Click one title to open many tids - possible?

113 views
Skip to first unread message

Mat

unread,
Aug 23, 2016, 3:32:59 PM8/23/16
to TiddlyWiki
The ActionNavigateWidget docs gives an example  of clicking a button to open two tiddlers. The button with the text TiddlerFoo could of course be styled so it appears to be a regular tiddler title. that opens e.g that tiddler and additional ones.

...but I'm wondering if there is a "real" way to make clicking a title link always open multiple tiddlers? For example clicking it when it is seen in the sidebar.

...or maybe using the button method after all but to reverse it, i.e to have any occurrence of the link TiddlerFoo actually be a button. (Maybe this is what links ARE, i.e styled buttons?)

The question is the base for a much bigger and super cool concept.

<:-)

Danielo Rodríguez

unread,
Aug 23, 2016, 6:59:09 PM8/23/16
to TiddlyWiki
You can use invisible and link button classes (not exactly those names) to make a button look like a link. But for making links behaving like buttons you would need to create your own version of the navigator widget or create a parse rule that parses links as buttons. In any case, how would you specify wich tiddlers you want to open?

Tobias Beer

unread,
Aug 28, 2016, 6:24:27 AM8/28/16
to TiddlyWiki
Hi Mat,
 
The question is the base for a much bigger and super cool concept.

I think it's simpler to discuss how to achieve something
if you describe what you're trying to achieve first.

Other than that, yes, you can:
  1. have a button look like a link
  2. have a button trigger multiple actions
    • e.g. using list widget with further action widgets inside the button whereas you could dynamically set the list widget filter via macro parameter or transclusion
Best wishes,

Tobias.

PMario

unread,
Aug 28, 2016, 7:58:20 AM8/28/16
to tiddl...@googlegroups.com
On Tuesday, August 23, 2016 at 9:32:59 PM UTC+2, Mat wrote:
The ActionNavigateWidget docs gives an example  of clicking a button to open two tiddlers. The button with the text TiddlerFoo could of course be styled so it appears to be a regular tiddler title. that opens e.g that tiddler and additional ones.

...but I'm wondering if there is a "real" way to make clicking a title link always open multiple tiddlers? For example clicking it when it is seen in the sidebar.

Yes. ... Since the sidebar is built using wikitext and widgets, you'd need to define either (new) wikitext (so a "new parser" can read it) or use (new) widgets .. or may be you can create macros with existing widgets, that do the job. .. I'd go with the last option: macros and existing widgets.

We already use an existing mechanism, that shows the "caption" field instead of the tiddler title. ... It may be possible to create a link, that contains several action-widgets, to open multiple tiddlers. .. The only thing needed, would be some clever tagging or an eg: open-list field similar to the existing list field. ... and a new sidebar and/or link template.

-mario

Mat

unread,
Aug 28, 2016, 10:55:10 AM8/28/16
to TiddlyWiki
Thanks for kind answers but over the past few days, the need has been solved and "replaced" by its greater context - Article Tiddlers. Further kind assistance is appreciated over there instead.

That said;

@Danielo and @Tobias (Hi!!!)

A button would not replace the title in e.g the sidebar list. I want to be able to click one title, e.g in the sidebar lists, and have it open multiple tiddlers (now solved with ArticleTiddlers). 

@pmario - Very interesting. If a title (anywhere) can really be a button, then I can imagine several cool things where we currently use non-sensical tiddlers that really only serve as place holders for buttons. One could search for "non direct keywords" and directly have a command seen in the search results list. (type in "store" and have "Save" "Upload" etc show). Would require some careful planning probably  ;-)

<:-)
Reply all
Reply to author
Forward
0 new messages