Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Questions and Answers >> $HTMLExportTemplate plain
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1486501127

Message started by james a. foster on Feb 7th, 2017, 3:58pm

Title: $HTMLExportTemplate plain
Post by james a. foster on Feb 7th, 2017, 3:58pm

In one of my databases, $HTMLExportTemplate is "plain". But in another, when I use that value, I get the little yellow thought bubble error message saying that there is no such template, and the notes with that template don't export.

But in the first database, notes with "plain" do export. And I can't find any template anywhere in my database called "plain". It also doesn't show up in the dropdown list of templates in the Inspector using the icon with a 4 in it.

What is this "plain" template? Where does it live? What does it look like? Why am I seeing this differential behavior??

Title: Re: $HTMLExportTemplate plain
Post by Mark Anderson on Feb 7th, 2017, 4:16pm

Pre v6, there was a baked-in 'plain' template - i.e. you didn't need to add it to a TBX: see [url-http://www.acrobatfaq.com/atbref5/index/TinderboxFileTypes/Built-intemplates/HTMLexport/plain.html]here[/url]. This was discontinued in v6+. However, this doesn't stop a similar template being added manually to a document. In both v5/v6 an agent testing for $IsTemplate==true will return all notes that are defined in the current doc - they can live anywhere in the document even though by convention they are normally placed in a container called 'Templates'.

As regards the Inspector, you're looking at the Document Inspectorand the pop-up list is the list of prototypes defined for that document.

To view the templates defined, using the HTML Inspector, click the button marked '<>' in the top row and then pop the list for 'Template'. That will show you all the available templates in the document.

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.