"tc-vertical" not working

322 views
Skip to first unread message

Scrutiny

unread,
Mar 23, 2015, 5:55:44 AM3/23/15
to tiddl...@googlegroups.com
Hi,

I followed your tutorials closely but still am unable to display in vertical tabs. It always comes out in horizontal format.

<<tabs "[tag[About]]" "tc-vertical">>

I can't find the answer here. Please help!


Richard Smith

unread,
Mar 23, 2015, 9:01:03 AM3/23/15
to tiddl...@googlegroups.com
Hi Scrutiny,

The class needs to be the fourth parameter. Try this;

<<tabs "[tag[About]]" "" ""  "tc-vertical">>


Regards,
Richard

Clair Ng

unread,
Mar 23, 2015, 10:52:42 PM3/23/15
to tiddl...@googlegroups.com
Thanks Richard! You're a saver!

--
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/vV0AIhuLUAI/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.
For more options, visit https://groups.google.com/d/optout.

Ed

unread,
Mar 27, 2015, 10:57:16 AM3/27/15
to tiddl...@googlegroups.com
Sound advice. Richard!
Another "tc-vertical" related question:

I was trying to put a file name inside the " ", but that was a filename with spaces.
So like "This is the filename" and not "ThisIsTheFileName"

It looked like the file name with the spaces preventied "tc-vertical" to be excecuted.
Is that correct?

Thanks in advance!
Salut! Ed


Op maandag 23 maart 2015 14:01:03 UTC+1 schreef Richard Smith:

Felix Küppers

unread,
Mar 27, 2015, 12:19:18 PM3/27/15
to tiddl...@googlegroups.com
Hi Ed,

Spaces are no problem, however, I am not really sure what you want to achieve. You mean a tiddler name with spaces in the filter? Then your filter would be "[field:title[a title with spaces ]field:title[another title with spaces]]" or "[[a title with spaces]] [[another title with spaces]]" which will always produce a result.

Also better prefix your macro attributes with the parameter name (see http://tiddlywiki.com/#TabsMacro) to avoid problems when only specifying some of the params.

e.g.

<<tabs tabsList:"YOUR FILTER" class:"tc-vertical">>

-Felix
--
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.

Ed

unread,
Mar 27, 2015, 7:37:56 PM3/27/15
to tiddl...@googlegroups.com
Aha, Freundliche Felix-Unterstützung! 8-))
Hallo Felix.


>Also better prefix your macro attributes with the parameter name (see http://tiddlywiki.com/#TabsMacro) to avoid problems when only specifying some of the params.

That's good advice, as I was under the impression that you could safely leave the prefixes out. In most of the code that I look at to learn how to do it,
almost everbody ditches them. So it's better to write class:"tc-vertical" then "tc-vertical" alone.

Anyway I'll try to tell about my problem slowly step by step

When I started out doing this vertical tabs menu it was the example used by Jeremy in http://tiddlywiki.com/#TabsMacro:
<<tabs "[tag[sampletab]]" "SampleTabTwo" "$:/state/tab2" "tc-vertical">>
I could replacate that with simple tiddlers of my own manufacturing, a trial run so to say.
And indeed my replacement of Jeremy's SampletabTwo worked. There was a vertical tab column and that one tab was open.

No for the real work. [8-))] So I went a bit further and made this:
<<tabs "[tag[Communication]]" "20150326b-AntwOverlapDeadline" "$:/state/tab2" "tc-vertical">>
There being several tiddlers with the tag "Communication" and one of the tiddlers had the title: "20150326b-AntwOverlapDeadline"
Result: Tab column OK. But NO open tabs at all, everyone was grey and no display of the content.

The difference was that "SampleTabTwo" was a very simple tiddler, only a title+text and that was it.
The content of my tiddler was actually the in-tiddler-display of a PDF by using the great PDF Macro by Tobias Beer.

All the tiddlers that I want in the vertical tab column are PDF's. (It's an email exchange that I need to document.)
They are all located in a directory that is in the same directory as the TW5 file.

