<p>If you're looking for a purely Twig/template solution, then your best bet would be to either enable devMode and use Twig's <a href="https://twig.sensiolabs.org/doc/2.x/functions/dump.html" rel="nofollow noreferrer"><code>dump()</code></a> method or install something like the Craft <a href="https://github.com/mildlygeeky/craft_kint" rel="nofollow noreferrer">Kint</a> plugin.</p>

<p>Keep in mind that both of them are going to give you much more information than just attributes available on a model (like the array of <a href="https://craftcommerce.com/docs/order-model" rel="nofollow noreferrer">OrderModel</a>'s your example is going to return), but that info will be included.</p>

CC BY-SA 3.0
2017-04-15T17:14:42.413Z
2017-04-15T17:14:42.413Z
Brad Bell
<p>Is there a way to print all of the available parameters/handles when I set a variable? </p>

<p>For example if I put <code>{% set orders = craft.commerce.orders.find() %}</code> is there a way to list out the available parameters/handles depending on what I set, without having to go to the docs? So a way of checking that my code is right from the templates.</p>

<elementcriteriamodel>
list available parameters of variable
# list available parameters of variable

(Asked by: username_0 on 2017-04-15)

Is there a way to print all of the available parameters/handles when I set a variable?

For example if I put `{% set orders = craft.commerce.orders.find() %}` is there a way to list out the available parameters/handles depending on what I set, without having to go to the docs? So a way of checking that my code is right from the templates.

**Tags:** elementcriteriamodel

---

## 1 answers

### Answer by username_1 on 2017-04-15. Score: 1 | Accepted answer

If you're looking for a purely Twig/template solution, then your best bet would be to either enable devMode and use Twig's [`dump()`](https://twig.sensiolabs.org/doc/2.x/functions/dump.html) method or install something like the Craft [Kint](https://github.com/mildlygeeky/craft_kint) plugin.

Keep in mind that both of them are going to give you much more information than just attributes available on a model (like the array of [OrderModel](https://craftcommerce.com/docs/order-model)'s your example is going to return), but that info will be included.


---

