Folks,
The following is in a tiddler tagged $:/tags/ViewTemplate
Some may want to use it, it selects a view template according to an
object-type field on a tiddler. Change the prefixes to suite your own use
*However:*
I can not determine why it is always displaying at the bottom of each
tiddler, displayed using the template;
</$set></$set>? </$list>
I would be grateful if anyone can identify the cause, most likely in this
below WikiText because it happens if the template is empty, simple or
complex.
<$list filter="[is[current]!is[system]has[object-type]get[object-type]]"
variable="object-type">
<$set name=object-template value={{{
[<object-type>addprefix[$:/PSaT/templates/objects/]]
}}} >
<$set name=object-view-template value={{{ [<object-type>
addprefix[$:/PSaT/templates/viewtemplate/]] }}} >
''object-view-template:'' <<object-view-template>> ''object-template:
<<object-template>><br>
<$transclude tiddler=<<object-view-template>> mode=block/>
</$set></$set>?
</$list> [[Edit View template|$:/PSaT/viewtemplate]]
Note:
- $:/PSaT/WRRef/templates/objects refers to a template for creating new
objects like the current one
- $:/PSaT/templates/viewtemplate/ refers to the template used to display
tiddler of the object-type
Thanks in Advance
Tony
--
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/0afa3242-9cde-4ac8-86b8-6268ec4d4b9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.