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.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 06, 2012 11:56am
Subscribe [1]#1 / Jun 06, 2012 11:56am
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
Anybody?
#3 / Jun 08, 2012 4:12pm
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