Tabs in tiddly wiki

Hi all,
I started to use Tiddly yesterday, and I am facing an issue.

<<tabs tabsList:“helo hei”>>

<<tab “helo”>>
This is the content of the first tab.

<<tab “hei”>>
This is the content of the second tab.

but here i see the same content, why ?, How can i solve this?

Welcome to the wonderful world of TiddlyWiki!

You wrote:

<<tabs tabsList:"helo hei">>
<<tab "helo">>
This is the content of the first tab.
<<tab "hei">>
This is the content of the second tab.
  • The <<tabs>> macro uses the tablist parameter to indicate a space-separated list of the titles of separate tiddlers that contain the content for each tab.
  • The TWCore does not define a <<tab>> macro, so <<tab "something">> produces no output.

As a result, the <<tabs>> macro displays two empty tabs and the content you have entered is simply displayed following the entire tabset.

To make things work as it seems you likely intended, you need to create two additional tiddlers (named “helo” and “hei”), each containing their respective desired output. Thus, you will have 3 tiddlers, the first containing just

<<tabs tabsList:"helo hei">>

and “helo” containing

This is the content of the first tab

and “hei” containing

This is the content of the second tab

enjoy,
-e

2 Likes

Hi and Welcome!

You need to create 2 tiddlers: “helo” and “hi”. The text of those tiddlers is shown in the area below the tabs.

The text you see is just the text in the tiddler that contains the “tabs-macro” – Since there is no <<tab>> macro it is ignored and removed.

Very thanks, it worked.

Very thanks, it worked