SectionLink Plugin - Error in macro <,Section TOC>>

191 views
Skip to first unread message

SteveH

unread,
Sep 16, 2012, 1:11:45 AM9/16/12
to tiddl...@googlegroups.com
Hi,

I'd like to try out the Table of Contents feature offered by the SectionLink Package.

I've downloaded TiddlyWiki v2.5.0 with the BasicsPackage and imported the plugin.

I get the above error showing within the tiddler and 'Error SyntaxError missing before statement' when I look an the Plugin dropdown box from the backstage area.

Kind Regards to all.
quickstart_basics.html

Eric Shulman

unread,
Sep 16, 2012, 1:41:14 AM9/16/12
to TiddlyWiki
It's a keyboard error :)

When you copied/pasted the content for SectionLinksPlugin into a new
tiddler, you left behind the default text:
Type the text for 'New Tiddler'
and pasted the entire plugin source content in between the words "New"
and "Tiddler".

Of course, this text is not valid javascript, and thus produces
unexpected errors when attempting to load the plugin. Because the
plugin fails to load, the <<sectionTOC>> macro is not defined...
resulting in the "error in macro" error text (note: if you click on
that text, a popup will show you more information. In this particular
case, it will simply say "no such macro")

If you remove the errant extra text, things should work just fine.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact

SteveH

unread,
Sep 17, 2012, 12:51:26 AM9/17/12
to tiddl...@googlegroups.com
Hi Eric - Sorry for taking up your time with a silly typing mistake :( 

I've fixed the problem as you suggest, however the table of contents 'popup' (ie outline-style bullet list with links to all sections) still doesn't display.

Btw I made a small, sheepish donation to your tip-jar.




tiziano de togni

unread,
Sep 19, 2012, 4:44:51 PM9/19/12
to tiddl...@googlegroups.com
Il 16/09/2012 07:41, Eric Shulman ha scritto:

>
> It's a keyboard error :)
>
> When you copied/pasted the content for SectionLinksPlugin into a new
> tiddler, you left behind the default text:
> Type the text for 'New Tiddler'
> and pasted the entire plugin source content in between the words "New"
> and "Tiddler".
>

About this plugin, I see that maybe there is a typo in the first
description paragraph:

where the text says:
... The plugin also adds a new macro, <<sectionTOC>> which can ...

should indeed be:
... The plugin also adds a new macro, {{{<<sectionTOC>>}}} which can ...

regards
--
tiziano de togni
______________________________________
http://tiziano.tiddlyspot.com

SteveH

unread,
Sep 20, 2012, 1:46:57 AM9/20/12
to tiddl...@googlegroups.com
Thanks a lot tiziano for your input, I've changed the spelling as you suggested.

I'm still having a little trouble with the plugin as it seems to throw my left floating sidebar across to the right hand side of the screen so I've disabled it for now.

In addition to this I can't get the TOC to show as a 'neat display box as per the TiddlyTools website plugin' . I've tried creating a misc Tiddler with
config.macros.sectionTOC.linkFormat='[[%0|##%0]] in it (tagged as systemConfig) to no avail.

Regards

Steve Harding





Reply all
Reply to author
Forward
0 new messages