Post Params

Post Params

{{ post_params }}

Object containing all of the HTTP posted parameters from the current request.

Properties of {{ post_params }} objects
Name Type Description
is_valid Boolean True if there is at least one posted parameter
by_name object An object whose properties match the posted parameters from the request. If the same parameter has multiple values, they will be included as a list of strings rather than simply as a single string, and when treated as a single string the values will be comma-delimited
keys list A list containing all of the unique post parameter names
count Integer The number of unique post parameter names
length Integer The total number of post parameters, including duplicate parameters
* String Specific post parameter values may be accessed using {{ request.post_params.parametername }} or {{ request.post_params['parameter-name'] }}
output String The posted parameters formatted similar to a query parameter string (ie: as if the post request used a content-type of application/x-www-form-urlencoded)

You may treat the post_params object as a list containing all of the parameters which may be iterated using a {% for %} loop. The post_params object is copyable using the {% copy_to_dictionary %} method.

Related

object

May be any object, including simple, complex and list objects. In some cases may even include symbols and null.

{{ request }}

The request object is available on every page, and contains information regarding the HTTP request that may be useful for serving and rendering the page.

{{ blog_post }}

string

Can be any text, from the empty string ("") to the full HTML output of the template. When used alone in a conditional, all strings evaluates as true - even if they are empty or a value such as "0" or "false".

{{ query_params }}

Object containing all of the query string parameters for the current page.

number

Can be any number, including integers, decimals, or the value 0. Any value - including 0 - evaluates as true when used alone in a conditional.

{% blog_post %}

integer

A whole (non-fractional, non-decimal) number. May be 0. Any value - including 0 - evaluates as true when used alone in a conditional.

list

An enumerable list containing zero or more objects. Lists may contain many different object types, although most lists only contain a single object type. There are a large number of other complex object types that are also lists (ag: an articlelist is a complex object but is also a list of article objects).