Forum OpenACS Q&A: Re: suppress errors in templates

Collapse
Posted by Torben Brosten on
You could use the tcl file exists to check for the existence of the template before running it.

If the list of templates doesn't change after startup, then you could run this once and store the results with the subtemplates references.

cheers,

Torben

Collapse
Posted by Jeff Rogers on
I assume you mean to filter the list of subtemplates in the .tcl file corresponding to the template. But what file would I be looking for? Is there a proc to find the .adp and .tcl files for a particular named template, relative to another template?