If you’ve been working with Hot Ink for a while, you may have noticed some overlap between the use of the terms “section” and “category”. In Hot Ink your newspaper can have many categories, those categories can have many subcategories, those subcategories can have their own subcategories and so on. We use the term “section” to refer specifically to your top-level categories, those that are not subcategories of any other category.
One important caveat: an article’s main category is referred to as its “section”, regardless of whether it’s a top-level category or not.
The main way you will access your newspaper’s sections is through the newspaper drop using ‘newspaper.sections’. You can access the categories that an article belongs to using the ‘article.categories’ array from the article drop.
For each section/category the following data is available:
category.name - the name of the category
category.id - the category’s unique Hot Ink id number
category.subcategories - an array of the article’s subcategories
