Segment Search

Developer

Rob Sanchez

3rd Party (Free)

36 downloads (last 90 days)

Download v1.0.0

EE Version Support

  • ExpressionEngine 2

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

Search URL segments for use in conditionals.

Usage

Search ALL segments for the presence of the word “stuff”.

{if {exp:segment_search keyword="stuff"}}{/if}

Search ALL segments for the exact word “stuff”.

{if {exp:segment_search keyword="=stuff"}}{/if}

Search ALL segments for the presence of the word “stuff” or “puff”.

{if {exp:segment_search keyword="stuff|puff"}}{/if}

Search ALL segments for the absence of the words “stuff” and “puff”.

{if {exp:segment_search keyword="not stuff|puff"}}{/if}

Search segments 1-3 for the presence of the word “stuff”.

{if {exp:segment_search keyword="stuff" segments="1|2|3"}}{/if}

Search ALL segments except 1-3 for the presence of the word “stuff”.

{if {exp:segment_search keyword="stuff" segments="not 1|2|3"}}{/if}

Search segments 1-3 for a number using regex.

{if {exp:segment_search keyword="/\d+/" segments="1|2|3" regex="yes"}}{/if}

Search the last segment for P and a number (a pagination page) using regex.

{if {exp:segment_search keyword="/P\d+/" segments="last" regex="yes"}}{/if}

Download Segment Search

EE Support Downloads Add-On Version Release Date
Not Specified Download 1.0.0 Feb 9, 2011

Segment Search Links

This entry was created February 9, 2011, 5:57 pm.
This entry was last updated June 9, 2013, 10:26 pm.

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.

3 Reviews:

Jules6120 10.28.13

Jules6120
Rating - {addon_rating_average}

This really got me out of a bind. Brilliant stuff. Thanks for giving this to the community.

Sam Sullivan 10.09.12

Sam Sullivan
Rating - {addon_rating_average}

Thanks Rob! it sorted out my pagination a treat.

jtrascap 07.11.12

jtrascap
Rating - {addon_rating_average}

Brilliant - needed something unique for new site and it hit the spot.