[tw5] Re: Dynamic css and transcluding

2020-09-13 Thread PMario
On Sunday, September 13, 2020 at 3:20:50 PM UTC+2, amreus wrote: > > Mario. This is the greatest example, thanks. > Cool that you liked it :) It's always a pleasure to see, that other users take those examples and use them in new ways! > I've made a similar example here >

[tw5] Re: Dynamic css and transcluding

2020-09-13 Thread amreus
Mario. This is the greatest example, thanks. I've made a similar example here . In short this is customizing the view of a tiddler's fields via a template, and applying a style based on the tiddler's

[tw5] Re: Dynamic css and transcluding

2020-09-09 Thread sin...@gmail.com
Wow, it must be Christmas!  Thank you for the code (works like a charm!) and even more, thank you for developing the plugin. It is amazing! :-) I don't think what I wanted to do is of useful to other people, but if you curious: I wanted to change the color of the bullets fast by dragging it

[tw5] Re: Dynamic css and transcluding

2020-09-09 Thread Saq Imtiaz
Attached is a customized template for Streams that adds a data-node-title attribute to each node, where the value of the attribute is the title of the transcluded tiddler. Note that the attribute is called data-*node*-title and not data-tiddler-title. If this is helpful and you can explain

[tw5] Re: Dynamic css and transcluding

2020-09-09 Thread sin...@gmail.com
Thank you for the helpful answers, now at least I know what I am missing! What I actually wanted to do is unfortunately more complicated than that. I am using a plugin (Streams - https://saqimtiaz.github.io/sq-tw/streams.html) that uses a lot of transclusions, and I wanted to style the

[tw5] Re: Dynamic css and transcluding

2020-09-09 Thread TW Tones
I think what you are missing is in reality transclude is really only the text field not any other properties of the tiddler. You could emulate this by making it the current tiddler and using that to display content. Regards Tony On Wednesday, 9 September 2020 at 20:31:51 UTC+10

[tw5] Re: Dynamic css and transcluding

2020-09-09 Thread PMario
On Wednesday, September 9, 2020 at 12:31:51 PM UTC+2, sin...@gmail.com wrote: > I want to use dynamic css (as described here: > https://tiddlywiki.com/static/Q%253A%2520How%2520can%2520I%2520use%2520a%2520custom%2520field%2520to%2520style%2520a%2520tiddler%253F.html) > > to style a tiddler

[tw5] Re: Dynamic css and transcluding

2020-09-09 Thread Mat
Right, the css needs a specification in order to "know" what to target its styles on. But the specification when you use "data-tags" is the tiddler with a certain tag... which is what you removed the text from, so you lost the specification which was pointing and saying "color this text blue".