ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

URL Segments to Category Filters

May 11, 2012 10:48pm

Subscribe [2]
  • #1 / May 11, 2012 10:48pm

    spyro

    89 posts

    I am working on a site with a much more complex URL structure and extensive category set/tree than normal.

    For example: I wanted to have any combination of URLs like those listed below and only show entries that match all of the categories.

    events/us/ga/atlanta
    events/car/drift
    events/us/ga/atlanta/car/drift

    One thought that I had was to get the number of segments and if they are all categories then filter by categories with an AND operator. Such as category_group=“us&ga;&atlanta;&drift;&car;”

    Any thoughts on a way to accomplish this or a better way to do this?

  • #2 / May 12, 2012 8:22am

    Boyink!

    5011 posts

    You can do this using the Low Seg2Cat addon.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases