[tw] Re: TW5 - Styling individual tiddlers based on their tags

2014-06-26 Thread Måns
Hi Michael This is probably not an answer to you question - however I made a little study in templating forms for editing, displaying and printing tiddlers tagged with mytag here: http://templating.tiddlyspot.com/ (Username for signing edits needs to be the name of the modifier for tiddlers

[tw] Re: TW5 - Styling individual tiddlers based on their tags

2014-06-25 Thread Michael
Dear Stephan, Thanks a lot for your answer! I checked your example, however I am not sure whether it is a solution to my problem: Creating custom view templates allows to modify what kind of elements are displayed in a tiddler and how they look (e.g. by adding classes). I would like to

[tw] Re: TW5 - Styling individual tiddlers based on their tags

2014-06-25 Thread Danielo Rodríguez
I think you can achieve this using macros. You can wrap the whole tiddler content in a DIV and change the div class based on the tags using a macro. Then the only thing you have to do is to style the child of the div based on its class. .div1 table{} .div2 table{} and so on Regards. --

[tw] Re: TW5 - Styling individual tiddlers based on their tags

2014-06-25 Thread Stephan Hradek
You're just replying to my second proposal. Try the first one like so: Change $:/core/ui/ViewTemplate/body to look like below \define classes() body $(theTags)$ \end $set name=theTags value={{!!tags}} div class=classes $transclude $transclude tiddler=$:/language/MissingTiddler/Hint/

[tw] Re: TW5 - Styling individual tiddlers based on their tags

2014-06-24 Thread Stephan Hradek
Yes. But you need to change the view template(s). Either you create a view template which adds one or mor classes to some of the dom elements, or you create individual view templates for specifically tagged tiddlers. For example: On http://tw5magick.tiddlyspot.com/ I created a viewtemplate