Eric,

While Ton Gerner's advice worked great, I'm always looking to see what 
other techniques work and why.  So I gave your advice several failed 
attempts and could not get a single attempt to work properly.

Adding a closing tag like you seem to suggest as shown below doesn't line 
wrap either and the yellow background was not applied to the altered shadow 
tiddlers either:

@@.my-class
<$list filter="[all[shadows]sort[title]]"></$list>
@@


Essentially, that left me with the same problem that I had initially.

This next attempt did show the list of shadows with one per but with no 
yellow background applied to the altered shadow tiddlers:

@@.my-class
<$list filter="[all[shadows]sort[title]]">

</$list>
@@



These next three attempts displayed some wrapping problems on some lines 
but not on others: 

@@.my-class
<$list filter="[all[shadows]sort[title]]"> <<currentTiddler>><br> </$list>
@@



and:

@@.my-class

<$list filter="[all[shadows]sort[title]]"> <<currentTiddler>><br> </$list>

@@


and this didn't work either:

@@.my-class
<div>

<$list filter="[all[shadows]sort[title]]"> <<currentTiddler>><br> </$list>

</div>
@@


For whatever reason, only Ton Gerner's suggestion appears to work properly. 
 Am I missing something?

Thank you,

-Doug


On Friday, February 17, 2017 at 1:07:27 PM UTC-6, Eric Shulman wrote:
>
> On Friday, February 17, 2017 at 10:14:27 AM UTC-8, Douglas Counts wrote:
>>
>> I can successfully display the shadow tiddlers in a list like so:
>>
>> <$list filter="[all[shadows]sort[title]]"/>
>>
>>
>
> The <<list-links>> *macro* can be used to quickly display filter results, 
> one per line, with bullets.
>
> The <$links> *widget* is the underlying mechanism that the <<list-link>> 
> macro uses.
>
> When used without a matching </$list> (i.e, by using a closing "/>" in the 
> "<$list .../>" syntax), it simply outputs the matching tiddler titles, 
> without any other special formatting.  This is as intended.  To output the 
> <$list> results with desired formatting, you must specify the output format 
> *inside* of <$list>...</$list>, like this:
>
> <$list filter="..."> <<currentTiddler>><br> </$list>
>
> Note: within the <$list> widget content, <<currentTiddler>> is the value 
> of each matched tiddler title.  Thus, in the above example, each matched 
> title is display, one per line, using <br> to separate them.
>
> <style>
>> .my-class .tc-tiddlylink.tc-tiddlylink-resolves {
>>     background-color: yellow;
>> }
>> </style>
>>
>>
>> @@.my-class
>> <$list filter="[all[shadows]sort[title]]"/>
>> @@
>>
>>
> That is 99% correct.  If you fix your usage for <$list>...</$list> as 
> described above, your CSS tweak should work just fine.
>
> Let me know how it goes.
>
> -e
> Eric Shulman
> TiddlyTools: Small Tools for Big Ideas! (tm)
> InsideTiddlyWiki: The Missing Manuals
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/fb663cc1-cb6c-45c9-92c0-15e14a7f5038%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to