EE 1
EE 2
Last Segment
Developer
3rd Party (Free)
22 downloads (last 90 days)
Compatibility
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Better Workflow
- Matrix
Requirements
- jQuery for the Control Panel
Categories
Extension
Tags
The Last Segment extension creates a new global variable which fetches and renders the current last segment in a URL.
The addition of a {last_segment} variable can be extremely useful for a number of reasons. The main benefit is that it allows you to create the appearance of sub-templates and hierarchical page structures. For example, you could have a ‘pages’ weblog and by setting the url_title parameter of the weblog:entries tag to {last_segment}, create a structure of: /head/shoulders/knees/toes/
Update 1.0.2 adds the {last_segment_np} variable, which is set to ignore pagination.
It also adds {current_url}, outputting the URL of the current page.
Download Last Segment
| EE Version | Downloads | Add-On Version | Release Date |
|---|---|---|---|
| 1.x | Download | 1.0.2 | 2010-01-15 08:00 PM |
Last Segment Links
Hooks Used
If the add-on is an extension, and ties into ExpressionEngine's core files, it will use ExpressionEngine hooks. We are listing any hooks the add-on uses for developers to have an easier time locating other add-ons that they can reference for their own work.
This entry was created July 16, 2009, 10:34 am.
This entry was last updated January 15, 2010, 9:28 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!
1 Review:
johnniefp 09.07.09
A handly little extension. I’m building a site where I need to change content (headers & categories etc) based on the last segment.
I have one Fresh Variable with some PHP inside which is making decisions for all the pages on my site. Would have been more difficult without this.