Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
/ last_segment Public archive

This little extension creates a new global variable which fetches the current last segment in a URL and registers it as a global variable.

Notifications You must be signed in to change notification settings

tomkiss/last_segment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

last_segment Expression Engine 1.x extension

This little extension creates a new global variable which fetches the current last segment in a URL and registers it as a global variable.

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/.

The extension also sets global variables for the last segment but ignoring pagination in the URL, and a variable for returning the current URL.

For more information please visit: http://www.tomkiss.net/ee/add-on/last_segment

About

This little extension creates a new global variable which fetches the current last segment in a URL and registers it as a global variable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages