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.

Categories combination with low2seg

June 22, 2012 6:11pm

Subscribe [1]
  • #1 / Jun 22, 2012 6:11pm

    oceanreaction

    6 posts

    I have a few links and categories.

    If I want to have a radio button function to pick up and ‘destroy’ if needed, how would I do that?

    I have for example,
    Domain.com/index.php/category/trainer

    And I also have,
    Domain.com/index.php/category/1982

    And I want someone to select if they want to see trainers from 1982 meaning categories x and y, how would I do this with segments? Do I do that with if statements?

    So if i click on 1892 before ive clicked the type of profession, just show 1982…but if I’ve clicked on both,  then say if segment 2 is trainer, show trainers AND 1982, thus giving me trainers FROM 1982. Does that make sense?

  • #2 / Jun 25, 2012 4:25pm

    Dan Decker

    7338 posts

    Hi oceanreaction,

    Thanks for your question!

    You mentioned Seg2Cat in your title, but not in the post.

    That would be a fine way to sort out your categories. If you have 1982 (which may not work since it could also be an ID number…) and trainer, in either order, Seg2Cat would translate those to category IDs.

    {exp:channel:entries channel="trainers" category="{segment_2_category_id}|{segment_3_category_id}"}

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases