Re: Problem with Stylesheet - can't find the error

40 views
Skip to first unread message

Eric Shulman

unread,
Nov 30, 2012, 3:54:37 AM11/30/12
to TiddlyWiki
> ..."Error: SyntaxError: Unexpected token ."
> ... StyleSheet with Tag systemConfig.

The "systemConfig" tag is used for tiddlers that contain *Javascript
program code* (i.e., "plugins"). During startup, the contents of any
tiddlers tagged with systemConfig are passed to the browser's
Javascript engine for processing, so they can modify/extend the
standard TWCore program definitions. However, unlike plugin tiddlers
that contains javascript, the StyleSheet tiddler contains *CSS syntax*
that is automatically applied as an overlay to the standard TWCore CSS
definitions (see StyleSheetColors, StyleSheetLayout, StyleSheetPrint,
StyleSheetLocale), and thus must *not* be tagged with systemConfig or
the TWCore will attempt to invoke it as javascript code -- resulting
in the kind of error you are seeing.

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

Gabriel Jülke

unread,
Nov 30, 2012, 4:49:34 AM11/30/12
to tiddl...@googlegroups.com
StyleSheetLocale), and thus must *not* be tagged with systemConfig or
the TWCore will attempt to invoke it as javascript code -- resulting
in the kind of error you are seeing.

:) Thanks, that was my mistake ;) Now everythings fine. 
Reply all
Reply to author
Forward
0 new messages