Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

Quick Comparison: Last Segment options in EE 2.1.1

When I saw that EllisLab was going to add {last_segment} to EE 2.1.1, I thought that would surely make obsolete any add-ons developers have made to pull off the same trick. I headed over to Devot:ee and found Bjorn Borresen’s free Last Segment add-on to take a look.

When I compared Borresen’s add-on to the new built-in functionality, I saw that Borresen’s Last Segment appears to do quite a bit more with additional options, such as showing the last segment with or without pagination.

I have to imagine that Borresen will update his Last Segment add-on to work with EE 2.1.1. Since they both use the {last_segment} variable, I’d shy away from using them together. And if you depend on some of the features of Borresen’s Last Segment add-on, wait till he does update it before upgrading to 2.1.1.

Posted on Oct 19, 2010 by Brian Warren

Filed Under: EE Add-ons, EE Extensions

Emmanuel11:11 on 10.19.2010

let’s say it: once again, hasn’t Ellis Lab pulled another misfit? yes it has. Despite having at least 2 add-ons on the market with this capability, they introduce a sub-par version of “last_segment”...are they lacking a developper or a designer, tell me?

Nico Smit17:19 on 10.19.2010

Hopefully they’ll introduce the extra option to retrieve the last segment without pagination somewhere before 2.3.8…let’s be honest;these variables should have been available in the core many years ago..

Bj13:57 on 10.20.2010

Hi guys,

I updated my extension to add a {last_segment_no_pagination} since what I set in {last_segment} is overriden by EE 2.1.1.

It’s just a quick fix - I expect this extension to be deprecated pretty soon (when EllisLab changes this behaviour). They can just copy these lines if they want: http://github.com/bjornbjorn/Last-Segment-extension—-plugin/blob/master/last_segment/ext.last_segment.php#L117

wink