I now realize that this difference (simple tiddler vs PDF-tiddler) might be the deciding factor why that tiddler was not opened, and
wasn't showing initially any content. Clicking on any tab by the way had the desired effect, content was shown!!
Correct me if I am wrong and put me please on the right footing.

Of course[!] I will try out your suggestions below later, but I'd love to understand firstly were I was going wrong.

MultiGracias
Salut! Ed.
==========

Op vrijdag 27 maart 2015 17:19:18 UTC+1 schreef Felix Küppers:

Felix Küppers

unread,
Mar 28, 2015, 12:59:02 PM3/28/15
to tiddl...@googlegroups.com
Hi Ed,
 
Aha, Freundliche Felix-Unterstützung! 8-))

Well, I give it a try :)


> That's good advice, as I was under the impression that you could safely leave the prefixes out. In most of the code that I look at to learn how to do it,
almost everbody ditches them. So it's better to write class:"tc-vertical" then "tc-vertical" alone.

The point is, macros often have many parameters and it is hard to remember the order so it is a potential error source, also when you look at the macro code it is hard to understand what "" "" "" means. ;)


> <<tabs "[tag[Communication]]" "20150326b-AntwOverlapDeadline" "$:/state/tab2" "tc-vertical">>
> There being several tiddlers with the tag "Communication" and one of the tiddlers had the title: "20150326b-AntwOverlapDeadline"
> Result: Tab column OK. But NO open tabs at all, everyone was grey and no display of the content.

All correct. Are you really sure "20150326b-AntwOverlapDeadline" was spelled correctly and exists? Try "advanced search" and go to "Filter" and enter "[tag[Communication]]". If it is listed there, your setup is correct.


> Correct me if I am wrong and put me please on the right footing.

IMO it should work in any case but I am not familiar with pdfs in TW. But maybe it helps you if you know that you did everything right as far as my understanding goes.

-Felix

Ed V.O. K.

unread,
Mar 28, 2015, 1:43:35 PM3/28/15
to tiddl...@googlegroups.com
Hi Felix,

I followed your advice to do the "Advanced Seach", although I knew that the "renegade" tiddler existed. 8-))
Always try to listen to my betters. Indeed a fine way to check things out. In this way I saw that all the relevant
PDF-containing tiddlers were there. Great way to look for errors. Misspelllings are easily done.

So at the moment we seem stuck, can't see anything else then that it got to do something with the tiddler using
the PDF macro.

I have written in another thread,
https://groups.google.com/forum/#!topic/tiddlywiki/lj9MvTMj9ng
how beautifully that PDF macro worked. Only to find out it did its magic on my PC at work with latest FireFox!

At home on my PPC G4 Mac with the adapted FireFox called TenFourFox special PPC browser, the PDF-tiddlers
were not showing their content, but made the download screen pop up. So when I work at home I all the time,
need to cancel this download screen.
However as it is meant to be used at work, I can sort of live with this nuisance, hoping Tobias might stop by to help out.

Another "strange" thing happended by the way; all of a sudden there is tiddler called "--1202157337" (without the " "
of course. And the text of the tiddler is, you guessed it already, "20150326b-AntwOverlapDeadLine".
Double-Huh!? It appeared out of thin air, autogenerated. so to say.

Well so far so... 8-))
Viele Grüße & Herzlichen Dank, Ed.



--
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/vV0AIhuLUAI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

Eric Shulman

