Error in View tiddler object template selection

18 views
Skip to first unread message

TonyM

unread,
Jul 10, 2019, 10:52:06 PM7/10/19
to TiddlyWiki
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

TonyM

unread,
Jul 10, 2019, 11:07:43 PM7/10/19
to TiddlyWiki
Solved

The cause of all my grief is the text
''object-template:

did not close the quotes.

Arggggh

Tony
Reply all
Reply to author
Forward
0 new messages