hi,
when I call an category in s9y, the $category_info.category_name will have the name of the category.
when I call an entry, how can I get the category name for this entry?
thanks
category_name
An entry an be in multiple categories, so this doesn't exactly apply.
However, each entry has one 'categories' array, which contains a nested array for each category the entry is assigned to. Each nested array holds the name, icon, description, and link for the category.
You can see an example in the entries.tpl of the default/ template. Search for {if $entry.categories} to see where we print all the categories for the entry.
However, each entry has one 'categories' array, which contains a nested array for each category the entry is assigned to. Each nested array holds the name, icon, description, and link for the category.
You can see an example in the entries.tpl of the default/ template. Search for {if $entry.categories} to see where we print all the categories for the entry.