Hi Siniy-Kit

> Hi! When I use $tw.wiki.renderTiddler("text/plain","$:/SiteTitle") I get 
> value of text field of tiddler $:/SiteTitle. But how can i get value of 
> caption field?
> 
> I try  var sitetit=" 
> "+$tw.wiki.renderTiddler("text/plain","$:/SiteTitle",{field: "caption"}) but 
> it dont work

The wiki.renderTiddler() method doesn’t provide direct support for rendering a 
field other than the text field. You could roll your own variant that provided 
that feature, but it may be simpler to instead create a template tiddler 
containing <$transclude tiddler="$:/SiteTitle" field="caption”/> and then to 
render that tiddler.

Best wishes

Jeremy.

> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/298d9849-c34b-46f4-b52c-f83f3e613435%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/298d9849-c34b-46f4-b52c-f83f3e613435%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/9F472C71-37DB-4FBA-9403-2897155E5E18%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to