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.

Check to see if a segment is a valid category

June 06, 2012 11:56am

Subscribe [1]
  • #1 / Jun 06, 2012 11:56am

    Matthew81

    81 posts

    Is there any way to use {if} conditionals to see if a particular segment is a category? Not a particular category - just if it’s any category that exists in the system.

  • #2 / Jun 08, 2012 3:32pm

    Matthew81

    81 posts

    Anybody?

  • #3 / Jun 08, 2012 4:12pm

    Bhashkar Yadav

    727 posts

    Hi Matthew81,

    There is a plugin Segment Category Info you can use it.

    Instead of having {if} condition and putting code within {if} you can put your code within this plugin tag.

    But it have few drawback :
    - It checks category of a channel only
    - works for only one channel

    Look at this if it can be helpful for you.


    Best Regards,
    Bhashkar

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

ExpressionEngine News!

#eecms, #events, #releases