Bold Minded

Super Globals

More thorough documentation is in the works…

Usage

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 renderand not parse it, thus not showing the value it contains. The second time, and any time thereafter, the variable will work properly.

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

All multiple options, such as Entries, Categories, Radios, Checkboxes, and Select values are separated by a pipe. For example, 3 selected channel entries would output as 2|5|9

If you set your variable to parse Late, it will also be added to the native Global Variables within EE. If you set the parse to Snippet, then it will be added to the native Snippets. This allows EE to handle the variables as they were designed, but allows you to edit them all in a single location.

Settings

In the settings you can change the variable prefixes, and the suffix used for Member field labels.

If you know what GET and POST variables your site will be using, you can define the variable names, one per line, in the settings to avoid 2 extra queries on each page load.

 


Change Log

Subscribe

Version 1.2.2

    • Added the POST and GET variable Tracker, which allows for accessing POST and GET variables from previous pages.

Version 1.2.1

    • Fixed a couple minor bugs.
    • Added better support for LibrarEE (and any other add-on that edits snippets).
    • Added better support for multi-dimensional arrays in POST and GET variables. For example, an array with the key name of "key2" that is 2 levels deep in the array can be accessed via . If your prefix uses an underscore, the colons in this example will be replaced with underscores.

Version 1.2

    • Updated Accessory to remove/replace the Snippets and Global Variables links in the Template Manager page. Prevents accidental editing of snippets and variables in wrong area.
    • Replaced Bespin with EditArea, It's styled to match, and saves the syntax highlighting for each variable.
    • Added MSM support.
    • Added Group/Tab sorting.