PG

Developer

TJ Draper

3rd Party (Free)

426 downloads (last 90 days)

BSD 3-Clause License Download v1.2.0

EE Version Support

  • ExpressionEngine 2
  • ExpressionEngine 3
  • ExpressionEngine 4

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

A plugin to retrieve GET/POST parameters in ExpressionEngine.

Usage

Example URL: www.domain.com/test?key=value&key2=value2

Single Tag

{exp:pg:param key="key2"}

Output

value2

Tag pair:

Please note, the old {exp:pg} tag pair is deprecated and replaced by the following tag pair. Your existing code should be updated because a future version of PG will remove the {exp:pg} tag.

{exp:pg:pair}
    {key}: {value}
{/exp:pg:pair}

Output:

key: value
key2: value2

Method Parameter

Optional parameter for both the single tag and the tag pair: method=“post”
This will get POST data instead of GET data.

Example:

{exp:pg method="post"}
    {key}: {value}
{/exp:pg}

Get data from a one dimensional array with param tag

Example URL: www.domain.com/test?key[values]=my_value&key2=value2

Tag

{exp:pg:param key="key" array_key="values"}

Output

my_value

Download PG

EE Support Downloads Add-On Version Release Date
2.7.0+ Download 1.2.0 Jan 2, 2015

PG Links

This entry was created May 22, 2014, 10:33 am.
This entry was last updated December 22, 2017, 3:38 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!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

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