>
> Hi Simon, Hi Jeremy,
> it would be great to be able to style tiddlers by type like 
> [data-tiddler-type="text/plain"] { background-color: #333333; } 
> text/plain.
>
> Could you make this possible?
>
> Jan
>
>
> @Jan, you can accomplish that by editing the $:/core/ui/ViewTemplate:

after the data-tiddler-title=... add your data-tiddler-type=...

I think most of the tiddlers won't have any type assigned, that's why I 
would do it like this:

<$set name="dataTiddlerType" 
filter="[{!!type}regexp[^$]addprefix[text/vnd.tiddlywiki]]"><div 
class=<<frame-classes>> ... data-tiddler-type=<<dataTiddlerType>>>

... don't forget to close the <$set> after the closing </div> ... take care 
that you don't add new lines


Simon
 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a3d4e59d-f966-4123-96e0-319d44e757ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to