Skip to content

EE2 Extension that adds some Global Variables about the current page.

Notifications You must be signed in to change notification settings

tobaco/Current

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Current (ExpressionEngine 2 Extension)

Current is small extension for ExpressionEngine 2 that grabs some useful information about the current page and adds them as global variables.

Installation

Drop the ‘current’ folder inside of your third_party directory. Activate the extension through the Add-Ons → Extensions menu.

Usage

Current creates some global variables you can use to look cool.

{current_url}

The current URL of the page. Ex: http://www.example.com/shoes.

{total_url_segments}

The total number of URL segments. Ex: For http://www.example.com/bread/rye, it would be ‘2’.

{last_url_segment}

Returns the last URL segment. Ex: For For http://www.example.com/sounds/windchimes, it would return ‘windchimes’.

About

EE2 Extension that adds some Global Variables about the current page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published