Folks, The viewTemplate is a great way to get content or macros to be active on a tiddler without using your text field to include macros and templates. This leaves the text field free for the information you are composing. See elsewhere for how to use the view template.
*I just made this simple view template* to make displaying things on a
tiddler much easier. This helps for learning, debugging, and proto-typing
something you may later place in the view template. See the examples below,
it is a great way to learn.
*You will be amazed at the possibilities*
Once installed all you need to do is create a local-viewtemplate field on
any tiddler, and its value will be displayed in the view template for that
tiddler only
*Remember The content of the field will be rendered so you can;*
- Include wikitext, buttons, transclusions, widgets, variables and more
in your local-viewtemplate field
- Helps when debugging or prototyping
- This content does not appear when transcluding the current tiddler
from elsewhere, although it could be if desired.
*Other tips*
- Use `<br>` for line breaks
- Transclude with mode block to bring in multi-line content from
elsewhere
Create a tiddler tagged $:/tags/ViewTemplate containing the following;
<$list
filter="[all[current]has[local-viewtemplate]get[local-viewtemplate]]"
variable=field-value>
<<field-value>>
</$list>
Also Attached for your convenience
You can use the `<<tag "$:/tags/ViewTemplate">>` pill to reorder this or
add a list-before/list-after field to set where it appears on the view
template, by default it will be at the bottom.
*Examples,* try these in your local-viewtemplate one or more at a time
''Hi'' there
[[more]]
{{TableOfContents}}
{{||$:/core/ui/Buttons/edit}}
{{||$:/core/ui/Buttons/open-window}}
{{||$:/core/ui/EditTemplate/tags}}
{{$:/core/ui/Buttons/home}}
<<tag>>
<<tag $:/tags/ControlPanel>>
<<list-links filter:"[tag[Core Macros]]">>
<<dumpvariables>>
<<transclusion>>
*Feedback*
- Let me know here if this is helpful, if their is a call for it, I can
make a multi-line text field work with this.
- Share any examples you develop by sharing the content of the
local-viewtemplate you used similar to my examples above, describe what it
does (I have not intentionally to get you to experiment)
Regards
TW Tones
--
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/5f21dbf3-b40c-4712-bd96-df24872c2db4o%40googlegroups.com.
Local View Template.json
Description: application/json

