Any segment
Description
A plugin that can be used with ExpressionEngine conditionals which returns TRUE if a specified string is found in any segment. Does this happen to you?
-
Your templates are accessible on your site with or without the default template group.
eg.
yoursite.com/index.php/en/blog
yoursite.com/index.php/blog
... but you have conditionals in your template targeting specific segments.
eg.{if segment_2 == "blog"}
What happens ifenis not part of the URL?blogmay not be insegment_2
In this case, the any_segment plugin would look at all segments and return true if any segment contains "blog".
