I am no expert, but you could try the following: 

<$reveal type ="nomatch" stateTitle =<<item>> stateField ="subtitle" text 
=""> <span class="subtitle"> ... <$transclude tiddler=<<item>> 
field="subtitle" /></span> </$reveal>

Lemme know how it works!


On Thursday, April 9, 2020 at 11:51:44 AM UTC-4, David wrote:
>
> I'm inside a <$list> where the iterator var is "item".  This code is 
> correctly displaying the value of the subtitle field for the tiddler in 
> question.
>
> <$transclude tiddler=<<item>> field="subtitle" />
>
> But I'd also like to wrap it in a CSS class, so this now works just 
> fine....
>
> <span class="subtitle"> ... <$transclude tiddler=<<item>> 
> field="subtitle" /></span>
>
>
> But the final tweak is to only show that span when there is actually text 
> in the field.  If it's blank or not defined, I'd like not to display the 
> span or "..." separator, and of course there won't be text to show for the 
> field either.  
>
> I tried the Reveal widget but couldn't figure that out quite right.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ebfa3c64-ff43-4510-8250-ff7714322a61%40googlegroups.com.

Reply via email to