unread,
Mar 28, 2015, 2:56:17 PM3/28/15
to tiddl...@googlegroups.com
On Saturday, March 28, 2015 at 10:43:35 AM UTC-7, Ed wrote:
Another "strange" thing happended by the way; all of a sudden there is tiddler called "--1202157337" (without the " "
of course. And the text of the tiddler is, you guessed it already, "20150326b-AntwOverlapDeadLine".
Double-Huh!? It appeared out of thin air, autogenerated. so to say.

That is most likely the result of using tabs to display the content.  To track which tab is currently open, the <<tabs>> macro stores the title of the tiddler shown that tab into a "state" tiddler.  To uniquely identify which tabset is being tracked, a "qualifier" number is generated (based on the location of the tabset in the "parse tree") and appended to the state tracking tiddler's name.  Generally, the state tiddler has a name like "$:/state/tab--1231231231".  However, on the tiddler you found in your document, there is no "$:/state/tab" prefix, and that seems quite odd.

one thought: perhaps that state tiddler is not being generated from the <<tabs>> macro.. but from Tobi's PDFMacro

Hope this provides some clues for where to look....

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

"Inside TiddlyWiki: The Missing Manual"
Note: the IndieGogo funding campaign has ended,
but direct fundraising continues below...

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:

Richard Smith

unread,
Mar 28, 2015, 11:03:45 PM3/28/15
to tiddl...@googlegroups.com
Hi,

I suspect you have something like this - note the space between the quotes

<<tabs "[tag[About]]" "" " "  "tc-vertical" "">>

This names "  " as the tiddler in which state should be stored and so you get your --1202157337 when the qualifier is added.

The issue with pdfs not being displayed inline on your G4 is, I think, a browser issue - t might be that the browser can't render them inline or that in needs to be enabled (I suspect the former)

The tab not being set correctly to begin with could be related to the issue above or a conflict between different nestings of the tabs macro, which you should also be able to fix by setting a name for the state tiddler. If I was you, I'd make a test tiddler with a very simple name and content and try to set that as the default to begin with.

Regards,
Richard

Ed

unread,
Mar 29, 2015, 5:05:09 PM3/29/15
to tiddl...@googlegroups.com
Hi Eric, Hi Richard,

Big Thanks, guys for trying to maken sense of my problem.
If, for the moment, people of your calibre can't solve the
problem, then certainly I can't make head or tails of it.


> If I was you, I'd make a test tiddler with a very simple name and content and try to set that as the default to begin with.

Sound advice. That is exactly what I did to start with. I really started from scratch with the example Jeremy gave at TW.com
But when I am at work next week, I'll start all over again as I am there not pestered by the annoying download pop-up screens.

Richard, what exactly the "state tiddler does/signifies, escapes me still at the moment, that is for now beyond my level of understanding.
(BTW, I think it was from studying your site, that I learned the "sort" and "!sort" function, used inside a list or tab <<..>>. Great!!)

I had wanted to showcase my work proposals (PDFs) and connected email (PDFs) at work as a way to get people into contact with TW5.
We still rather foolishly keep sending interoffice email and everybode sometimes succumbs to the amount and searching the inbox
is a quite a hassle. The TW5 interface is a delight. Well for the moment I can only stick al the PDFs in one file a mile long, rather
uncomfortable reading at one's computerscreen.

Salut! Edm.


Op zondag 29 maart 2015 05:03:45 UTC+2 schreef Richard Smith:

Ed

unread,
Mar 29, 2015, 5:06:33 PM3/29/15
to tiddl...@googlegroups.com
Hi Eric,

Please see my reaction to the post from Richard below.
Still clueless, I'm afraid

Salut! Ed.


Op zaterdag 28 maart 2015 19:56:17 UTC+1 schreef Eric Shulman:

Ed

unread,
Mar 30, 2015, 9:12:39 PM3/30/15
to tiddl...@googlegroups.com
Hi Eric, Felix & Richard (alphabetical order)

Back again and have been trying to sort out things, it seem to boil down to this.
(This was done on a freshly installed computer with Windows Vista Bussiness with the latest Firefox.)

1. Horizontal Tabs
1.1. If you are making horizontal tabs in a tiddler and if you use a tiddler with a PDF, located in a subdirectory of TW5-directory) using the PDFmacro then all tabs remain grey an none opens, although you defintely have specified that in the macro for the tabs.
1.2. If you are using a tiddler with an imported PDF, then the results are the same.

