GWcode Categories Release Notes

Version 1.8.9. Released May 1, 2012. Download

  • Added "switch" parameter.

Version 1.8.8. Released April 14, 2012. Download

  • Added "show" parameter to only show categories with a certain category id.

Version 1.8.7. Released February 24, 2012. Download

  • Now using the file_field class for EE 2.4+ to parse file upload paths.
  • Added "variable_prefix" parameter to prevent conflicts with other add-ons or native EE tags.

Version 1.8.6. Released January 15, 2012. Download

  • Added {parent_url_title} and {parent_name} variables.

Version 1.8.5. Released November 3, 2011. Download

  • Added orderby="random" option to randomly display your categories.
  • Dropped support for EE1.

Version 1.8.4. Released July 26, 2011. Download

  • [EE2] Fixed a bug where the backspace parameter wasn't working properly.

Version 1.8.3. Released July 13, 2011. Download

  • When using the channel/weblog parameter in combination with the cat_id or cat_url_title parameter, the plugin will now only count entries for the channel/weblog you specified. This can be useful when you have two or more channels/weblogs that share the same category group.

Version 1.8.2. Released July 12, 2011. Download

  • Added "excl_group_id" parameter which can be used in combination with the channel/weblog parameter to be able to count entries for a certain channel/weblog only, while removing category groups assigned to that channel/weblog from the results.

Version 1.8.1. Released July 10, 2011. Download

  • [EE1] Fixed a bug where some tags were not parsed properly when no tagdata was provided.
  • [EE1][EE2] When using the channel/weblog parameter and not the group_id parameter, the entry_count variable will now only count entries belonging to those channel(s)/weblog(s). Before this release, it would look up the category group ID's assigned to the supplied channel(s)/weblog(s) and then count entries from any channel/weblog with those category groups assigned.

Version 1.8.0. Released June 23, 2011. Download

Important: In this version and newer ones, I'm using the template parser class to parse variables. Because of this some variables have changed in how you use them. Some have been renamed as well to make them easier to understand. If you're currently using an older version of GWcode Categories on your site and upgrade to version 1.8.0, you'll need to change your code if you use any of those variables! You can see the changes below:

  • The plugin is now using the template parser to parse variables for easier conditionals.
  • Added {has_children_in_output} variable.
  • Renamed "new_depth" parameter to "output_depth".
  • Removed ability to use {group_heading} when style="linear" as it's only usable for style="nested" or style="simple". Use instead for linear output.
  • Replaced {last_child} variable ("yes" or "no" value) with {has_children} variable (true or false value).
  • Replaced {new_group} variable ("yes" or "no" value) with {group_start} variable (true or false value).
  • Replaced {end_group} variable ("yes" or "no" value) with {group_end} variable (true or false value).
  • Added {depthX_start}, {depthX_end}, {depthX_start_count} and {depthX_end_count} variables where X represents a number.

Version 1.7.0. Released June 16, 2011. Download

  • The {cat_count_in_group} variable can now be parsed in between the {group_heading}..{/group_heading} variable tag pair.
  • Added {output_path} variable.
  • Added cat_url_title parameter.

Version 1.6.2. Released June 5, 2011. Download

  • Fixed a bug where no output was being generated or sql error would be shown when "None" is one of the selected category groups for a channel/weblog.
  • [EE1] fixed a bug where the template class was not being initialized in some functions where no_results would be returned.

Version 1.6.1. Released June 2, 2011. Download

  • Converted the plugin to EE1.
  • Added the ability to provide multiple entry_id parameter values, to create a list of (unique) categories for those entries.

Version 1.6.0. Released May 25, 2011. Download

Important: I've decided to rename the {count} variable to {cat_count} to solve a conflict with other add-ons such as safecracker. If you're currently using an older version of GWcode Categories on your site and upgrade to version 1.6.0, you'll need to change the variable name in your templates!

  • Improved the function for looking up a category's breadcrumb trail or child categories.
  • Fixed a bug where the {group_heading}..{/group_heading} variable pair would not be parsed when spread across multiple lines.
  • Renamed {count} variable to {cat_count} to solve a conflict with other add-ons such as safecracker.
  • Added "{end_group}" variable.
  • Added "{cat_count_in_group}" variable.

Version 1.5.0. Released May 17, 2011. Download

  • Added "offset" parameter.
  • Added "{complete_path}" variable.

Version 1.4.1. Released May 16, 2011. Download

  • Fixed a bug where the "{li_depth}" variable wasn't being parsed when using style="linear".

Version 1.4.0. Released May 15, 2011. Download

  • Added "new_depth" parameter.
  • Added "orderby" parameter.
  • Added "sort" parameter.
  • Added "{li_depth}" variable.

Version 1.3.0. Released May 6, 2011. Download

  • Added parameter "count_future_entries".
  • Added parameter "count_expired_entries".
  • Added the ability to use show_empty="no" in combination with the "entry_id" parameter.
  • Fixed a bug where in some cases a simple list was being returned while nested was also possible.

Version 1.2.0. Released April 29, 2011. Download

Important: I've decided to rename the {group_id} and {group_name} variables to {cat_group_id} and {cat_group_name}, for various reasons. If you're using an older version of GWcode Categories and upgrade to version 1.2.0, you'll need to change the names of those variables in your templates if you use them!

  • New parameter "custom_fields". Allows you to show custom category fields.
  • New parameter "cat_id". Allows you to display a list of child categories for that category.
  • New parameter "show_trail". Can be used in combination with the "cat_id" parameter to display a category's parent categories instead of its child categories.
  • New parameter "incl_self". Can be used in combination with the "cat_id" parameter. Allows you to control whether or not you'd like to include the category provided with the "cat_id" parameter.
  • The variable "{entry_count}" can now be used in combination with the "entry_id" parameter as well.
  • New parameter "show_full_trail". Can be used in combination with the "entry_id" parameter. When set to "yes", it will show a full trail from the root category to the category an entry has been posted in, even if the entry hasn't been added to a category's parent categories.
  • It's now possible to supply more than 1 channel value in the channel parameter. The order of the values in the channel parameter determines the order of the output.
  • Added support for template debugging.
  • New parameter "excl_cat_id". Can be used to exclude one or more categories from the results.
  • New parameter "excl_cat_id_children". Can be used in combination with the excl_cat_id parameter. If set to "yes", all children of the categories will be excluded as well.
  • Added support for no_results in conditionals.

Version 1.1.0. Released March 6, 2011. Download

  • Added the ability to use both channel and group_id parameters in one tag, so you can get all categories for a channel and the ones for the category group(s) provided with the group_id parameter.
  • Added entry_count parameter. Enables the {entry_count} variable to display the number of entries in a category.
  • Added status parameter. Enables the {entry_count} variable to display the number of entries with a certain status in a category.
  • Added show_empty parameter. Allows you to show only categories with 1 or more entries.
  • Added "simple" value for the "style" parameter. Allows you to specify if you'd like a nested list to be simple or not.

Version 1.0.1. Released February 4, 2011. Download

  • Tweaked the backspace parameter a bit. If {group_heading} variable pair is used, the backspace parameter will now be used after each category group listing.
  • Added a class to the <h2> tags for CSS styling when no tag data is used ({exp:gwcode_categories}{/exp:gwcode_categories}).
  • {exp:gwcode_categories style="linear" backspace="1"}{/exp:gwcode_categories} will now use ", " as a delimiter for categories.

Version 1.0.0. Released January 30, 2011. Download

  • Initial Release