Newscoop 3 Cookbook


The topic object is usually initialized inside a list of article topics or a list of subtopics. It can be initialized at the beginning of the template from the URL request, or by using the set_topic function in Newscoop. The topic object has the following properties:

  • name: returns the topic name in the current language defined in the template environment
  • value: returns the topic value in the following format: <topic_name_lang_code> = <topic_name>:<language_code>
  • identifier: the topic identifier in the Newscoop database
  • defined: true if the topic object had a valid value