Macrocall hack broke after TW ver5-1-20

91 views
Skip to first unread message

SVAKSHA

unread,
Jul 27, 2020, 7:16:09 AM7/27/20
to TiddlyWiki
Hello All,

I wanted to thank the TW folks for an incredibly cool and useful tool. I've been a TW user for some years and this is my first post for help here (kinda shows how easy it is to use/hack especially for a non-JS person like me).

Till TW5 ver-5.1.20, I have used the following hack to get clickable titles of Tabs AND Tags (with the tiddler contents) displayed inside the main tiddler Tag. The screenshot of the tiddler is attached and you can see that the titles are clickable and it also allows a tree-like tag list structure so I can create a single topic category and keep switching within all the sub tiddlers within the main category tiddler.

```

<$list filter="[tag[Tag99]!sort[created]limit[1]]">
  <<tabs "Tab1 Tab2 Forums Tab4">>
  <$macrocall $name="tabs" tabsList="[tag[Tag99]!sort[created]]" default={{!!title}} class="tc-vertical" template="ReleaseTemplate" />
</$list>

```

However, since ver-5.1.21 and 5.1.22, the above hack does not render clickable titles.

Again, I am not a JS dev and this is probably not the 'right' way of doing things but till date I have managed to customize TW with simple hacks but this one seems to require good JS knowledge.

I would like some pointers on where I went wrong.

Thanks in Advance!

TW5macroScreenshot.png

PMario

unread,
Jul 27, 2020, 8:48:27 AM7/27/20
to TiddlyWiki
Hi,
It would be nice, if you would provide a minimal test case, we can work with. ... Your example contains a template, which is not known.
So how should we reproduce the problem?
-mario

॥ SVAKSHA ॥

unread,
Jul 29, 2020, 2:30:44 AM7/29/20
to tiddl...@googlegroups.com
Hi,

Resending a third time as my mail does not show up in the archives so
I am not sure if it reached the list. Thanks in advance.

On Tue, Jul 28, 2020 at 9:38 AM ॥ SVAKSHA ॥ <sva...@gmail.com> wrote:
>
> Hi again,
> GG rejected my last message due to the large file size so I have
> pushed the files here:
> https://github.com/svaksha/devya/tree/master/TW5
>
> ---------- Forwarded message ---------
>
> Hi,
>
> On Mon, Jul 27, 2020 at 12:48 PM PMario <pmar...@gmail.com> wrote:
> >
> > Hi,
> > It would be nice, if you would provide a minimal test case, we can work with. .
>
> My bad. Please find attached two MTC files for ver-5.1.20 and 5.1.22
>
> >.. Your example contains a template, which is not known.
>
> Its various snippets of code culled from multiple tiddlers that I
> tweaked till I got it to work (as in 5.1.20) some years ago. I have
> had this problem in previous versions too (iirc *.14 and *.17) so I
> would just skip some version releases and upgrade only if my snippet
> worked on the new released version.
>
> Hope that explains.

TW Tones

unread,
Jul 29, 2020, 3:15:52 AM7/29/20
to TiddlyWiki
It did reach the list,

And Mario asked

Hi,
It would be nice, if you would provide a minimal test case, we can work with. ... Your example contains a template, which is not known.

So how should we reproduce the problem?
-mario

Clickable links for tabs?, there is a plugin https://wikilabs.github.io/editions/link-to-tabs/ that works on all tabs.

Regards
Tony


Regards
Tony

॥ SVAKSHA ॥

unread,
Jul 29, 2020, 4:10:32 AM7/29/20
to tiddl...@googlegroups.com
On Wed, Jul 29, 2020 at 7:16 AM TW Tones <anthony...@gmail.com> wrote:
>
> It did reach the list,
>
> And Mario asked
>

And if you would have scrolled down you would have seen the github
link I added in my reply which has both files that I currently use:
"empty-MinTestCase-5120.html" and "empty-MinTestCase-5122.html ". If
that is not an MTC, please explain what information you need to debug?

> Clickable links for tabs?, there is a plugin https://wikilabs.github.io/editions/link-to-tabs/ that works on all tabs.

This is only available in the pre-release version of 5.1.23 and my
question was related to the current stable 5.1.22) and older releases.
Also it isnt clear how this can be back-ported/ added to older TW5
releases - is there any documentation?

TIA, S

>
>
> Regards
> Tony
>
> On Wednesday, July 29, 2020 at 4:30:44 PM UTC+10, svaksha wrote:
>>
>> Hi,
>>
>> Resending a third time as my mail does not show up in the archives so
>> I am not sure if it reached the list. Thanks in advance.
>>
>> On Tue, Jul 28, 2020 at 9:38 AM ॥ SVAKSHA ॥ <sva...@gmail.com> wrote:
>> >
>> > Hi again,
>> > GG rejected my last message due to the large file size so I have
>> > pushed the files here:
>> > https://github.com/svaksha/devya/tree/master/TW5
>> >
>> > ---------- Forwarded message ---------
>> >
>> > Hi,
>> >
>> > On Mon, Jul 27, 2020 at 12:48 PM PMario <pmar...@gmail.com> wrote:
>> > >
>> > > Hi,
>> > > It would be nice, if you would provide a minimal test case, we can work with. .
>> >
>> > My bad. Please find attached two MTC files for ver-5.1.20 and 5.1.22
>> >
>> > >.. Your example contains a template, which is not known.
>> >
>> > Its various snippets of code culled from multiple tiddlers that I
>> > tweaked till I got it to work (as in 5.1.20) some years ago. I have
>> > had this problem in previous versions too (iirc *.14 and *.17) so I
>> > would just skip some version releases and upgrade only if my snippet
>> > worked on the new released version.
>> >
>> > Hope that explains.
>
> --
> 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/HdXLKaUGQqM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/98505e5d-79d1-4951-a2df-f3a95e057453o%40googlegroups.com.

TW Tones

unread,
Jul 29, 2020, 5:33:13 AM7/29/20
to TiddlyWiki
S

Link to tabs has being around for years so I don't know why you think its only available on pre release.

Tw tones

Reply all
Reply to author
Forward
0 new messages