You could edit your $:/core/ui/ViewTemplate/body tiddler
that it looks like this.
\define lingo-base() $:/language/MissingTiddler/
\define getclass() body $(bg)$
<$set name="bg" value={{!!bg-class}}>
<div class=<<getclass>> >
<$transclude>
<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
</$transclude>
</div>
</$set>
create any tiddler named: test-background-body
some text with a light blue background.
add a field named: bg-class value: myClass
then create a tiddler eg: myStyleSheet and tag it $:/tags/stylesheet
.myClass {
background: lightblue;
}
So now every tiddler that has a field: bg-class can define its own
background for the tiddler body element.
You'll need to add your styles to the myStyleSheet tiddler.
... the problem is, assigning the class to the whole tiddler is more
complicated, with the existing ViewTemplate.
-mario
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.