Problem ReleaseNotes.Code.ReleaseNoteTemplate carries a dynamic title, Release Notes for $doc.getValue('product') $doc.getValue('version'), which is copied verbatim into every release note created from the application home page. On the created page that title resolves correctly, because the page holds a ReleaseNoteClass xobject with a product and a version. The template page itself holds no such xobject, so neither reference resolves and Velocity leaves them as literal text. Everywhere the template page is displayed by its title, the user is shown the raw script instead of a name:
- in the "Template Reference" page picker of the wiki administration (Administration > Other > Release Notes), which is exactly where an administrator is asked to pick that page
- on the template page itself, in its breadcrumb, in search results and in the document index
Proposal Give the title a fallback for the case where the page has no release note xobject, the same idiom ReleaseNotes.Code.Change.ChangeSheet already uses:
#if ("$!doc.getValue('product')" != '')Release Notes for $doc.getValue('product') $doc.getValue('version')#else Release Note Template#end
The template page then reads as "Release Note Template", while release notes created from it keep their dynamic title unchanged. |