Parameter Variables
As a convenience feature, PyroStreams allows you to pass commonly-used variables in parameters using a special bracket syntax. For example, if you wanted to use the third URI segment in a parameter, you could use the [segment_3] plugin variable like this:
{{ streams:single stream="bands" id="[segment_3]" }}
Below is a list of variables available for use:
| Variable | Default |
|---|---|
| [segment_1] | Value in the first URI segment. |
| [segment_2] | Value in the second URI segment. |
| [segment_3] | Value in the third URI segment. |
| [segment_4] | Value in the fourth URI segment. |
| [segment_5] | Value in the fifth URI segment. |
| [segment_6] | Value in the sixth URI segment. |
| [segment_7] | Value in the seventh URI segment. |
| [user_id] | Currently logged in user's id. |
| [username] | Currently logged in user's username. |
