EE 1
EE 2
Category Info
Developer
3rd Party (Commercial)
Current Version: 1.3
Buy Now!
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
Category Info allows you to output info about a certain category without specifying anything about weblogs 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}
Category Info Links
This entry was last updated January 9, 2011, 11:57 pm.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
1 Review:
Portnull 11.28.11
good addon, does what it says and well.