2. What I did
I have used a simple texttiddler, then a tiddler with an external image and a tiddler with {{SomeImage.jpg}}. Then there is no problem if you specify one of these types of tiddlers in the macro to be opened. It just works.
Could not test with _canonical_uri as I could not get that tiddler to display the local image, but that is another unfortunate story

Examples used
<<tabs "[tag[Communication]] "SomeImage.jpg">>
After saving the "SomeImage.jpg" was open and showing in the horizontal tabs

<<tabs "[tag[Communication]] "TextTiddler">>
Again after saving the "TextTiddler" was open in the horizontal tabs and one could
read the text that I had typed into it.

With any of the four tiddlers with the PDFMacro embedded PDF: No dice. All tabs grey, none open.

So the culprits seem to be the tiddler with the PDF.

3. Vertical tabs
That’s a different story.
<<tabs “[tag[Communication]] “TextTiddler” class=”tc-verical”>>
Tabs vertical. TextTiddler open. Everything fine.

With tiddler called: SomeImage.jpg
Tabs Vertical. Image NOT open.. When you open any tab and then edit and Save the tiddler it then opens with this last opened tab disclosed. No, I am not making this up.

With such the feared PDF tiddler.
No vertical tabs, No tabs open.

4. Higher Level Tiddler inder the ToC
The tiddler “Communication” has the tag “ProjectName”. This last tiddler is the top of the TableOfContents
This tiddler is leading a life of its own
<<tabs “[tag[ProjectName]] “Proposals”>>
When saved and previously the tab “Communication” was open then the choosen default tab “Proposals” is ignored and it opens with, yes, Communications.
Milage: about 8 hours, all together. Sigh.
Tired! Salut! Ed.

Op zondag 29 maart 2015 23:06:33 UTC+2 schreef Ed:

Richard Smith

unread,
Mar 31, 2015, 11:47:57 PM3/31/15
to tiddl...@googlegroups.com
Hi again Ed,

I was just playing with this and I came across an issue which could be at the root of the odd behaviour. Look at this:

Why do these two statements produce different results? I thought I was going bonkers for a moment, but I actually encountered a similar problem recently when I was importing data from spreadsheets and so I was able to spot it - some of the quotation marks are the wrong kind!

There are pretty 'left' and 'right' quotation marks for typesetting and then there are the neutral kind used in the wikitext - having some of them wrong doesn't necessarily break it altogether but produces odd behaviour.

Does that help at all?

Regards,
Richard

Jeremy Ruston

unread,
Apr 1, 2015, 3:48:34 AM4/1/15
to TiddlyWiki
Hi Richard

> some of the quotation marks are the wrong kind!

That's a pretty subtle problem! Good sleuthing to track it down,

Best wishes

Jeremy.


--
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.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Ed

unread,
Apr 1, 2015, 7:36:30 AM4/1/15
to tiddl...@googlegroups.com
Hi Richard,

Who the heck are you. Secretly George Gently or Christoffer Foyle?
Super sleuth indeed! 8-))
Anyway I have looked over the macro's and the quotation marks were all fine, but
somewhere one of them was missing.

Here on the PC  at work, you have to type two marks, there is no other way. and
then you have to put the stuff to be quoted inside them. There it must have been
something goin' wrong while typing.

The pretty quotation marks you found in my post here above happened most probably
'cause I use a Word of Pages (Mac) page to temporaily store some macro's or write
them there before I trust them to a tiddler. Won't do that again.

I'll go over all the macro stuff again.
And thanks Richard & Jeremy "watching" over me.

Oh, Jeremy, BTW if you are going to publish 5.1.8 could you give some more examples of the
macro's. For you it's all a piece of cake, but for people like me, it's a different cookie.

Also this $:/state/tab... explanation in the TabsMacro; sorry beats me what you mean by that.
English not my mother tongue. Hope you don't mind me bothring you with this.
Thanks in advance
Salut! Edm.
=========



Op woensdag 1 april 2015 05:47:57 UTC+2 schreef Richard Smith:
Reply all
Reply to author
Forward
0 new messages