All add-ons

Low Seg2Cat

Compatibility: EE1, EE2
Latest release: 2.6.1 (released 2011-09-19)
Licensing: CC Attribution-Share Alike 3.0

Installation

The download contains both the EE1 and EE2 version.

ExpressionEngine 2

  • Download and unzip Low Seg2Cat
  • Copy the ee2/low_seg2cat folder to your /system/expressionengine/third_party/ directory
  • In your Control Panel, go to Add-Ons → Extensions and click the Install-link in the Low Seg2Cat row
  • All set!

ExpressionEngine 1

  • Download and unzip Low Seg2Cat
  • Copy the ee1/extensions/ext.low_seg2cat.php file to your /system/extensions/ directory
  • Copy the ee1/language/english/lang.low_seg2cat.php file to your /system/language/english/ directory
  • In your Control Panel, go to Admin → Utilities → Extensions Manager and enable the Low Seg2Cat extension
  • All set!

Upgrade

To upgrade Low Seg2Cat from a previous version, download and overwrite the files as per the installation instructions. The add-on will be upgraded automatically.

Settings

Settings for Low Seg2Cat
Setting Description
Category Groups Limit the search for matching categories by selected groups. When no groups are selected, all groups will be searched.
URI Pattern Enter a regex pattern or leave blank. If you enter a pattern, the variables will only be registered if the current URI matches it.
Set all segments If set to Yes, Low Seg2Cat will always set variables for all (9) segments, regardless of their presence.

Template variables

  • {segment_n_category_id}
  • {segment_n_category_name}
  • {segment_n_category_description}
  • {segment_n_category_image}
  • {segment_n_category_parent_id}
  • {segment_n_category_group_id}
  • {last_segment_category_id}
  • {last_segment_category_name}
  • {last_segment_category_description}
  • {last_segment_category_image}
  • {last_segment_category_parent_id}
  • {last_segment_category_group_id}
  • {segment_category_ids}

...where n is the segment number. {segment_category_ids} will return an inclusive stack of all found category ids, for example: 4&12.

Caveats

If there are multiple categories with the same url_title, but in different groups, this extension will only return one of those. So best make sure your category url_titles are unique, or you select the relevant Category Groups in the settings so they are.