Last Segment

Developer

Bjorn Borresen

3rd Party (Free)

54 downloads (last 90 days)

Creative Commons Attribution Download

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)

Extension

Tags

Get the {last_segment} of the current url in EE 2.0. The package contains both an extension and a plugin.

This extension will add the following global variables:

  * {last_segment} – last segment (will never be the pagination segment ie /P1)
  * {last_segment_absolute} – absolute last segment (even pagination)
  * {last_segment_id} – the id of the last segment (for example “3”)
  * {last_segment_absolute_id} – the id of the absolute last segment

If you don’t want to add these global vars you can use the plugin instead:

{exp:last_segment} will return the last segment. {exp:last_segment ignore_pagination=‘no’} will be the same as {last_segment_absolute}

Download Last Segment

EE Support Downloads Add-On Version Release Date
Not Specified Download Feb 4, 2010

This entry was created February 8, 2010, 5:27 am.
This entry was last updated February 19, 2010, 3:53 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.

1 Review:

ron00nor 08.06.12

Rating - {addon_rating_average}

The latest version of EE 2.x has the last_segment as a build-in variable. This plugin/extension is for that purpose no longer needed. Maybe only in case of the pagination issue or the extended features. Don’t know that yet.