Newscoop 3 Cookbook


The template object is set at the beginning of the main template based on the request URL. This object cannot be changed using Newscoop functions. The template object has the following properties:

  • name: the template file name
  • identifier: the template identifier in the Newscoop database
  • type: returns one of the following values: issue, section, article, default, nontpl
  • defined: true if the template object had a valid value