dump($dataset,$include_values)
this function returns the all of the properties inside the $dataset variable specified. It is mainly a help function to show how to access the properties of the said $dataset variable.Syntax:
{$archive->dump($dataset,$include_values)}
| Parameter | Default Value | Description | Sample Value |
| $dataset | n/a | Array - the records you want to view | $browser / $sitemap / $nav.children |
| $include_values | False | Boolean - set True to shows the value of the index, set False to shows only the index. |
True/False |
Sample Usage:
{$archive->dump($browser,true)}
Sample Output:
| Usage | Output |
| {$browser.name} | FIREFOX |
| {$browser.version} | 2.0. |
So to interpret this output.
| Usage on a template | Output |
| <h2>{$browser.name}</h2> | <h2>Firefox</h2> |
| Your version is {$browser.version} | Your version is 2.0 |
Note: The dump function may not always select the correct parameter passed on the {$archive->dump($nav)}. if this is the case, please replace the red highlighted variable to the one that you passed.
Try experimenting on these other samples.
{$archive->dump($section, true)}
{$archive->dump($entry, true)}
{$archive->dump($nav.children, true)}
{$archive->dump($nav.parent, true)}
{$archive->dump($nav.breadcrumbs, true)}
{$archive->dump($nav, true)}
{$archive->dump($sitemap, true)}