[TW5] Tabs macro - adding a link to the tab?

204 views
Skip to first unread message

Matthew Petty

unread,
Jun 29, 2015, 12:51:42 AM6/29/15
to tiddl...@googlegroups.com
Hi all,
I'm using the TabsMacro, and I would like to add a link to the tiddler next to the title of the tiddler in each tab.
So it would show:

   _____________ _____________ _____________
___
| Tab A (e) |_| Tab B (e) |_| Tab C (e) |___


where (e) is a little subscript link that would open the tiddler separately. I would like this because I would like to be able to easily open the tiddlers in each tab for editing, instead of having to search for them.

I made a copy of the Tabs macro called tabs_link, and tagged it so that it was a macro. I did this because the original macro is used in the sidebar, and I don't want the links in the tabs in there.

I found where I would put the link in the macro, but I can't figure out the syntax.

Alternatively, is there a way to add a link to the current tiddler to the text of the tiddler? What syntax would that be? I tried using the field, but I couldn't get it to work. If I could automatically include a link to the current tiddler in the text of the current tiddler, I wouldn't need the link in the tab.

This sounds strange, but when you use tabs or transclusion, having a link to the tiddler included in the tiddler makes editing easier.

Regards,
Matthew Petty
Abu Dhabi

Jed Carty

unread,
Jun 29, 2015, 1:31:58 AM6/29/15
to tiddl...@googlegroups.com
This may take some significant changes to the tabs macro. Each tab is a button and only the button click happens regardless of what is displayed. Normal buttons have this same behavior. So you would probably have to modify the tabs macro to add in a link next to each button that makes up a tab.

Matthew Petty

unread,
Jun 29, 2015, 1:36:15 AM6/29/15
to tiddl...@googlegroups.com
Right, I've found the location in the macro where I can add plain text (e.g. "TEST") to each tab. But how can I make that text a link to the tiddler in that tab?

On Mon, Jun 29, 2015 at 9:31 AM, Jed Carty <inmy...@gmail.com> wrote:
This may take some significant changes to the tabs macro. Each tab is a button and only the button click happens regardless of what is displayed. Normal buttons have this same behavior. So you would probably have to modify the tabs macro to add in a link next to each button that makes up a tab.

--
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/nUwbjTvSfBk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c0db6cef-dc69-4474-b358-0247ca852ffa%40googlegroups.com.

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



--
HOMEPAGE
matthewpetty.com

THE COILED SPRING
The Podcast with Potential
coiledspring.org
mixcloud.com/muteboy

PMario

unread,
Jun 29, 2015, 4:03:50 AM6/29/15
to tiddl...@googlegroups.com
On Monday, June 29, 2015 at 6:51:42 AM UTC+2, Matthew Petty wrote:
Hi all,

Hi Matthew,
 
This sounds strange, but when you use tabs or transclusion, having a link to the tiddler included in the tiddler makes editing easier.

IMO it doesn't sound strange. I did wish to have this behaviour myself some times already.
I just was to lazy to code it, because I didn't like the "link in the tab" idea, but I like the idea to have a link in the text area. ... I'll experiment with it and post more info soon :)

have fun!
mario

Ton Gerner

unread,
Jun 29, 2015, 5:22:48 AM6/29/15
to tiddl...@googlegroups.com



On Monday, June 29, 2015 at 6:51:42 AM UTC+2, Matthew Petty wrote:

PMario

unread,
Jun 29, 2015, 3:50:39 PM6/29/15
to tiddl...@googlegroups.com
On Monday, June 29, 2015 at 11:22:48 AM UTC+2, Ton Gerner wrote:

Hi Ton,

Thx for the links.

The gist creates a link outside the button. That's similar, to my first experiments. ... but I can't find them anymore. I think I didn't save them :/
Did someone finish a complete example, with a working link inside the button? ...

I was interrupted today ..

May be I'll experiment with the link in the body. ...

-mario

Måns Mårtensson

unread,
Jun 29, 2015, 6:47:01 PM6/29/15
to TiddlyWiki
Hi Matthew

Create a caption field in each tiddler you'll use as a tab and write the link and title as a value like this:
field: caption 
value: Tab A ,,[[(e)|Tab A]],,

Cheers Måns Mårtensson




--
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 tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.

Ton Gerner

unread,
Jun 30, 2015, 2:34:14 AM6/30/15
to tiddl...@googlegroups.com, ma...@himmerlands-ungdomsskole.dk
Hi Måns,

Works like a charm with Chrome, but doesn't work with Firefox.

Cheers,

Ton

PMario

unread,
Jun 30, 2015, 3:53:58 AM6/30/15
to tiddl...@googlegroups.com, ma...@himmerlands-ungdomsskole.dk
On Tuesday, June 30, 2015 at 12:47:01 AM UTC+2, Måns wrote:
Create a caption field in each tiddler you'll use as a tab and write the link and title as a value like this:
field: caption 
value: Tab A ,,[[(e)|Tab A]],,

Nice idea, but imo very fragile / error prone, if you rename the tiddler, it's easy to forget to change the caption.
-m
Reply all
Reply to author
Forward
0 new messages