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: