menu item linking to website

104 views
Skip to first unread message

Eric Kofoid

unread,
Jul 18, 2019, 2:21:38 PM7/18/19
to TiddlyWiki
This relates to an earlier question about how to make Ton Gerner's topmenu menu items link to tiddlers. I would now like to create a menu item which acts as a direct link to a website in an external window. I think this can be done with a macro, but I'm quite ignorant about these. Any help will be greatly appreciated. -- Eric

Ton Gerner

unread,
Jul 19, 2019, 3:55:29 AM7/19/19
to TiddlyWiki
Hi Eric,

As follow-up of adding a link to the top menu, see https://groups.google.com/forum/#!msg/tiddlywiki/2Qb1SMWBxuo/sHUxDKaHAAAJ (e.g. [[GettingStarted]]), you can add an external link [[TW5|https://tiddlywiki.com/]]. Clicking that link opens the TW5 site in a new window or tab depending on your browser preferences.
For more information see https://tiddlywiki.com/#Linking%20in%20WikiText

Hope that helps,

Ton

Eric Kofoid

unread,
Jul 19, 2019, 2:00:25 PM7/19/19
to TiddlyWiki
Hi Ton,

Thanks for the quick reply. However, you fail to understand my problem. I don't want to put a clickable link as a menu in topmenu. Rather, I want a drop-down menu item to be clickable without going through the intermediacy of an open tiddler. Example: Consider a menu, "Sites", in topmenu. when clicked, the following items drop down: "Roth RADIO", "Roth Home". If I pull down to "Roth Home", for example, I would like the browser to immediately visit the identified website rather than open a tiddler containing a link to the same. I'm able to do the latter, but find it inconvenient for the user as it's yet another step to doing what they want to do and leaves behind an otherwise useless window. I would prefer not doing your solution, as it would require a separate menu for each site, which would quickly populate the menu bar.

Thanks for your help and for your excellent contributions to the TiddlyWiki ecosystem.

Cheers,

Eric

TonyM

unread,
Jul 20, 2019, 12:37:28 AM7/20/19
to TiddlyWiki
Eric,

Have a look at how I implement it in the mymenus plugin which is just packaged macros.

Https://Tiddlywiki.psat.com.au/mymenus

the menu items are defined in a field and transcludes. You could use a link widget or even standard html links.

Regards
Tony

Ton Gerner

unread,
Jul 20, 2019, 7:24:13 AM7/20/19
to TiddlyWiki
Hi Eric,

In my - documented (by guides/plugins) - journey to learn TW5 I started already in the alpha phase of TW5.
It's a very long time ago (January 2014) I made (in TW 5.06beta) the first version of a 'Top + Left menu' (the 'Top menu' is a direct spinoff of that 'Top + Left menu').
It was a design decision to use a tagpill-based top menu (at that time it was the easiest way to get a top menu).
The restriction is that the submenu entries are only links to tiddlers. In most cases that is no problem; in your case it is. The only workaround I see is creating tiddlers with an iframe to the site you want to display. Something like:

<iframe src='http://www.xyz.com' frameborder="0" width="1024"; height="600"></iframe>

But be aware: not all sites can be displayed in an iframe.

May be TonyM's menu plugin can be used better for your case.

Thanks for your help and for your excellent contributions to the TiddlyWiki ecosystem.

You're welcome.

Cheers,

Ton

Eric Kofoid

unread,
Jul 22, 2019, 6:12:36 PM7/22/19
to TiddlyWiki
Hi Tony,

Your "mymenus" looks great! Can the menu font colors be modified? Is it possible to change appearance of a menu from double-line rectangle to something resembling a tagpill?

Cheers,

Eric
Reply all
Reply to author
Forward
0 new messages