Extension

EE 1
EE 2
Super Globals Lite

Developer

Brian Litzinger

3rd Party (Commercial)
Current Version: 1.2.1
Release Date: Apr 19, 2011

License Agreement

Buy Now!

$10.00
Qty:

Compatibility

Requirements

  • jQuery for the Control Panel

Tags

Super Globals Lite gives you quick and easy access to POST and GET variables in your templates without having to enable PHP.

The extension allows you to use GET and POST variables without enabling PHP in your templates, or adding PHP to your config file. As a bonus, Super Globals Lite also includes access to every member field for the current user with a single variable. If logged in, {member:bio} will return the Bio text. {member:bio:label} will print “Bio”. The :label is especially useful for Custom Member Fields in which you may have a long Label name. These variables are usually available with a 3rd party modules such as User, or using the built in{exp:member:custom_profile_data} tag pair, but with Super Globals you can access them anywhere as a single variable… no tag pair required, and even use them in template conditional statements.

In order for GET and POST variables to work, the possible names must be used at least once, or entered into the default list in the settings menu. For example, the first time you submit a form with the field first_name, your template may render{post:first_name} and not parse it, thus not showing the value it contains. The second time, and any time thereafter, the variable will work properly. Or you can define a list of expected POST and GET variables in the settings page, and they will work immediately.

If you are submitting a form with the following fields: first_name, last_name, and message, you can access the posted values by using {post:first_name}, {post:last_name} and {post:message} anywhere in your templates, even in a conditional. The same works for GET variables, e.g. {get:referrer}

Super Globals Lite is just the extension file from the full version of Super Globals that provides this functionality.

Super Globals Lite 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.

  1. sessions_end

This entry was last updated March 29, 2012, 9:02 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!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!