Any Segment

Developer

Nicolas Bottari

3rd Party (Free)


EE Version Support

  • ExpressionEngine 1.x

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

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:

  • yoursite.com/index.php/en/blog
  • yoursite.com/index.php/blog

But you have conditionals in your template targeting specific segments:

{if segment_2 == "blog"}

What happens if en is not part of the URL? “blog” may not be in segment_2. In this case, the any_segment plugin would look at all segments and return true if any segment contains “blog”.

Sample Usage

{if {exp:any_segment equals="projects"}}
  ...Show content ...
{/if}

Works with simple conditional if, if:elseif, if:else tags

Any Segment Links

This entry was created September 25, 2009, 4:25 pm.
This entry was last updated December 10, 2011, 8:37 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!