Under HTML5 all tags have to either be self-closed or have matching closing 
tags.

Widgets work just like html tags. So each <$view> widget needs to be closed 
on the end. e.g.

<$view field="caption" */>*

HTH

On Thursday, November 21, 2019 at 5:30:40 PM UTC-8, Paul Lee wrote:
>
> Why will only one *<$view>* widget from my template tiddler show up in 
> the tiddlers that transclude the template?
>
> I have data stored in fields in my tiddlers, and I want those fields to be 
> rendered into the tiddler based on the template that I transclude inside 
> each tiddler. However, I can only ever get this to work with once in each 
> tiddler. The first time I reference a field with the *<$view>* widget, it 
> is correctly displayed, but subsequent attempts to reference different 
> fields simply do not show up. I tested using a different widget, <$text>, 
> and that widget also only appears if it is the first widget in a tiddler.
>
> How do I get multiple widgets to show up in the same tiddler?
>
> I have this in my template tiddler:
>
>  
> //<$view field="caption">//
>
>
> ''Year of birth: <$view field="birth-year">''
>
>
> ''Year of death: <$view field="death-year">''
>
> The tiddlers transclude this template successfully, but with this code, 
> only the value of the child tiddlers' "caption" field is displayed, unless 
> that line in deleted from the template, in which case only the "birth-year" 
> field is rendered.
>
> How can I render multiple widgets using one template?
>
> Thanks much.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0799303b-107f-476b-8cca-f91206b2af05%40googlegroups.com.

Reply via email to