The attached add-on files may be out of date. Please visit Devot-ee for the latest versions.
I would like to present to your attention a new plugin: Category Info. This plugin allows you to output info about certain category without specifying anything about weblog or entries.
PARAMETERS:
1) category_id - Required. Allows you to specify category id number.
2) site - Optional. Allows you to specify site id number.
3) invalid_input - Optional. Accepts two values: “alert” and “silence”.
Default value is “silence”. If the value is “alert”, then in cases when
the plugin has some problem with parameters, PHP alert is being shown;
if the value is “silence”, then in cases when the plugin has
some problem with parameters, it finishes its work without any alert being shown.
Set this parameter to “alert” for development, and to “silence” - for deployment.
VARIABLES:
1) {cat_info_category_group_name}
2) {cat_info_category_group}
3) {cat_info_parent_category_id}
4) {cat_info_category_name}
5) {cat_info_category_url_title}
6) {cat_info_category_description}
7) {cat_info_category_image}
8) {cat_info_subcategories_number}
9) {cat_info_nonempty_subcategories_number}
Also the values of custom category fields can be retrieved using their names with “cat_info_” appended. E.g. if there is custom category field named “my_field”, its value can be outputted using variable {cat_info_my_field}.
Conditionals are supported.
EXAMPLE OF USAGE:
{exp:cat_info category_id="{segment_3}"}
{if cat_info_category_group=="3"}
Some code
{/if}
{if cat_info_category_group=="45"}
Some code
{/if}
{/exp:cat_info}
